VTK  9.3.20240418
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
47 #ifndef vtkSubPixelPositionEdgels_h
48 #define vtkSubPixelPositionEdgels_h
49 
50 #include "vtkFiltersGeneralModule.h" // For export macro
51 #include "vtkPolyDataAlgorithm.h"
52 
53 VTK_ABI_NAMESPACE_BEGIN
55 class vtkDataArray;
56 
57 class VTKFILTERSGENERAL_EXPORT vtkSubPixelPositionEdgels : public vtkPolyDataAlgorithm
58 {
59 public:
62  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
65 
71 
73 
77  vtkSetMacro(TargetFlag, vtkTypeBool);
78  vtkGetMacro(TargetFlag, vtkTypeBool);
79  vtkBooleanMacro(TargetFlag, vtkTypeBool);
80  vtkSetMacro(TargetValue, double);
81  vtkGetMacro(TargetValue, double);
83 
84 protected:
87 
88  // Usual data generation method
91 
92  void Move(int xdim, int ydim, int zdim, int x, int y, float* img, vtkDataArray* inVecs,
93  double* result, int z, double* aspect, double* resultNormal);
94  void Move(int xdim, int ydim, int zdim, int x, int y, double* img, vtkDataArray* inVecs,
95  double* result, int z, double* aspect, double* resultNormal);
96  // extension for target instead of maximum
98  double TargetValue;
99 
100 private:
102  void operator=(const vtkSubPixelPositionEdgels&) = delete;
103 };
104 
105 VTK_ABI_NAMESPACE_END
106 #endif
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:155
a simple class to control print indentation
Definition: vtkIndent.h:108
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.
void Move(int xdim, int ydim, int zdim, int x, int y, double *img, vtkDataArray *inVecs, double *result, int z, double *aspect, double *resultNormal)
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.
vtkStructuredPoints * GetGradMaps()
Set/Get the gradient data for doing the position adjustments.
static vtkSubPixelPositionEdgels * New()
void SetGradMapsData(vtkStructuredPoints *gm)
Set/Get the gradient data for doing the position adjustments.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
int vtkTypeBool
Definition: vtkABI.h:64