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 =========================================================================*/
37 #ifndef vtkSubPixelPositionEdgels_h
38 #define vtkSubPixelPositionEdgels_h
39 
40 #include "vtkFiltersGeneralModule.h" // For export macro
41 #include "vtkPolyDataAlgorithm.h"
42 
44 class vtkDataArray;
45 
46 class VTKFILTERSGENERAL_EXPORT vtkSubPixelPositionEdgels : public vtkPolyDataAlgorithm
47 {
48 public:
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
57  void SetGradMapsData(vtkStructuredPoints *gm);
58  vtkStructuredPoints *GetGradMaps();
60 
62 
66  vtkSetMacro(TargetFlag, vtkTypeBool);
67  vtkGetMacro(TargetFlag, vtkTypeBool);
68  vtkBooleanMacro(TargetFlag, vtkTypeBool);
69  vtkSetMacro(TargetValue, double);
70  vtkGetMacro(TargetValue, double);
72 
73 protected:
75  ~vtkSubPixelPositionEdgels() override;
76 
77  // Usual data generation method
80 
81  void Move(int xdim, int ydim, int zdim, int x, int y,
82  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,
85  double *img, vtkDataArray *inVecs,
86  double *result, int z, double *aspect, double *resultNormal);
87  // extension for target instead of maximum
89  double TargetValue;
90 private:
92  void operator=(const vtkSubPixelPositionEdgels&) = delete;
93 };
94 
95 #endif
vtkStructuredPoints
A subclass of ImageData.
Definition: vtkStructuredPoints.h:36
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
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:46
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
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:80
vtkX3D::info
Definition: vtkX3D.h:376
vtkSubPixelPositionEdgels::TargetFlag
vtkTypeBool TargetFlag
Definition: vtkSubPixelPositionEdgels.h:88
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkSubPixelPositionEdgels::TargetValue
double TargetValue
Definition: vtkSubPixelPositionEdgels.h:89
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41