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
37#ifndef vtkSubPixelPositionEdgels_h
38#define vtkSubPixelPositionEdgels_h
39
40#include "vtkFiltersGeneralModule.h" // For export macro
42
43VTK_ABI_NAMESPACE_BEGIN
45class vtkDataArray;
46
47class VTKFILTERSGENERAL_EXPORT vtkSubPixelPositionEdgels : public vtkPolyDataAlgorithm
48{
49public:
52 void PrintSelf(ostream& os, vtkIndent indent) override;
53
55
61
63
67 vtkSetMacro(TargetFlag, vtkTypeBool);
68 vtkGetMacro(TargetFlag, vtkTypeBool);
69 vtkBooleanMacro(TargetFlag, vtkTypeBool);
70 vtkSetMacro(TargetValue, double);
71 vtkGetMacro(TargetValue, double);
73
74protected:
77
78 // Usual data generation method
80 int FillInputPortInformation(int port, vtkInformation* info) override;
81
82 void Move(int xdim, int ydim, int zdim, int x, int y, float* img, vtkDataArray* inVecs,
83 double* result, int z, double* aspect, double* resultNormal);
84 void Move(int xdim, int ydim, int zdim, int x, int y, double* img, vtkDataArray* inVecs,
85 double* result, int z, double* aspect, double* resultNormal);
86 // extension for target instead of maximum
89
90private:
92 void operator=(const vtkSubPixelPositionEdgels&) = delete;
93};
94
95VTK_ABI_NAMESPACE_END
96#endif
abstract superclass for arrays of numeric data
a simple class to control print indentation
Definition vtkIndent.h:38
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