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

imabasic.c File Reference

#include "idima.h"

Go to the source code of this file.

Functions

int IdImaUsedNbY (void *image)
 Returns the number of pixels along the y axis (vertical) actually USED i.e. the current usefull height of the image. This is to be distinguished from IdImaDimY(image) which is the full height of the image as represented in memory. IdImaUsedNbY is typically usefull when working on a subimage.

int IdImaGetUsedNbY (void *image)
 Alias of IdImaUsedNbY.

int IdImaUsedNbX (void *image)
 Returns the number of pixels along the x axis (horizontal) actually USED i.e. the current usefull width of the image. This is to be distinguished from IdImaDimX(image) which is the full width of the image as represented in memory. IdImaUsedNbX is typically usefull when working on a subimage.

int IdImaGetUsedNbX (void *image)
 Alias of IdImaUsedNbX.

int IdImaDimY (void *image)
 Returns the height of the image i.e. the vertical (y axis) number of pixels.

int IdImaDimX (void *image)
 Returns the width of the image i.e. the horizontal (x axis) number of pixels.

int IdImaBitsPerPixel (void *image)
 Returns the number of bits per pixel of image.

int IdImaType (void *image)
 Returns the Ido type of the image (e.g. IMA_CHAR, IMA_UCHAR, IMA_SHORT, IMA_DOUBLE...

void IdImaSetUsedNbY (void *image, int usedNby)
 Sets the number of used pixels in the vertical direction of a given image.

void IdImaSetUsedNbX (void *image, int usedNbx)
 Sets the number of used pixels in the horizontal direction of a given image.

void IdImaSetDimY (void *image, int height)
 Sets an arbitrary height to an given image i.e. the vertical (y axis) number of pixels.

void IdImaSetDimX (void *image, int width)
 Sets an arbitrary width to an given image i.e. the horizontal (x axis) number of pixels.

void IdImaSetBitsPerPixel (void *image, int bits)
 Sets an arbitrary BitsPerPixel to a given image.

void IdImaSetType (void *image, int type)
 Sets an arbitrary type to a given image.

int IdImaGetBit (char **image, int x, int y)
 Returns the value of the pixel coordinates x,y of an image of type PPIMAGE_BIT.

void IdImaPutBit (char **image, int x, int y, int val)
 Sets the value of the pixel of coordinates x,y an image of type PPIMAGE_BIT.

int IdImaSameSize (void *image1, void *image2)
 Determines wether two images are of same dimensions.

int IdImaSameType (void *image1, void *image2)
 Determines wether two images are of same Type.

int IdImaSameSizeAndType (void *image1, void *image2)
 Determines wether two images are of same Type and same dimensions.


Function Documentation

int IdImaBitsPerPixel void *  image  ) 
 

Returns the number of bits per pixel of image.

Parameters:
image queried image
Returns:
Number of bits per pixel of image

Definition at line 129 of file imabasic.c.

References _IdImaPrivate, and image.

int IdImaDimX void *  image  ) 
 

Returns the width of the image i.e. the horizontal (x axis) number of pixels.

Parameters:
image image whose width is queried
Returns:
horizontal number of pixels of image

Definition at line 117 of file imabasic.c.

References _IdImaPrivate, and image.

Referenced by _IdImaCreImagetteClear(), DisplayImage2D(), IdAcrWriteFileExtended(), IdCntFillExtPolygon(), IdCntFillPolygon(), IdCntFillPolygonXXX(), IdCntSurfacePoly(), IdDcmReadFileIntoVectorFromDcmHdr(), IdImaAllocLikeImage(), IdImaAllocSubImage(), IdImaCheckSizeAlloc(), IdImaCheckSizeAllocType(), IdImaCheckTypeAlloc(), IdImaClear(), IdImaConcat(), IdImaCopy(), IdImaCreImagette(), IdImaDrawLine(), IdImaExtractSubImage(), IdImaFill(), IdImaFillContour(), IdImaLabel(), IdImaMakeImagetteXYHoriz(), IdImaMakeImagetteXYVertic(), IdImaMaxima(), IdImaMinima(), IdImaMinMax(), IdImaModifSubImage(), IdImaMoyenne(), IdImaMoyVar(), IdImaRecad16To16IgnoreUpper(), IdImaRecad16To8(), IdImaRecad16To8IgnoreUpper(), IdImaRecadTo8ABS(), IdImaRecadTo8DCT(), IdImaRecadTo8LOG(), IdImaReuseSigFromLine(), IdImaSameSize(), IdImaSameSizeAndType(), IdImaScotchImages(), IdImaScotchImagesXYHoriz(), IdImaScotchImagesXYVertic(), IdImaSetValue(), IdImaSetValueAnyType(), IdImaSignalFromLine(), IdImaSignalToImage(), IdImaVariance(), IdImaWriteRawFile(), and IdImaZoom().

int IdImaDimY void *  image  ) 
 

Returns the height of the image i.e. the vertical (y axis) number of pixels.

Parameters:
image image whose height is queried
Returns:
vertical number of pixels of image

Definition at line 104 of file imabasic.c.

References _IdImaPrivate, and image.

Referenced by _IdImaCreImagetteClear(), DisplayImage2D(), IdAcrWriteFileExtended(), IdCntFillExtPolygon(), IdCntFillPolygon(), IdCntFillPolygonXXX(), IdCntSurfacePoly(), IdDcmReadFileIntoVectorFromDcmHdr(), IdImaAllocLikeImage(), IdImaAllocSubImage(), IdImaCheckSizeAlloc(), IdImaCheckSizeAllocType(), IdImaCheckTypeAlloc(), IdImaClear(), IdImaConcat(), IdImaCopy(), IdImaCreImagette(), IdImaDrawLine(), IdImaExtractSubImage(), IdImaFill(), IdImaFillContour(), IdImaLabel(), IdImaMakeImagetteXYHoriz(), IdImaMakeImagetteXYVertic(), IdImaMaxima(), IdImaMinima(), IdImaMinMax(), IdImaModifSubImage(), IdImaMoyenne(), IdImaMoyVar(), IdImaRecad16To16IgnoreUpper(), IdImaRecad16To8(), IdImaRecad16To8IgnoreUpper(), IdImaRecadTo8ABS(), IdImaRecadTo8DCT(), IdImaRecadTo8LOG(), IdImaReuseSigFromLine(), IdImaSameSize(), IdImaSameSizeAndType(), IdImaScotchImages(), IdImaScotchImagesXYHoriz(), IdImaScotchImagesXYVertic(), IdImaSetValue(), IdImaSetValueAnyType(), IdImaSignalToImage(), IdImaVariance(), IdImaWriteRawFile(), and IdImaZoom().

int IdImaGetBit char **  image,
int  x,
int  y
 

Returns the value of the pixel coordinates x,y of an image of type PPIMAGE_BIT.

Parameters:
image image whose pixel is queried.
x x coordinate of required pixel
y y coordinate of required pixel
Returns:
value (0 or 1) at specified pixel

Definition at line 239 of file imabasic.c.

References image, and x.

int IdImaGetUsedNbX void *  image  ) 
 

Alias of IdImaUsedNbX.

Parameters:
image image whose USEFULL width is queried
Returns:
horizontal number of USED pixels of image

Definition at line 91 of file imabasic.c.

References IdImaUsedNbX(), and image.

int IdImaGetUsedNbY void *  image  ) 
 

Alias of IdImaUsedNbY.

Parameters:
image image whose USEFULL height is queried
Returns:
vertical number of USED pixels of image

Definition at line 62 of file imabasic.c.

References IdImaUsedNbY(), and image.

void IdImaPutBit char **  image,
int  x,
int  y,
int  val
 

Sets the value of the pixel of coordinates x,y an image of type PPIMAGE_BIT.

Parameters:
image image whose pixel is to be set.
x x coordinate of required pixel
y y coordinate of required pixel
val value to be set at pixel (0 or 1)

Definition at line 254 of file imabasic.c.

References image, val, and x.

int IdImaSameSize void *  image1,
void *  image2
 

Determines wether two images are of same dimensions.

Parameters:
image1 first image to compare
image2 second image to compare
Returns:
True when the two images have same dimensions. False otherwise.

Definition at line 269 of file imabasic.c.

References IdImaDimX(), and IdImaDimY().

Referenced by IdImaCheckSizeAlloc(), and IdImaCheckSizeAllocType().

int IdImaSameSizeAndType void *  image1,
void *  image2
 

Determines wether two images are of same Type and same dimensions.

Parameters:
image1 first image to compare
image2 second image to compare
Returns:
True when the two images have same Type and dimensions. False otherwise.

Definition at line 301 of file imabasic.c.

References IdImaDimX(), IdImaDimY(), and IdImaType().

Referenced by IdImaCheckTypeSizeAlloc(), IdImaCopy(), IdImaScotchImagesXYHoriz(), and IdImaScotchImagesXYVertic().

int IdImaSameType void *  image1,
void *  image2
 

Determines wether two images are of same Type.

Parameters:
image1 first image to compare
image2 second image to compare
Returns:
True when the two images have same Type. False otherwise.

Definition at line 285 of file imabasic.c.

References IdImaType().

Referenced by IdImaCheckTypeAlloc(), and IdImaCheckTypeAllocSize().

void IdImaSetBitsPerPixel void *  image,
int  bits
 

Sets an arbitrary BitsPerPixel to a given image.

Parameters:
image image whose BitsPerPixel is to be modified
bits Number of bits per pixel to be set

Definition at line 212 of file imabasic.c.

References _IdImaPrivate, and image.

void IdImaSetDimX void *  image,
int  width
 

Sets an arbitrary width to an given image i.e. the horizontal (x axis) number of pixels.

Warning:
This function should be used with extreme caution. They are very few good reasons to use it and even the IdoDude once said "Using IdImaSetDimX is calling for trouble".
Parameters:
image image whose width is to be modified
width width to be set

Definition at line 200 of file imabasic.c.

References _IdImaPrivate, and image.

void IdImaSetDimY void *  image,
int  height
 

Sets an arbitrary height to an given image i.e. the vertical (y axis) number of pixels.

Warning:
This function should be used with extreme caution. They are very few good reasons to use it and even the IdoDude once said "Using IdImaSetDimY is calling for trouble".
Parameters:
image image whose height is to be modified
height height to be set

Definition at line 184 of file imabasic.c.

References _IdImaPrivate, and image.

void IdImaSetType void *  image,
int  type
 

Sets an arbitrary type to a given image.

Parameters:
image image whose Type is to be modified
type type to be set

Definition at line 224 of file imabasic.c.

References _IdImaPrivate, and image.

void IdImaSetUsedNbX void *  image,
int  usedNbx
 

Sets the number of used pixels in the horizontal direction of a given image.

Parameters:
image image whose UsedNbX is to be modified
usedNbx UsedNbX to be set

Definition at line 168 of file imabasic.c.

References _IdImaPrivate, and image.

Referenced by IdDcmReadFileIntoVectorFromDcmHdr(), IdImaClear(), IdImaSetValue(), and IdImaSetValueAnyType().

void IdImaSetUsedNbY void *  image,
int  usedNby
 

Sets the number of used pixels in the vertical direction of a given image.

Parameters:
image image whose UsedNbY is to be modified
usedNby UsedNbY to be set

Definition at line 155 of file imabasic.c.

References _IdImaPrivate, and image.

Referenced by IdDcmReadFileIntoVectorFromDcmHdr(), IdImaClear(), IdImaSetValue(), and IdImaSetValueAnyType().

int IdImaType void *  image  ) 
 

Returns the Ido type of the image (e.g. IMA_CHAR, IMA_UCHAR, IMA_SHORT, IMA_DOUBLE...

Parameters:
image image whose Type is queried
Returns:
Ido type of image

Definition at line 142 of file imabasic.c.

References _IdImaPrivate, and image.

Referenced by IdImaAllocLikeImage(), IdImaAllocSubImage(), IdImaCheckSizeAlloc(), IdImaCheckSizeAllocType(), IdImaCheckTypeAlloc(), IdImaCheckTypeAllocSize(), IdImaCheckTypeSizeAlloc(), IdImaClear(), IdImaConcat(), IdImaDrawLine(), IdImaFill(), IdImaLabel(), IdImaMaxima(), IdImaMinima(), IdImaMinMax(), IdImaMoyenne(), IdImaMoyVar(), IdImaRecadTo16(), IdImaRecadTo8(), IdImaRecadTo8ABS(), IdImaRecadTo8DCT(), IdImaRecadTo8LOG(), IdImaSameSizeAndType(), IdImaSameType(), IdImaSetValue(), IdImaSetValueAnyType(), IdImaVariance(), and IdImaZoom().

int IdImaUsedNbX void *  image  ) 
 

Returns the number of pixels along the x axis (horizontal) actually USED i.e. the current usefull width of the image. This is to be distinguished from IdImaDimX(image) which is the full width of the image as represented in memory. IdImaUsedNbX is typically usefull when working on a subimage.

Parameters:
image image whose USEFULL width is queried
Returns:
horizontal number of USED pixels of image

Definition at line 79 of file imabasic.c.

References _IdImaPrivate, and image.

Referenced by IdAcrWriteFileExtended(), and IdImaGetUsedNbX().

int IdImaUsedNbY void *  image  ) 
 

Returns the number of pixels along the y axis (vertical) actually USED i.e. the current usefull height of the image. This is to be distinguished from IdImaDimY(image) which is the full height of the image as represented in memory. IdImaUsedNbY is typically usefull when working on a subimage.

Parameters:
image image whose USEFULL height is queried
Returns:
vertical number of USED pixels of image

Definition at line 50 of file imabasic.c.

References _IdImaPrivate, and image.

Referenced by IdAcrWriteFileExtended(), and IdImaGetUsedNbY().


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