adjust edgel locations based on gradients.
More...
#include <vtkSubPixelPositionEdgels.h>
Inherits vtkPolyDataAlgorithm.
|
virtual vtkObjectBase * | NewInstanceInternal () 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) |
|
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.
vtkSubPixelPositionEdgels::vtkSubPixelPositionEdgels |
( |
| ) |
|
|
protected |
vtkSubPixelPositionEdgels::~vtkSubPixelPositionEdgels |
( |
| ) |
|
|
protected |
static int vtkSubPixelPositionEdgels::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkSubPixelPositionEdgels::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkSubPixelPositionEdgels::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkSubPixelPositionEdgels::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
void vtkSubPixelPositionEdgels::SetGradMapsData |
( |
vtkStructuredPoints * |
gm | ) |
|
Set/Get the gradient data for doing the position adjustments.
vtkStructuredPoints* vtkSubPixelPositionEdgels::GetGradMaps |
( |
| ) |
|
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.
virtual int vtkSubPixelPositionEdgels::GetTargetFlag |
( |
| ) |
|
|
virtual |
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.
virtual double vtkSubPixelPositionEdgels::GetTargetValue |
( |
| ) |
|
|
virtual |
These methods can make the positioning look for a target scalar value instead of looking for a maximum.
virtual int vtkSubPixelPositionEdgels::RequestData |
( |
vtkInformation * |
, |
|
|
vtkInformationVector ** |
, |
|
|
vtkInformationVector * |
|
|
) |
| |
|
protectedvirtual |
virtual int vtkSubPixelPositionEdgels::FillInputPortInformation |
( |
int |
port, |
|
|
vtkInformation * |
info |
|
) |
| |
|
protectedvirtual |
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 |
int vtkSubPixelPositionEdgels::TargetFlag |
|
protected |
double vtkSubPixelPositionEdgels::TargetValue |
|
protected |
The documentation for this class was generated from the following file: