namespace yav class TclInrimage : public TclObject, public Owner<Inrimage> Tcl interface for any inrimage
| | CROPARG crop command enum
|
| | getClient (void) const returns TclObject client |
| | getX (void) const return image X dimension |
| | getY (void) const return image Y dimension |
| | getZ (void) const return image Z dimension |
| | getVX (void) const return image X voxel size |
| | getVY (void) const return image Y voxel size |
| | getVZ (void) const return image Z voxel size |
| | getType (void) const return image words type |
| | getVdim (void) const return image vectorial dimension |
| | getWdim (void) const get image words size (in bytes) |
| | getData (void) const return image data buffer |
| | getArray (void) const returns pointer a 3D buffer for a scalar image or interleaved vectorial image |
| | getVarray (void) const returns a 4D buffer for a vectorial non-interleaved image |
| | getWordSize () const get image word size |
| | getWordKind () const get word kind |
| | getWordSign () const get word sign |
| | getVectorialMode () const get VECTORIAL_MODE |
| | redraw (void) const refresh inrimage in any viewer it is displayed |
| | resizeAndRedraw (void) const refresh inrimage in any viewer it is displayed resize the viewer to the image size |
| | resizeVoxelsAndRedraw (void) const refresh inrimage in any viewer it is displayed resize the viewer to the image voxel size |
| | rescaleGLAndRedraw (void) const reset GL bounds to inrimage min and max refresh inrimage in any viewer it is displayed |
| | changeAndRedraw (void) redraw new inrimage in any viewer it is displayed |
| | save (const TclString& newname) saves image as |
| | save (void) const saves image using name |
| | typeFromString (char *) returns the inrimage type corresponding to given string |
| | typeToString (Inrimage::WORD_TYPE) returns a static string corresponding to given type |
| | connectivityFromString (char *str) returns the connectivity type corresponding to given string |
| | load (TclModule *m, int argc, char **argv) loadImage command callback |
| | load (const TclString& name, TclModule *m, bool interlace = true, bool fileinterlace = true) loads an inrimage, catch exceptions and returns an error message in module result string if an error occured |
| | create (TclModule *m, int argc, char **argv) createInrimage command callback |
| | view (TclModule *m, int argc, char **argv) view command callback |
| | getInterface (Inrimage *inr) get TclInrimage from image pointer |
| | dying (const ObjectPointer < Inrimage > &g) die on inrimage deletion |
| | read (const TclString &filename, Scene2D *scn) file scene read method |
| | destroyCmd (int argc, char **argv) -destroy command option |
| | nameCmd (int argc, char **argv) -name command option |
| | sizeCmd (int argc, char **argv) -size command option |
| | saveCmd (int argc, char **argv) -save command option |
| | anisotropicDiffusionCmd (int argc, char **argv) -anisotropicDiffusion command option |
| | copyCmd (int argc, char **argv) -copy command option |
| | histogramCmd (int argc, char **argv) -histogram command option |
| | redrawCmd (int argc, char **argv) -redraw command option |
| | slicecamsCmd (int argc, char **argv) -slicecams command option |
| | vectorialCmd (int argc, char **argv) -vectorial command option |
| | floatingCmd (int argc, char **argv) -floating command option |
| | glboundsCmd (int argc, char **argv) -glbounds command option |
| | cropCmd (int argc, char **argv) -crop command option |
| | isolateRegionCmd (int argc, char **argv) -isolateRegion command option |
| | zeroRegionCmd (int argc, char **argv) -zeroRegion command option |
| | voxelCmd (int argc, char **argv) -voxel command option |
| | windowingCmd (int argc, char **argv) -windowing command option |
| | flipCmd (int argc, char **argv) -flip command option |
| | switchCmd (int argc, char **argv) -switch command option |
| | melCmd (int argc, char **argv) -mel command option |
| | typeCmd (int argc, char **argv) -type command option |
| | arithCmd (int argc, char **argv) -artih command option |
| | logicCmd (int argc, char **argv) -logic command option |
| | thresholdCmd (int argc, char **argv) -threshold command option |
| | lookupCmd (int argc, char **argv) -lookup command option |
| | cropHistogrammCmd (int argc, char **argv) -cropHistogram command option |
| | noiseCmd (int argc, char **argv) -noise command option |
| | connexeCmd (int argc, char **argv) -connexe command option |
| | chamferCmd (int argc, char **argv) -chamfer command option |
| | fillCmd (int argc, char **argv) -fill command option |
| | morphoCmd (int argc, char **argv) -morpho command option |
| | gradientCmd (int argc, char **argv) -gradient command option |
| | convoluteCmd (int argc, char **argv) -convolute command option |
| | recfilterCmd (int argc, char **argv) -recfilters command option |
| | laplacianCmd (int argc, char **argv) -laplacian command option |
| | splitCmd (int argc, char **argv) -split command option |
| | componentsCmd (int argc, char **argv) -component command option |
| | dftCmd (int argc, char **argv) -dft command option |
| | undersampleCmd (int argc, char **argv) -undersample command option |
| | oversampleCmd (int argc, char **argv) -oversample command option |
| | resampleCmd (int argc, char **argv) -resample command option |
| | transformCmd (int argc, char **argv) -transform command option |
| | interpCmd (int argc, char **argv) -interpolation command option |
| | extrapCmd (int argc, char **argv) -extrapolation command option |
| | regionCmd (int argc, char **argv) -region command option |
| | curvatureCmd (int argc, char **argv) -curvature command option |
| | CreateInrimagePhotoFormat (void) creates new photo type |
| | constructors
| ||||||||||||
| | destructor | ||||||||||||
| | returns TclObject client |
| | constructors
|
| | types [] inrimage type strings |
Tcl interface for any inrimage
TclInrimage(const std::type_info& info, TclModule *m, unsigned int xdim, unsigned int ydim, unsigned int zdim, unsigned int vdim = 1, unsigned int wdim = 1, WORD_KIND wordKind = WK_FIXED, SIGN sign = SGN_SIGNED, float vx = 1.0, float vy = 1.0, float vz = 1.0) throw(Inrimage::InvalidSize, Inrimage::UnknownType, Inrimage::InvalidVoxelSize)
module - this image was created in
xdim - image number of columns
ydim - image number of rows
zdim - image number of planes
vdim - image vectorial dimension
wdim - image word size in bytes
wordKind - image word kind
sign - image word sign
vx - distance between voxels in the X direction
vy - distance between voxels in the Y direction
vz - distance between voxels in the Z direction
TclInrimage(const std::type_info& info, TclModule *m, unsigned int xdim, unsigned int ydim, unsigned int zdim, Inrimage::WORD_TYPE wt, unsigned int vdim = 1, VECTORIAL_MODE vm = VM_NON_INTERLACED, float vx = 1.0, float vy = 1.0, float vz = 1.0) throw(Inrimage::InvalidSize, Inrimage::UnknownType, Inrimage::InvalidVoxelSize)
InvalidVoxelSize voxels size should be > 0.0
m - module this image was created in
xdim - image number of columns
ydim - image number of rows
zdim - image number of planes
wt - image type
vdim - vectorial dimension (for WT_FLOAT_VECTOR and WT_DOUBLE_VECTOR only, ignored otherwise)
vm - vectorial mode (for WT_FLOAT_VECTOR and WT_DOUBLE_VECTOR only, ignored otherwise)
vx - distance between voxels in the X direction
vy - distance between voxels in the Y direction
vz - distance between voxels in the Z direction
TclInrimage(TclModule *m, const TclString& name, bool headerOnly = false, VECTORIAL_MODE vm = VM_INTERLACED, VECTORIAL_MODE filevm = VM_INTERLACED) throw(Inrimage::ImageNotFound, Inrimage::UnknownImageType, Inrimage::InvalidHeader, Inrimage::InvalidData, Inrimage::UnknownType)
InvalidHeader invalid inrimage header
InvalidData invalid image data
UnknownType unknown file format
name - inrimage file name
headerOnly - only image header is read if headerOnly is set to true
vm - if image has a vectorial type, it can be read interlaced (default) or non interlaced by giving WM_NON_INTERLACED as third argument
filevm - if VM_NON_INTERLACED, data is considered as non-interlaced
@excpetion ImageNotFound image file not found
TclInrimage(TclModule *m, unsigned int xdim, unsigned int ydim, unsigned int zdim, unsigned int vdim = 1, unsigned int wdim = 1, WORD_KIND wordKind = WK_FIXED, SIGN sign = SGN_SIGNED, float vx = 1.0, float vy = 1.0, float vz = 1.0) throw(Inrimage::InvalidSize, Inrimage::UnknownType, Inrimage::InvalidVoxelSize)
xdim - image number of columns
ydim - image number of rows
zdim - image number of planes
vdim - image vectorial dimension
wdim - image word size in bytes
wordKind - image word kind
sign - image word sign
vx - distance between voxels in the X direction
vy - distance between voxels in the Y direction
vz - distance between voxels in the Z direction
TclInrimage(TclModule *m, unsigned int xdim, unsigned int ydim, unsigned int zdim, void *data, unsigned int vdim = 1, unsigned int wdim = 1, WORD_KIND wordKind = WK_FIXED, SIGN sign = SGN_SIGNED, float vx = 1.0, float vy = 1.0, float vz = 1.0) throw(Inrimage::InvalidSize, Inrimage::UnknownType, Inrimage::InvalidVoxelSize)
InvalidVoxelSize voxels size should be > 0.0
xdim - image number of columns
ydim - image number of rows
zdim - image number of planes
data - image data buffer
vdim - image vectorial dimension
wdim - image word size in bytes
wordKind - image word kind
sign - image word sign
vx - distance between voxels in the X direction
vy - distance between voxels in the Y direction
vz - distance between voxels in the Z direction
TclInrimage(TclModule *m, unsigned int xdim, unsigned int ydim, unsigned int zdim, Inrimage::WORD_TYPE wt, unsigned int vdim = 1, VECTORIAL_MODE vm = VM_NON_INTERLACED, float vx = 1.0, float vy = 1.0, float vz = 1.0) throw(Inrimage::InvalidSize, Inrimage::UnknownType, Inrimage::InvalidVoxelSize)
InvalidVoxelSize voxels size should be > 0.0
xdim - image number of columns
ydim - image number of rows
zdim - image number of planes
wt - image type
vdim - vectorial dimension (for WT_FLOAT_VECTOR and WT_DOUBLE_VECTOR only, ignored otherwise)
vm - vectorial mode (for WT_FLOAT_VECTOR and WT_DOUBLE_VECTOR only, ignored otherwise)
vx - distance between voxels in the X direction
vy - distance between voxels in the Y direction
vz - distance between voxels in the Z direction
TclInrimage(const TclInrimage& img) throw(Inrimage::InvalidSize, Inrimage::InvalidVectorialMode, Inrimage::InvalidVoxelSize, Inrimage::NotEnoughMemory)
InvalidVectorialMode img has scalar vectorial mode for vectorial image or opposite
InvalidVoxelSize img has <= 0 voxel size
NotEnoughMemory unable to allocate image buffer
Inrimage* getClient(void) const
unsigned int getX(void) const
unsigned int getY(void) const
unsigned int getZ(void) const
double getVX(void) const
double getVY(void) const
double getVZ(void) const
Inrimage::WORD_TYPE getType(void) const
unsigned int getVdim(void) const
unsigned int getWdim(void) const
void* getData(void) const
void*** getArray(void) const
void**** getVarray(void) const
unsigned int getWordSize() const
WORD_KIND getWordKind() const
SIGN getWordSign() const
VECTORIAL_MODE getVectorialMode() const
void redraw(void) const
void resizeAndRedraw(void) const
void resizeVoxelsAndRedraw(void) const
void rescaleGLAndRedraw(void) const
void changeAndRedraw(void)
void save(const TclString& newname)
void save(void) const
enum CROPARG
static Inrimage::WORD_TYPE typeFromString(char *)
static char* typeToString(Inrimage::WORD_TYPE)
static yav::CONNECTIVITY_TYPE connectivityFromString(char *str)
static int load(TclModule *m, int argc, char **argv)
static TclInrimage* load(const TclString& name, TclModule *m, bool interlace = true, bool fileinterlace = true)
m - module to create interface
interlace - whether vectorial data should be interlaced
fileinterlace - whether source file is interlaced
static int create(TclModule *m, int argc, char **argv)
static int view(TclModule *m, int argc, char **argv)
static TclInrimage* getInterface(Inrimage *inr)
virtual void dying(const ObjectPointer < Inrimage > &g)
static void read(const TclString &filename, Scene2D *scn)
int destroyCmd(int argc, char **argv)
int nameCmd(int argc, char **argv)
int sizeCmd(int argc, char **argv)
int saveCmd(int argc, char **argv)
int anisotropicDiffusionCmd(int argc, char **argv)
int copyCmd(int argc, char **argv)
int histogramCmd(int argc, char **argv)
int redrawCmd(int argc, char **argv)
int slicecamsCmd(int argc, char **argv)
int vectorialCmd(int argc, char **argv)
int floatingCmd(int argc, char **argv)
int glboundsCmd(int argc, char **argv)
int cropCmd(int argc, char **argv)
int isolateRegionCmd(int argc, char **argv)
int zeroRegionCmd(int argc, char **argv)
int voxelCmd(int argc, char **argv)
int windowingCmd(int argc, char **argv)
int flipCmd(int argc, char **argv)
int switchCmd(int argc, char **argv)
int melCmd(int argc, char **argv)
int typeCmd(int argc, char **argv)
int arithCmd(int argc, char **argv)
int logicCmd(int argc, char **argv)
int thresholdCmd(int argc, char **argv)
int lookupCmd(int argc, char **argv)
int cropHistogrammCmd(int argc, char **argv)
int noiseCmd(int argc, char **argv)
int connexeCmd(int argc, char **argv)
int chamferCmd(int argc, char **argv)
int fillCmd(int argc, char **argv)
int morphoCmd(int argc, char **argv)
int gradientCmd(int argc, char **argv)
int convoluteCmd(int argc, char **argv)
int recfilterCmd(int argc, char **argv)
int laplacianCmd(int argc, char **argv)
int splitCmd(int argc, char **argv)
int componentsCmd(int argc, char **argv)
int dftCmd(int argc, char **argv)
int undersampleCmd(int argc, char **argv)
int oversampleCmd(int argc, char **argv)
int resampleCmd(int argc, char **argv)
int transformCmd(int argc, char **argv)
int interpCmd(int argc, char **argv)
int extrapCmd(int argc, char **argv)
int regionCmd(int argc, char **argv)
int curvatureCmd(int argc, char **argv)
static void CreateInrimagePhotoFormat(void)