VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkSubPixelPositionEdgels Class Reference

adjust edgel locations based on gradients. More...

#include <vtkSubPixelPositionEdgels.h>

Inheritance diagram for vtkSubPixelPositionEdgels:
Inheritance graph
[legend]
Collaboration diagram for vtkSubPixelPositionEdgels:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkPolyDataAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkSubPixelPositionEdgelsNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
void SetGradMapsData (vtkStructuredPoints *gm)
vtkStructuredPointsGetGradMaps ()
virtual void SetTargetFlag (int)
virtual int GetTargetFlag ()
virtual void TargetFlagOn ()
virtual void TargetFlagOff ()
virtual void SetTargetValue (double)
virtual double GetTargetValue ()

Static Public Member Functions

static vtkSubPixelPositionEdgelsNew ()
static int IsTypeOf (const char *type)
static vtkSubPixelPositionEdgelsSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkSubPixelPositionEdgels ()
 ~vtkSubPixelPositionEdgels ()
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int FillInputPortInformation (int port, vtkInformation *info)
void Move (int xdim, int ydim, int zdim, int x, int y, float *img, vtkDataArray *inVecs, double *result, int z, double *aspect, double *resultNormal)
void Move (int xdim, int ydim, int zdim, int x, int y, double *img, vtkDataArray *inVecs, double *result, int z, double *aspect, double *resultNormal)

Protected Attributes

int TargetFlag
double TargetValue

Detailed Description

adjust edgel locations based on gradients.

vtkSubPixelPositionEdgels is a filter that takes a series of linked edgels (digital curves) and gradient maps as input. It then adjusts the edgel locations based on the gradient data. Specifically, the algorithm first determines the neighboring gradient magnitudes of an edgel using simple interpolation of its neighbors. It then fits the following three data points: negative gradient direction gradient magnitude, edgel gradient magnitude and positive gradient direction gradient magnitude to a quadratic function. It then solves this quadratic to find the maximum gradient location along the gradient orientation. It then modifies the edgels location along the gradient orientation to the calculated maximum location. This algorithm does not adjust an edgel in the direction orthogonal to its gradient vector.

See also:
vtkImageData vtkImageGradient vtkLinkEdgels
Tests:
vtkSubPixelPositionEdgels (Tests)

Definition at line 48 of file vtkSubPixelPositionEdgels.h.


Member Typedef Documentation

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 52 of file vtkSubPixelPositionEdgels.h.


Constructor & Destructor Documentation


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkPolyDataAlgorithm.

static int vtkSubPixelPositionEdgels::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataAlgorithm.

virtual int vtkSubPixelPositionEdgels::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

virtual vtkObjectBase* vtkSubPixelPositionEdgels::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

void vtkSubPixelPositionEdgels::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkPolyDataAlgorithm.

Set/Get the gradient data for doing the position adjustments.

Set/Get the gradient data for doing the position adjustments.

virtual void vtkSubPixelPositionEdgels::SetTargetFlag ( int  ) [virtual]

These methods can make the positioning look for a target scalar value instead of looking for a maximum.

These methods can make the positioning look for a target scalar value instead of looking for a maximum.

virtual void vtkSubPixelPositionEdgels::TargetFlagOn ( ) [virtual]

These methods can make the positioning look for a target scalar value instead of looking for a maximum.

virtual void vtkSubPixelPositionEdgels::TargetFlagOff ( ) [virtual]

These methods can make the positioning look for a target scalar value instead of looking for a maximum.

virtual void vtkSubPixelPositionEdgels::SetTargetValue ( double  ) [virtual]

These methods can make the positioning look for a target scalar value instead of looking for a maximum.

These methods can make the positioning look for a target scalar value instead of looking for a maximum.

virtual int vtkSubPixelPositionEdgels::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkPolyDataAlgorithm.

virtual int vtkSubPixelPositionEdgels::FillInputPortInformation ( int  port,
vtkInformation info 
) [protected, virtual]

Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.

Reimplemented from vtkPolyDataAlgorithm.

void vtkSubPixelPositionEdgels::Move ( int  xdim,
int  ydim,
int  zdim,
int  x,
int  y,
float img,
vtkDataArray inVecs,
double result,
int  z,
double aspect,
double resultNormal 
) [protected]
void vtkSubPixelPositionEdgels::Move ( int  xdim,
int  ydim,
int  zdim,
int  x,
int  y,
double img,
vtkDataArray inVecs,
double result,
int  z,
double aspect,
double resultNormal 
) [protected]

Member Data Documentation

Definition at line 86 of file vtkSubPixelPositionEdgels.h.

Definition at line 87 of file vtkSubPixelPositionEdgels.h.


The documentation for this class was generated from the following file: