VTK  9.3.0
vtkSubPixelPositionEdgels.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
28#ifndef vtkSubPixelPositionEdgels_h
29#define vtkSubPixelPositionEdgels_h
30
31#include "vtkFiltersGeneralModule.h" // For export macro
33
34VTK_ABI_NAMESPACE_BEGIN
36class vtkDataArray;
37
38class VTKFILTERSGENERAL_EXPORT vtkSubPixelPositionEdgels : public vtkPolyDataAlgorithm
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
46
52
54
58 vtkSetMacro(TargetFlag, vtkTypeBool);
59 vtkGetMacro(TargetFlag, vtkTypeBool);
60 vtkBooleanMacro(TargetFlag, vtkTypeBool);
61 vtkSetMacro(TargetValue, double);
62 vtkGetMacro(TargetValue, double);
64
65protected:
68
69 // Usual data generation method
71 int FillInputPortInformation(int port, vtkInformation* info) override;
72
73 void Move(int xdim, int ydim, int zdim, int x, int y, float* img, vtkDataArray* inVecs,
74 double* result, int z, double* aspect, double* resultNormal);
75 void Move(int xdim, int ydim, int zdim, int x, int y, double* img, vtkDataArray* inVecs,
76 double* result, int z, double* aspect, double* resultNormal);
77 // extension for target instead of maximum
80
81private:
83 void operator=(const vtkSubPixelPositionEdgels&) = delete;
84};
85
86VTK_ABI_NAMESPACE_END
87#endif
abstract superclass for arrays of numeric data
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
A subclass of ImageData.
adjust edgel locations based on gradients.
vtkStructuredPoints * GetGradMaps()
Set/Get the gradient data for doing the position adjustments.
void Move(int xdim, int ydim, int zdim, int x, int y, double *img, vtkDataArray *inVecs, double *result, int z, double *aspect, double *resultNormal)
static vtkSubPixelPositionEdgels * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
~vtkSubPixelPositionEdgels() override
void Move(int xdim, int ydim, int zdim, int x, int y, float *img, vtkDataArray *inVecs, double *result, int z, double *aspect, double *resultNormal)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetGradMapsData(vtkStructuredPoints *gm)
Set/Get the gradient data for doing the position adjustments.
int vtkTypeBool
Definition vtkABI.h:64