#include <vtkFiniteDifferenceGradientEstimator.h>
Inheritance diagram for vtkFiniteDifferenceGradientEstimator:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent index) |
virtual void | SetSampleSpacingInVoxels (int) |
virtual int | GetSampleSpacingInVoxels () |
Static Public Methods | |
int | IsTypeOf (const char *type) |
vtkFiniteDifferenceGradientEstimator * | SafeDownCast (vtkObject *o) |
vtkFiniteDifferenceGradientEstimator * | New () |
Public Attributes | |
int | SampleSpacingInVoxels |
Protected Methods | |
vtkFiniteDifferenceGradientEstimator () | |
~vtkFiniteDifferenceGradientEstimator () | |
vtkFiniteDifferenceGradientEstimator (const vtkFiniteDifferenceGradientEstimator &) | |
void | operator= (const vtkFiniteDifferenceGradientEstimator &) |
void | UpdateNormals (void) |
vtkFiniteDifferenceGradientEstimator is a concrete subclass of vtkEncodedGradientEstimator that uses a central differences technique to estimate the gradient. The gradient at some sample location (x,y,z) would be estimated by:
nx = (f(x-dx,y,z) - f(x+dx,y,z)) / 2*dx; ny = (f(x,y-dy,z) - f(x,y+dy,z)) / 2*dy; nz = (f(x,y,z-dz) - f(x,y,z+dz)) / 2*dz;
This value is normalized to determine a unit direction vector and a magnitude. The normal is computed in voxel space, and dx = dy = dz = SampleSpacingInVoxels. A scaling factor is applied to convert this normal from voxel space to world coordinates.
Definition at line 73 of file vtkFiniteDifferenceGradientEstimator.h.
|
|
|
|
|
Definition at line 94 of file vtkFiniteDifferenceGradientEstimator.h. |
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkEncodedGradientEstimator. |
|
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 vtkEncodedGradientEstimator. |
|
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 vtkEncodedGradientEstimator. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkEncodedGradientEstimator. |
|
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 vtkEncodedGradientEstimator. |
|
Construct a vtkFiniteDifferenceGradientEstimator with a SampleSpacingInVoxels of 1. Reimplemented from vtkObject. |
|
Set/Get the spacing between samples for the finite differences method used to compute the normal. This spacing is in voxel units. |
|
|
|
Definition at line 95 of file vtkFiniteDifferenceGradientEstimator.h. |
|
Recompute the encoded normals and gradient magnitudes. Reimplemented from vtkEncodedGradientEstimator. |
|
Definition at line 89 of file vtkFiniteDifferenceGradientEstimator.h. |