
#include <PointCloud/NImage.H>
Inheritance diagram for NImage< T, CLASS_IMAGE, BASE_IMAGE, DIMS >:

As one example of how to create a N-D image see VirtualVoxel.H and the VirtualVoxel Class (A 3D Image). Note that the CLASS_IMAGE and BASE_IMAGE can be the same if the container class is the only class type. Otherwise this is used to make explicit the container class that includes data and meta data such as dimensions (e.g. height width) as the CLASS_IMAGE and the BASE_IMAGE is just the pure container for the image data. T is the "pixel" type for each point in the N-D image.
| T | is the base type of the voxel such as float | |
| CLASS_IMAGE | is the class of the N image | |
| BASE_IMAGE | is the class of the container that holds the actual data such as an array | |
| DIM | the diminsion of this N image |
Definition at line 62 of file NImage.H.
Public Member Functions | |
| virtual | ~NImage () |
| virtual bool | get (BASE_IMAGE &ivox) const =0 |
| Return the voxels image. Bool will be false if is empty. | |
| virtual bool | getSlice (const Point< int, DIMS > &coord, Image< T > &img) const =0 |
| Return an Image Slice, set the normal axis to -1. | |
| virtual bool | getColumn (const Point< int, DIMS > &coord, std::vector< T > &vec) const =0 |
| Return a vector column, set the normal axis to -1. | |
| virtual bool | getVal (const Point< int, DIMS > &coord, T &val)=0 |
| Return a single value. | |
| virtual void | set (const BASE_IMAGE &ivox)=0 |
| Sets the voxel image. | |
| virtual void | setSlice (const Point< int, DIMS > &coord, const Image< T > &img)=0 |
| Set an Image Slice, set the normal axis to -1. | |
| virtual void | setColumn (const Point< int, DIMS > &coord, const std::vector< T > &vec)=0 |
| Set a vector column, set the normal axis to -1. | |
| virtual void | setVal (const Point< int, DIMS > &coord, const T &val)=0 |
| Set a single value. | |
| virtual bool | initialized () const =0 |
| Check whether image is non-empty (i.e., non-zero height and width). | |
| virtual int | size () const =0 |
| number of points or voxels we now have | |
| virtual CLASS_IMAGE & | operator= (const CLASS_IMAGE &ivox)=0 |
| copy operator | |
|
||||||||||
|
Return the voxels image. Bool will be false if is empty.
|
|
||||||||||||||||
|
Return a vector column, set the normal axis to -1.
|
|
||||||||||||||||
|
Return an Image Slice, set the normal axis to -1.
|
|
||||||||||||||||
|
Return a single value.
|
|
|||||||||
|
Check whether image is non-empty (i.e., non-zero height and width).
Implemented in RealVoxel< T >, VirtualVoxel< T >, and VirtualVoxel< RETINA_VOXEL_TYPE >. |
|
||||||||||
|
copy operator
|
|
||||||||||
|
Sets the voxel image.
|
|
||||||||||||||||
|
Set a vector column, set the normal axis to -1.
|
|
||||||||||||||||
|
Set an Image Slice, set the normal axis to -1.
|
|
||||||||||||||||
|
Set a single value.
|
|
|||||||||
|
number of points or voxels we now have
Implemented in RealVoxel< T >, VirtualVoxel< T >, and VirtualVoxel< RETINA_VOXEL_TYPE >. |
1.4.4