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 =========================================================================*/
39 #ifndef vtkSubPixelPositionEdgels_h
40 #define vtkSubPixelPositionEdgels_h
41 
42 #include "vtkFiltersGeneralModule.h" // For export macro
43 #include "vtkPolyDataAlgorithm.h"
44 
46 class vtkDataArray;
47 
49 {
50 public:
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
56 
57  void SetGradMapsData(vtkStructuredPoints *gm);
58  vtkStructuredPoints *GetGradMaps();
60 
62 
64  vtkSetMacro(TargetFlag, int);
65  vtkGetMacro(TargetFlag, int);
66  vtkBooleanMacro(TargetFlag, int);
67  vtkSetMacro(TargetValue, double);
68  vtkGetMacro(TargetValue, double);
70 
71 protected:
74 
75  // Usual data generation method
78 
79  void Move(int xdim, int ydim, int zdim, int x, int y,
80  float *img, vtkDataArray *inVecs,
81  double *result, int z, double *aspect, double *resultNormal);
82  void Move(int xdim, int ydim, int zdim, int x, int y,
83  double *img, vtkDataArray *inVecs,
84  double *result, int z, double *aspect, double *resultNormal);
85  // extension for target instead of maximum
87  double TargetValue;
88 private:
89  vtkSubPixelPositionEdgels(const vtkSubPixelPositionEdgels&); // Not implemented.
90  void operator=(const vtkSubPixelPositionEdgels&); // Not implemented.
91 };
92 
93 #endif
adjust edgel locations based on gradients.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
#define VTKFILTERSGENERAL_EXPORT
A subclass of ImageData.
Store zero or more vtkInformation instances.