VTK  9.2.5
vtkSubPixelPositionEdgels.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSubPixelPositionEdgels.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
59 #ifndef vtkSubPixelPositionEdgels_h
60 #define vtkSubPixelPositionEdgels_h
61 
62 #include "vtkFiltersGeneralModule.h" // For export macro
63 #include "vtkPolyDataAlgorithm.h"
64 
66 class vtkDataArray;
67 
68 class VTKFILTERSGENERAL_EXPORT vtkSubPixelPositionEdgels : public vtkPolyDataAlgorithm
69 {
70 public:
73  void PrintSelf(ostream& os, vtkIndent indent) override;
74 
76 
82 
84 
88  vtkSetMacro(TargetFlag, vtkTypeBool);
89  vtkGetMacro(TargetFlag, vtkTypeBool);
90  vtkBooleanMacro(TargetFlag, vtkTypeBool);
91  vtkSetMacro(TargetValue, double);
92  vtkGetMacro(TargetValue, double);
94 
95 protected:
98 
99  // Usual data generation method
102 
103  void Move(int xdim, int ydim, int zdim, int x, int y, float* img, vtkDataArray* inVecs,
104  double* result, int z, double* aspect, double* resultNormal);
105  void Move(int xdim, int ydim, int zdim, int x, int y, double* img, vtkDataArray* inVecs,
106  double* result, int z, double* aspect, double* resultNormal);
107  // extension for target instead of maximum
109  double TargetValue;
110 
111 private:
113  void operator=(const vtkSubPixelPositionEdgels&) = delete;
114 };
115 
116 #endif
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:165
a simple class to control print indentation
Definition: vtkIndent.h:119
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:382
@ port
Definition: vtkX3D.h:453
int vtkTypeBool
Definition: vtkABI.h:69