#include <mitkDirectionEncoder.h>
Inherits mitkObject.
Inherited by mitkRecursiveSphereDirectionEncoder.
Inheritance diagram for mitkDirectionEncoder:
Public Member Functions | |
virtual int | GetEncodedDirection (float n[3])=0 |
virtual float * | GetDecodedGradient (int value)=0 |
virtual int | GetNumberOfEncodedDirections ()=0 |
virtual float * | GetDecodedGradientTable ()=0 |
mitkDirectionEncoder is an abstract class to encode a direction into a one or two byte value. Some codes are borrowed from VTK, and please see the copyright at end.
|
Given an encoded value, return a pointer to the normal vector
Implemented in mitkRecursiveSphereDirectionEncoder. |
|
Get the decoded gradient table. There are this->GetNumberOfEncodedDirections() entries in the table, each containing a normal (direction) vector. This is a flat structure - 3 times the number of directions floats in an array.
Implemented in mitkRecursiveSphereDirectionEncoder. |
|
Given a normal vector n, return the encoded direction
Implemented in mitkRecursiveSphereDirectionEncoder. |
|
Get the number of encoded directions
Implemented in mitkRecursiveSphereDirectionEncoder. |