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) VTK_OVERRIDE;
52 
54 
57  void SetGradMapsData(vtkStructuredPoints *gm);
58  vtkStructuredPoints *GetGradMaps();
60 
62 
66  vtkSetMacro(TargetFlag, int);
67  vtkGetMacro(TargetFlag, int);
68  vtkBooleanMacro(TargetFlag, int);
69  vtkSetMacro(TargetValue, double);
70  vtkGetMacro(TargetValue, double);
72 
73 protected:
75  ~vtkSubPixelPositionEdgels() VTK_OVERRIDE;
76 
77  // Usual data generation method
78  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
79  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
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
88  int TargetFlag;
89  double TargetValue;
90 private:
91  vtkSubPixelPositionEdgels(const vtkSubPixelPositionEdgels&) VTK_DELETE_FUNCTION;
92  void operator=(const vtkSubPixelPositionEdgels&) VTK_DELETE_FUNCTION;
93 };
94 
95 #endif
adjust edgel locations based on gradients.
Store vtkAlgorithm input/output information.
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
A subclass of ImageData.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.