Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

idima-base.h File Reference

#include <stdio.h>
#include "idgen.h"
#include "idsig-ido.h"
#include "idima-ido.h"
#include "idima-restricted.h"

Go to the source code of this file.

Defines

#define IdImaFree(pi)   _IdImaFree((PPIMAGE*)&(pi) )

Functions

void IdImaFree (PPIMAGE pi)
PPIMAGE IdImaAlloc (int, int, int)
 Dynamic allocation of PPIMAGE "object".


Define Documentation

#define IdImaFree pi   )     _IdImaFree((PPIMAGE*)&(pi) )
 

Definition at line 65 of file idima-base.h.

Referenced by _IdImaCreImagetteClear(), DisplayObject1D(), DisplayObject2D(), DisplayVol(), DisplayVolX(), GetkSpaceImage2DFromExperience(), GetTestObject2D(), IdCntFillPolygon(), IdImaAlloc(), IdImaCreImagette(), IdImaFill(), IdImaRecadTo8ABS(), IdImaRecadTo8DCT(), IdImaRecadTo8LOG(), SetObjectFieldDefault2D(), and WriteVolRecUchar().


Function Documentation

PPIMAGE IdImaAlloc int  sx,
int  sy,
int  ty
 

Dynamic allocation of PPIMAGE "object".

Warning:
It is the callers responsability to check the pointer returned by IdImaAlloc.
Parameters:
sx Width (horizontal dimension) of the image to be allocated
sy Height (vertical dimension) of the image to be allocated
ty Ido type of the image e.g. IMA_UCHAR, IMA_FLOAT, IMA_RGB...
Returns:
(PPIMAGE)0 on failure. Pointer (casted to PPIMAGE) of newly allocated image on success.

Definition at line 221 of file imaallo.c.

References PRIVATE_IMAGE::_fichier, _IdAllocLinesOfPlane(), PRIVATE_IMAGE::_message, PRIVATE_IMAGE::DimX, PRIVATE_IMAGE::DimY, IDERR_ALLOC_MEM, IDERR_WRONG_TYPE, IdErrno, IdErrPrintf(), IdImaFree, IDO_TYPE, IdSizeOfType, IMA, IMA_BIT, IMA_UCHAR, PPIMAGE, PRIVATE_IMAGE::subObject, PRIVATE_IMAGE::Type, PRIVATE_IMAGE::UsedNbX, and PRIVATE_IMAGE::UsedNbY.

Referenced by _IdImaCreImagetteClear(), DisplayObject2D(), DisplayVol(), GetBrainPhysicalValues(), GetkSpaceImage2DFromExperience(), IdCntFillPolygonXXX(), IdCntSurfacePoly(), IdDcmReadFileIntoVectorFromDcmHdr(), IdImaAllocLikeImage(), IdImaCheckSizeAlloc(), IdImaCheckSizeAllocType(), IdImaCheckTypeAlloc(), IdImaCheckTypeAllocSize(), IdImaCreImagette(), IdImaFill(), IdImaMakeImagetteXYHoriz(), IdImaMakeImagetteXYVertic(), IdImaRecad16To16IgnoreUpper(), IdImaRecad16To8(), IdImaRecad16To8IgnoreUpper(), IdImaRecadTo8ABS(), IdImaRecadTo8DCT(), IdImaRecadTo8LOG(), IdImaScotchImages(), IdImaSignalToImage(), SetObjectFieldDefault2D(), and WriteVolRecUchar().

void IdImaFree PPIMAGE  pi  ) 
 

Definition at line 67 of file idima-base.h.

References _IdImaFree(), and PPIMAGE.


Generated on Wed Oct 19 09:28:35 2005 for SIMRI3D by doxygen 1.3.7