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

idcnt-calc.h File Reference

#include "idgen.h"
#include "idima.h"

Go to the source code of this file.

Defines

#define OUTPUT
#define IdCntAppendPointsOfSegment(cntSource, x, y)
#define IdCntAllocLikeContour(cn)
#define IdCntReadAscFile(a, b, c)   IdCntReadAscFileWithOffset((a), (b), (c), 0, 0)
#define IdCntReadAscFileToCnt(a, b)   IdCntReadAscFileToCntWithOffset((a), (b), 0, 0)
#define IdCntAddPointsOfSegment(contour_, a, b, c, d)   _IdCntAddPointsOfSegment(&(contour_),(a),(b),(c),(d))
#define IdCntInsertPointsOfSegment(contour_, a, b, c)   _IdCntInsertPointsOfSegment(&(contour_),(a),(b),(c))
#define IdCntConnexPts(contour_, a)   _IdCntConnexPts(&(contour_),(a))
#define IdCntClean(contour_)   _IdCntClean(&(contour_))
#define IdCntCleanFromStart(contour_, i)   _IdCntCleanFromStart(&(contour_), (i))
#define IdCntAddPointG(contour, valx, valy)   _IdCntAddPointG((PCONTOUR*)&(contour), (valx),(valy))

Functions

PCONTOUR_USHORT IdSigBsplineInterpCompCtrlPts (PCONTOUR_USHORT)
PCONTOUR IdCntReadAscFileWithOffset (char *, int, int, int, int)
int IdCntReadAscFileToCntWithOffset (char *, PCONTOUR, int, int)
int IdCntGetAscFileLength (char *, int, int)
int IdCntWriteAsciiFile (char *, PCONTOUR)
PCONTOUR IdCntReadRawFile (char *, int, int)
int IdCntReadRawFileToCnt (char *, PCONTOUR)
PCONTOUR IdCntReadRawFileWithOffset (char *, int, int, int)
int IdCntReadRawFileToCntWithOffset (char *, PCONTOUR, int)
int IdCntGetRawFileLength (char *, int)
int IdCntWriteRawFile (char *, PCONTOUR)
int IdCntDelPoint (PCONTOUR, int)
int IdCntDelPoints (PCONTOUR, int, int)
PCONTOUR IdCntVecteurToContour (void *, int, int, int)
PCONTOUR IdCntModifLongueur (PCONTOUR, int)
void IdCntRectEnglob (PCONTOUR_USHORT, int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT)
int IdCntMoveContour (PCONTOUR_USHORT, int, int)
void IdCntCentreGravite (PCONTOUR_USHORT contour, int *OUTPUT, int *OUTPUT)
int IdCntFillPolygon (PCONTOUR_USHORT, PPIMAGE_UCHAR, int)
int IdCntFillPolygonXXX (PCONTOUR_USHORT, PPIMAGE_UCHAR, int)
int IdCntFillExtPolygon (PCONTOUR_USHORT, PPIMAGE_UCHAR, int)
PCONTOUR_USHORT IdCntPointsOfSegment (int, int, int, int)
double IdCntSurfacePoly (PCONTOUR_USHORT)
PCONTOUR_USHORT IdCntSignalToCntImage (PSIGNAL, int, int, int, int, int, double, double)
void IdCntCentreGraviteG (PCONTOUR, double *OUTPUT, double *OUTPUT)
double IdCntCalculAireG (PCONTOUR)
double IdCntGetXG (PCONTOUR, int)
double IdCntGetYG (PCONTOUR, int)
int IdCntRotateContour (PCONTOUR_USHORT, int, int, double)
int IdCntRotateContourDouble (PCONTOUR_DOUBLE, int, int, double)
int IdCntZoomContourDouble (PCONTOUR_DOUBLE, int, int, double)
PCONTOUR IdCntConcat (PCONTOUR, PCONTOUR)
PCONTOUR_USHORT IdCntReadContour (char *)
int IdImaFillContour (PPIMAGE_UCHAR im, int nivGris)
int IdCntDrawPolyLine (PCONTOUR_USHORT, PPIMAGE_UCHAR, int, int)
 Draws a poly line (continuous collection of linear segments) on an image out of a CNT_USHORT.

int IdCntDrawPolygon (PCONTOUR_USHORT, PPIMAGE_UCHAR, int, int)
 Draws a polygon (closed continuous collection of linear segments) on an image out of a CNT_USHORT.

int IdCntDrawPolyLineOffset (PCONTOUR_USHORT, int, int, PPIMAGE_UCHAR, int, int)
 Draws an "offseted" poly line (continuous collection of linear segments) on an image out of a CNT_USHORT.

int IdCntDrawPolygonOffset (PCONTOUR_USHORT, int, int, PPIMAGE_UCHAR, int, int)
 Draws an "offseted" polygon (closed continuous collection of linear segments) on an image out of a CNT_USHORT.


Define Documentation

#define IdCntAddPointG contour,
valx,
valy   )     _IdCntAddPointG((PCONTOUR*)&(contour), (valx),(valy))
 

Definition at line 167 of file idcnt-calc.h.

#define IdCntAddPointsOfSegment contour_,
a,
b,
c,
 )     _IdCntAddPointsOfSegment(&(contour_),(a),(b),(c),(d))
 

Definition at line 135 of file idcnt-calc.h.

Referenced by _IdCntConnexPts().

#define IdCntAllocLikeContour cn   ) 
 

Value:

((!(cn)) ? 0 \ : IdCntAlloc ( IdCntDimX(cn),IdCntType(cn) ))

Definition at line 110 of file idcnt-calc.h.

#define IdCntAppendPointsOfSegment cntSource,
x,
 ) 
 

Value:

IdCntAddPointsOfSegment ((cntSource), \ IdCntGetX(cntSource,IdCntGetUsedNbX(cntSource)-1), \ IdCntGetY(cntSource,IdCntGetUsedNbX(cntSource)-1),(x),(y));

Definition at line 100 of file idcnt-calc.h.

#define IdCntClean contour_   )     _IdCntClean(&(contour_))
 

Definition at line 155 of file idcnt-calc.h.

Referenced by _IdCntConnexPts(), IdCntFillPolygon(), IdCntFillPolygonXXX(), and IdCntSurfacePoly().

#define IdCntCleanFromStart contour_,
 )     _IdCntCleanFromStart(&(contour_), (i))
 

Definition at line 161 of file idcnt-calc.h.

#define IdCntConnexPts contour_,
 )     _IdCntConnexPts(&(contour_),(a))
 

Definition at line 149 of file idcnt-calc.h.

#define IdCntInsertPointsOfSegment contour_,
a,
b,
 )     _IdCntInsertPointsOfSegment(&(contour_),(a),(b),(c))
 

Definition at line 142 of file idcnt-calc.h.

#define IdCntReadAscFile a,
b,
 )     IdCntReadAscFileWithOffset((a), (b), (c), 0, 0)
 

Definition at line 119 of file idcnt-calc.h.

#define IdCntReadAscFileToCnt a,
b   )     IdCntReadAscFileToCntWithOffset((a), (b), 0, 0)
 

Definition at line 121 of file idcnt-calc.h.

#define OUTPUT
 

Definition at line 47 of file idcnt-calc.h.


Function Documentation

double IdCntCalculAireG PCONTOUR   ) 
 

void IdCntCentreGravite PCONTOUR_USHORT  contour,
int *  OUTPUT,
int *  OUTPUT
 

Definition at line 82 of file cntcdg.c.

References IdCntGetX, IdCntGetY, IdCntUsedNbX, and PCONTOUR_USHORT.

void IdCntCentreGraviteG PCONTOUR  ,
double *  OUTPUT,
double *  OUTPUT
 

PCONTOUR IdCntConcat PCONTOUR  ,
PCONTOUR 
 

Definition at line 609 of file cntutil.c.

References CNT, IdCntDimX, IdCntModifLongueur(), IdCntSameType, IdCntSetUsedNbX, IdCntUsedNbX, IDERR_POINTER_IS_NULL, IDERR_WRONG_TYPE, IdErrno, IdLibidoType, IdSizeOfType, and PCONTOUR.

int IdCntDelPoint PCONTOUR  ,
int 
 

Definition at line 488 of file cntutil.c.

References CNT, IdCntGetUsedNbX, IdCntSetUsedNbX, IdCntUsedNbX, IDERR_POINTER_IS_NULL, IDERR_WRONG_TYPE, IdErrno, IdLibidoType, and IdSizeOfType.

int IdCntDelPoints PCONTOUR  ,
int  ,
int 
 

Definition at line 548 of file cntutil.c.

References CNT, IdCntGetUsedNbX, IdCntSetUsedNbX, IdCntUsedNbX, IDERR_POINTER_IS_NULL, IDERR_WRONG_TYPE, IdErrno, IdLibidoType, and IdSizeOfType.

int IdCntDrawPolygon PCONTOUR_USHORT  contour,
PPIMAGE_UCHAR  image,
int  code,
int  greylevel
 

Draws a polygon (closed continuous collection of linear segments) on an image out of a CNT_USHORT.

Parameters:
contour Pointer to source contour.
image Pointer to destination image.
code Type of drawing : 0 means direct drawing, 1 means AND, 2 for OR and 3 for XOR (refer to IdImaDrawLine).
greylevel Grey level of the line to draw.
Returns:
0 on failure, 1 on sucess.

Definition at line 148 of file cntfill.c.

References _IdCntDrawPolygonOffset(), code, and image.

Referenced by IdCntFillPolygon().

int IdCntDrawPolygonOffset PCONTOUR_USHORT  contour,
int  ox,
int  oy,
PPIMAGE_UCHAR  image,
int  code,
int  greylevel
 

Draws an "offseted" polygon (closed continuous collection of linear segments) on an image out of a CNT_USHORT.

Parameters:
contour Pointer to source contour.
ox Offset along the X axis.
oy Offset along the Y axis.
image Pointer to destination image.
code Type of drawing : 0 means direct drawing, 1 means AND, 2 for OR and 3 for XOR (refer to IdImaDrawLine).
greylevel Grey level of the line to draw.
Returns:
0 on failure, 1 on sucess.

Definition at line 170 of file cntfill.c.

References _IdCntDrawPolygonOffset(), code, and image.

Referenced by IdCntFillPolygonXXX(), and IdCntSurfacePoly().

int IdCntDrawPolyLine PCONTOUR_USHORT  contour,
PPIMAGE_UCHAR  image,
int  code,
int  greylevel
 

Draws a poly line (continuous collection of linear segments) on an image out of a CNT_USHORT.

Parameters:
contour Pointer to source contour.
image Pointer to destination image.
code Type of drawing : 0 means direct drawing, 1 means AND, 2 for OR and 3 for XOR (refer to IdImaDrawLine).
greylevel Grey level of the line to draw.
Returns:
0 on failure, 1 on sucess.

Definition at line 103 of file cntfill.c.

References _IdCntDrawPolygonOffset(), code, and image.

int IdCntDrawPolyLineOffset PCONTOUR_USHORT  contour,
int  ox,
int  oy,
PPIMAGE_UCHAR  image,
int  code,
int  greylevel
 

Draws an "offseted" poly line (continuous collection of linear segments) on an image out of a CNT_USHORT.

Parameters:
contour Pointer to source contour.
ox Offset along the X axis.
oy Offset along the Y axis.
image Pointer to destination image.
code Type of drawing : 0 means direct drawing, 1 means AND, 2 for OR and 3 for XOR (refer to IdImaDrawLine).
greylevel Grey level of the line to draw.
Returns:
0 on failure, 1 on sucess.

Definition at line 126 of file cntfill.c.

References _IdCntDrawPolygonOffset(), code, and image.

int IdCntFillExtPolygon PCONTOUR_USHORT  ,
PPIMAGE_UCHAR  ,
int 
 

Definition at line 469 of file cntcdg.c.

References IdCntFillPolygon(), IdImaAllocLikeImage(), IdImaClear(), IdImaDimX(), IdImaDimY(), PPIMAGE, and PPIMAGE_UCHAR.

int IdCntFillPolygon PCONTOUR_USHORT  ,
PPIMAGE_UCHAR  ,
int 
 

Definition at line 518 of file cntcdg.c.

References IdCntClean, IdCntDrawPolygon(), IdCntUsedNbX, IdImaAllocLikeImage(), IdImaClear(), IdImaDimX(), IdImaDimY(), IdImaFill(), IdImaFree, PPIMAGE, and PPIMAGE_UCHAR.

Referenced by IdCntFillExtPolygon().

int IdCntFillPolygonXXX PCONTOUR_USHORT  ,
PPIMAGE_UCHAR  ,
int 
 

Definition at line 555 of file cntcdg.c.

References IdCntClean, IdCntDrawPolygonOffset(), IdCntRectEnglob(), IdCntUsedNbX, IdImaAlloc(), IdImaClear(), IdImaDimX(), IdImaDimY(), IMA_UCHAR, PPIMAGE, and PPIMAGE_UCHAR.

int IdCntGetAscFileLength char *  ,
int  ,
int 
 

int IdCntGetRawFileLength char *  ,
int 
 

double IdCntGetXG PCONTOUR  ,
int 
 

double IdCntGetYG PCONTOUR  ,
int 
 

PCONTOUR IdCntModifLongueur PCONTOUR  ,
int 
 

Definition at line 263 of file cntallo.c.

References _IdCntPrivate, CNT, PRIVATE_CONTOUR::DimX, IDERR_ALLOC_CNT, IDERR_WRONG_TYPE, IdErrno, IdErrPrintf(), IdLibidoType, IdSizeOfType, and PCONTOUR.

Referenced by _IdCntAddPoint(), _IdCntInsertPoint(), _IdCntInsertPointsOfSegment(), and IdCntConcat().

int IdCntMoveContour PCONTOUR_USHORT  ,
int  ,
int 
 

Definition at line 224 of file cntutil.c.

References IdCntGetX, IdCntGetY, IdCntSetX, IdCntSetY, IdCntUsedNbX, IDERR_POINTER_IS_NULL, and IdErrno.

PCONTOUR_USHORT IdCntPointsOfSegment int  ,
int  ,
int  ,
int 
 

Definition at line 392 of file imadrawline.c.

References CNT_USHORT, IdCntAddPoint, IdCntAlloc(), IDERR_ALLOC_CNT, IDERR_INVALID_NUMBER, IdErrno, IdErrPrintf(), and x.

int IdCntReadAscFileToCntWithOffset char *  ,
PCONTOUR  ,
int  ,
int 
 

PCONTOUR IdCntReadAscFileWithOffset char *  ,
int  ,
int  ,
int  ,
int 
 

PCONTOUR_USHORT IdCntReadContour char *   ) 
 

PCONTOUR IdCntReadRawFile char *  ,
int  ,
int 
 

int IdCntReadRawFileToCnt char *  ,
PCONTOUR 
 

int IdCntReadRawFileToCntWithOffset char *  ,
PCONTOUR  ,
int 
 

PCONTOUR IdCntReadRawFileWithOffset char *  ,
int  ,
int  ,
int 
 

void IdCntRectEnglob PCONTOUR_USHORT  ,
int *  OUTPUT,
int *  OUTPUT,
int *  OUTPUT,
int *  OUTPUT
 

Definition at line 127 of file cntcdg.c.

References IdCntGetX, IdCntGetY, and IdCntUsedNbX.

Referenced by IdCntFillPolygonXXX(), IdCntSurfacePoly(), and IdCntZoomContourDouble().

int IdCntRotateContour PCONTOUR_USHORT  ,
int  ,
int  ,
double 
 

Definition at line 273 of file cntutil.c.

References IdCntGetX, IdCntGetY, IdCntSetX, IdCntSetY, IdCntUsedNbX, IDERR_POINTER_IS_NULL, IdErrno, and x.

int IdCntRotateContourDouble PCONTOUR_DOUBLE  ,
int  ,
int  ,
double 
 

Definition at line 338 of file cntutil.c.

References IdCntGetX, IdCntGetY, IdCntSetX, IdCntSetY, IdCntUsedNbX, IDERR_POINTER_IS_NULL, IdErrno, PCONTOUR_DOUBLE, and x.

PCONTOUR_USHORT IdCntSignalToCntImage PSIGNAL  ,
int  ,
int  ,
int  ,
int  ,
int  ,
double  ,
double 
 

double IdCntSurfacePoly PCONTOUR_USHORT   ) 
 

Definition at line 363 of file cntcdg.c.

References IdCntClean, IdCntDrawPolygonOffset(), IdCntRectEnglob(), IdCntUsedNbX, IdImaAlloc(), IdImaClear(), IdImaDimX(), IdImaDimY(), IMA_UCHAR, PPIMAGE, and PPIMAGE_UCHAR.

PCONTOUR IdCntVecteurToContour void *  ,
int  ,
int  ,
int 
 

Definition at line 193 of file cntallo.c.

References CNT, PRIVATE_CONTOUR::DimX, IDERR_ALLOC_CNT, IDERR_WRONG_TYPE, IdErrno, IdErrPrintf(), IDO_TYPE, IdTypeSize, PCONTOUR, and PRIVATE_CONTOUR::Type.

int IdCntWriteAsciiFile char *  ,
PCONTOUR 
 

int IdCntWriteRawFile char *  ,
PCONTOUR 
 

int IdCntZoomContourDouble PCONTOUR_DOUBLE  ,
int  ,
int  ,
double 
 

Definition at line 412 of file cntutil.c.

References IdCalcDistance2Points(), IdCntGetX, IdCntGetY, IdCntRectEnglob(), IdCntSetX, IdCntSetY, IdCntUsedNbX, IDERR_POINTER_IS_NULL, IdErrno, and x.

int IdImaFillContour PPIMAGE_UCHAR  im,
int  nivGris
 

Definition at line 739 of file cntcdg.c.

References IdImaAllocLikeImage(), IdImaClear(), IdImaDimX(), IdImaDimY(), PPIMAGE, and PPIMAGE_UCHAR.

PCONTOUR_USHORT IdSigBsplineInterpCompCtrlPts PCONTOUR_USHORT   ) 
 


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