i3dlib

Documentation

i3d::VectField3d< TYPE > Class Template Reference

#include <image3d.h>

Inheritance diagram for i3d::VectField3d< TYPE >:

i3d::Image3d< VOXEL > List of all members.

Public Member Functions

 VectField3d (const char *fname, VOI< size_t > *voi=0, bool is_regex=false, int channel=-1, const Offset *off_=0, const Resolution *res_=0)
 VectField3d (const VectField3d &vf, const VOI< size_t > *voi=0)
 VectField3d (const VectField3d &vf, const VOI< float > &voi)
 ~VectField3d ()

Detailed Description

template<class TYPE>
class i3d::VectField3d< TYPE >

Vector field is specialized 3d image, where each voxel has three componenets wrapped in Vector3d structure. Supposed TYPE may be float or double.


Constructor & Destructor Documentation

template<class TYPE>
i3d::VectField3d< TYPE >::VectField3d ( const char *  fname,
VOI< size_t > *  voi = 0,
bool  is_regex = false,
int  channel = -1,
const Offset off_ = 0,
const Resolution res_ = 0 
) [inline]

Read vector field from a specified file and constructs the VectField3d object. (So far only MetaIO format is supported)

parameters:

  • 'is_regex' says, whether the input 'fname' is regular filename or can be expected as a mask for regular expansion. (in metaOI format is this parameter irrelevant)
  • 'channel' chooses the channel order which is going to be read. If default value (-1) is chosen, all the channels are read. For the time being, only ICS format supports this parameter.
  • offset and resolution set the image layout in the real scene. Both of them are optional: if not set, the values stored in the image data file is used (implicitly), otherwise the argument values are used (explicitly).

template<class TYPE>
i3d::VectField3d< TYPE >::VectField3d ( const VectField3d< TYPE > &  vf,
const VOI< size_t > *  voi = 0 
) [inline]

Copy constructor: copy of VOI, if VOI == 0, whole image is copied VOI is in pixels and is relative to origin of image offset is recomputed apropriately, if resolution is not defined offset is simply added (i.e. it's supposed 1 pixel = 1 micron)

template<class TYPE>
i3d::VectField3d< TYPE >::VectField3d ( const VectField3d< TYPE > &  vf,
const VOI< float > &  voi 
) [inline]

Copy constructor, VOI is in microns, Image in intersection of VOI and src image is returned

template<class TYPE>
i3d::VectField3d< TYPE >::~VectField3d (  )  [inline]

Destructor:


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