VTK  9.1.0
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=========================================================================*/
56#ifndef vtkSubPixelPositionEdgels_h
57#define vtkSubPixelPositionEdgels_h
58
59#include "vtkFiltersGeneralModule.h" // For export macro
61
63class vtkDataArray;
64
65class VTKFILTERSGENERAL_EXPORT vtkSubPixelPositionEdgels : public vtkPolyDataAlgorithm
66{
67public:
70 void PrintSelf(ostream& os, vtkIndent indent) override;
71
73
79
81
85 vtkSetMacro(TargetFlag, vtkTypeBool);
86 vtkGetMacro(TargetFlag, vtkTypeBool);
87 vtkBooleanMacro(TargetFlag, vtkTypeBool);
88 vtkSetMacro(TargetValue, double);
89 vtkGetMacro(TargetValue, double);
91
92protected:
95
96 // Usual data generation method
98 int FillInputPortInformation(int port, vtkInformation* info) override;
99
100 void Move(int xdim, int ydim, int zdim, int x, int y, float* img, vtkDataArray* inVecs,
101 double* result, int z, double* aspect, double* resultNormal);
102 void Move(int xdim, int ydim, int zdim, int x, int y, double* img, vtkDataArray* inVecs,
103 double* result, int z, double* aspect, double* resultNormal);
104 // extension for target instead of maximum
107
108private:
110 void operator=(const vtkSubPixelPositionEdgels&) = delete;
111};
112
113#endif
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
a simple class to control print indentation
Definition: vtkIndent.h:113
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:69