VTK
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 =========================================================================*/
40 #ifndef vtkSubPixelPositionEdgels_h
41 #define vtkSubPixelPositionEdgels_h
42 
43 #include "vtkFiltersGeneralModule.h" // For export macro
44 #include "vtkPolyDataAlgorithm.h"
45 
47 class vtkDataArray;
48 
49 class VTKFILTERSGENERAL_EXPORT vtkSubPixelPositionEdgels : public vtkPolyDataAlgorithm
50 {
51 public:
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
57 
60  void SetGradMapsData(vtkStructuredPoints *gm);
61  vtkStructuredPoints *GetGradMaps();
63 
65 
69  vtkSetMacro(TargetFlag, vtkTypeBool);
70  vtkGetMacro(TargetFlag, vtkTypeBool);
71  vtkBooleanMacro(TargetFlag, vtkTypeBool);
72  vtkSetMacro(TargetValue, double);
73  vtkGetMacro(TargetValue, double);
75 
76 protected:
78  ~vtkSubPixelPositionEdgels() override;
79 
80  // Usual data generation method
83 
84  void Move(int xdim, int ydim, int zdim, int x, int y,
85  float *img, vtkDataArray *inVecs,
86  double *result, int z, double *aspect, double *resultNormal);
87  void Move(int xdim, int ydim, int zdim, int x, int y,
88  double *img, vtkDataArray *inVecs,
89  double *result, int z, double *aspect, double *resultNormal);
90  // extension for target instead of maximum
92  double TargetValue;
93 private:
95  void operator=(const vtkSubPixelPositionEdgels&) = delete;
96 };
97 
98 #endif
vtkStructuredPoints
A subclass of ImageData.
Definition: vtkStructuredPoints.h:39
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkX3D::port
Definition: vtkX3D.h:447
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkSubPixelPositionEdgels
adjust edgel locations based on gradients.
Definition: vtkSubPixelPositionEdgels.h:49
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkPolyDataAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
Definition: vtkX3D.h:376
vtkSubPixelPositionEdgels::TargetFlag
vtkTypeBool TargetFlag
Definition: vtkSubPixelPositionEdgels.h:91
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkSubPixelPositionEdgels::TargetValue
double TargetValue
Definition: vtkSubPixelPositionEdgels.h:92
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44