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 "vtkPolyDataAlgorithm.h"
43 
45 class vtkDataArray;
46 
48 {
49 public:
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
55 
56  void SetGradMaps(vtkStructuredPoints *gm);
57  vtkStructuredPoints *GetGradMaps();
59 
61 
63  vtkSetMacro(TargetFlag, int);
64  vtkGetMacro(TargetFlag, int);
65  vtkBooleanMacro(TargetFlag, int);
66  vtkSetMacro(TargetValue, double);
67  vtkGetMacro(TargetValue, double);
69 
70 protected:
73 
74  // Usual data generation method
77 
78  void Move(int xdim, int ydim, int zdim, int x, int y,
79  float *img, vtkDataArray *inVecs,
80  double *result, int z, double *aspect, double *resultNormal);
81  void Move(int xdim, int ydim, int zdim, int x, int y,
82  double *img, vtkDataArray *inVecs,
83  double *result, int z, double *aspect, double *resultNormal);
84  // extension for target instead of maximum
86  double TargetValue;
87 private:
88  vtkSubPixelPositionEdgels(const vtkSubPixelPositionEdgels&); // Not implemented.
89  void operator=(const vtkSubPixelPositionEdgels&); // Not implemented.
90 };
91 
92 #endif
adjust edgel locations based on gradients.
#define VTK_GRAPHICS_EXPORT
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:37
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
A subclass of ImageData.
Store zero or more vtkInformation instances.