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

idseq.h File Reference

#include "idgen.h"
#include "idvol.h"
#include "idpoint.h"
#include "idseq-restricted.h"

Go to the source code of this file.

Data Structures

struct  PRIVATE_SEQUENCE

Defines

#define SEQ_CHAR   (SEQ | TY_CHAR)
#define SEQ_UCHAR   (SEQ | TY_UCHAR)
#define SEQ_SHORT   (SEQ | TY_SHORT)
#define SEQ_USHORT   (SEQ | TY_USHORT)
#define SEQ_LONG   (SEQ | TY_LONG)
#define SEQ_ULONG   (SEQ | TY_ULONG)
#define SEQ_FLOAT   (SEQ | TY_FLOAT)
#define SEQ_DOUBLE   (SEQ | TY_DOUBLE)
#define SEQ_COMPLEX   (SEQ | TY_COMPLEX)
#define SEQ_RGB   (SEQ | TY_RGB)
#define SEQ_COMPLEX_DOUBLE   (SEQ | TY_COMPLEX_DOUBLE)
#define SEQ_COMPLEX_FLOAT   (SEQ | TY_COMPLEX_FLOAT )
#define SEQ_COMPLEX_CHAR   (SEQ | TY_COMPLEX_CHAR )
#define SEQ_COMPLEX_UCHAR   (SEQ | TY_COMPLEX_UCHAR )
#define SEQ_COMPLEX_SHORT   (SEQ | TY_COMPLEX_SHORT )
#define SEQ_COMPLEX_USHORT   (SEQ | TY_COMPLEX_USHORT)
#define SEQ_COMPLEX_LONG   (SEQ | TY_COMPLEX_LONG )
#define SEQ_COMPLEX_ULONG   (SEQ | TY_COMPLEX_ULONG )
#define SEQ_BIT   (SEQ | TY_BIT )
#define SEQ_POINTER   (SEQ | TY_POINTER )
#define _IdSeqPrivate(seq)   ( ((PRIVATE_SEQUENCE*)(seq) )-1 )
#define IdSeqDimX(sequence_)   ( (_IdSeqPrivate(sequence_) )->DimX)
#define IdSeqDimY(sequence_)   ( (_IdSeqPrivate(sequence_) )->DimY)
#define IdSeqDimZ(sequence_)   ( (_IdSeqPrivate(sequence_) )->DimZ)
#define IdSeqDimT(sequence_)   ( (_IdSeqPrivate(sequence_) )->DimT)
#define IdSeqUsedNbX(sequence_)   ( (_IdSeqPrivate(sequence_) )->UsedNbX)
#define IdSeqUsedNbY(sequence_)   ( (_IdSeqPrivate(sequence_) )->UsedNbY)
#define IdSeqUsedNbZ(sequence_)   ( (_IdSeqPrivate(sequence_) )->UsedNbZ)
#define IdSeqUsedNbT(sequence_)   ( (_IdSeqPrivate(sequence_) )->UsedNbT)
#define IdSeqSetUsedNbX(seq_, nb)   ( _IdSeqPrivate(seq_)->UsedNbX=(nb) )
#define IdSeqGetUsedNbX(seq_)   ( _IdSeqPrivate(seq_)->UsedNbX)
#define IdSeqSetUsedNbY(seq_, nb)   ( _IdSeqPrivate(seq_)->UsedNbY=(nb) )
#define IdSeqGetUsedNbY(seq_)   ( _IdSeqPrivate(seq_)->UsedNbY)
#define IdSeqSetUsedNbZ(seq_, nb)   ( _IdSeqPrivate(seq_)->UsedNbZ=(nb) )
#define IdSeqGetUsedNbZ(seq_)   ( _IdSeqPrivate(seq_)->UsedNbZ)
#define IdSeqSetUsedNbT(seq_, nb)   ( _IdSeqPrivate(seq_)->UsedNbT=(nb) )
#define IdSeqGetUsedNbT(seq_)   ( _IdSeqPrivate(seq_)->UsedNbT)
#define IdSeqGetBit(seq, x, y, z, t)   (((seq)[t][z][y][(x)>>3]>>((x)&7) )&1)
#define IdSeqPutBit(seq, x, y, z, t, n)
#define IdSeqType(sequence_)   ( (_IdSeqPrivate(sequence_) )->Type)
#define IdSeqAllocLikeSequence(vo)
#define IdSeqSameSizeAndType(vo1, vo2)
#define IdSeqSameSize(vo1, vo2)
#define IdSeqSameType(vo1, vo2)   (IdSeqType(vo1)==IdSeqType(vo2) )
#define IdSeqFree(pi)   _IdSeqFree((PPPPSEQUENCE*)&(pi) )
#define IdSeqFreeSubSequence(pi)   _IdSeqFreeSubSequence((PPPPSEQUENCE*)&(pi) )

Typedefs

typedef void **** PPPPSEQUENCE
typedef char **** PPPPSEQUENCE_CHAR
typedef unsigned char **** PPPPSEQUENCE_UCHAR
typedef float **** PPPPSEQUENCE_FLOAT
typedef double **** PPPPSEQUENCE_DOUBLE
typedef COMPLEX **** PPPPSEQUENCE_COMPLEX
typedef RGB **** PPPPSEQUENCE_RGB
typedef short **** PPPPSEQUENCE_SHORT
typedef unsigned short **** PPPPSEQUENCE_USHORT
typedef long **** PPPPSEQUENCE_LONG
typedef unsigned long **** PPPPSEQUENCE_ULONG
typedef COMPLEX_DOUBLE **** PPPPSEQUENCE_COMPLEX_DOUBLE
typedef COMPLEX_FLOAT **** PPPPSEQUENCE_COMPLEX_FLOAT
typedef COMPLEX_CHAR **** PPPPSEQUENCE_COMPLEX_CHAR
typedef COMPLEX_UCHAR **** PPPPSEQUENCE_COMPLEX_UCHAR
typedef COMPLEX_SHORT **** PPPPSEQUENCE_COMPLEX_SHORT
typedef COMPLEX_USHORT **** PPPPSEQUENCE_COMPLEX_USHORT
typedef COMPLEX_LONG **** PPPPSEQUENCE_COMPLEX_LONG
typedef COMPLEX_ULONG **** PPPPSEQUENCE_COMPLEX_ULONG
typedef PPPPSEQUENCE_UCHAR PPPPPPSEQUENCE_BIT
typedef void **** PPPPSEQUENCE_POINTER

Functions

PPPPSEQUENCE IdSeqVecteurToSequence (void *, int, int, int, int, int)
PPPPSEQUENCE IdSeqAlloc (int, int, int, int, int)
 Allocation d'une structure SEQuence compacte (seqxels consecutifs).

PPPPSEQUENCE IdSeqAllocSubSequence (PPPPSEQUENCE, int, int, int, int, int, int, int, int)
PPPPSEQUENCE IdSeqModifSubSequence (PPPPSEQUENCE, PPPPSEQUENCE, int, int, int, int)
PPPPSEQUENCE IdSeqTabVolToSequence (PPPVOLUME *, int)
PPPVOLUMEIdSeqSequenceToTabVol (PPPPSEQUENCE)
PPPPSEQUENCE IdSeqClear (PPPPSEQUENCE)
PPPPSEQUENCE_UCHAR IdSeqSetValue (PPPPSEQUENCE_UCHAR, int)
PPPPSEQUENCE IdSeqCopy (PPPPSEQUENCE, PPPPSEQUENCE)
PPPPSEQUENCE IdSeqCast (PPPPSEQUENCE, PPPPSEQUENCE)
PPPPSEQUENCE IdSeqCastReal (PPPPSEQUENCE, PPPPSEQUENCE)
PPPPSEQUENCE IdSeqCastComplex (PPPPSEQUENCE, PPPPSEQUENCE)
PPPPSEQUENCE IdSeqCheckTypeSizeAlloc (PPPPSEQUENCE, int, PPPPSEQUENCE)
PPPPSEQUENCE IdSeqCheckSizeAlloc (PPPPSEQUENCE, int, PPPPSEQUENCE)
PPPPSEQUENCE IdSeqCheckTypeAlloc (PPPPSEQUENCE, int, PPPPSEQUENCE)
PPPPSEQUENCE IdSeqCheckSizeAllocType (PPPPSEQUENCE, int, PPPPSEQUENCE, int)
PPPPSEQUENCE IdSeqCheckTypeAllocSize (PPPPSEQUENCE, int, PPPPSEQUENCE, int, int, int, int)
void IdSeqSwap (PPPPSEQUENCE, int)
PPPPSEQUENCE IdSeqReadRawFile (char *, int, int, int, int, int)
int IdSeqReadRawFileToSeq (char *, PPPPSEQUENCE)
PPPPSEQUENCE IdSeqReadRawFileWithOffset (char *, int, int, int, int, int, int)
int IdSeqReadRawFileToSeqWithOffset (char *, PPPPSEQUENCE, int)
int IdSeqWriteRawFile (char *, PPPPSEQUENCE)


Define Documentation

#define _IdSeqPrivate seq   )     ( ((PRIVATE_SEQUENCE*)(seq) )-1 )
 

Definition at line 118 of file idseq.h.

#define IdSeqAllocLikeSequence vo   ) 
 

Value:

((!(vo) ) ? 0 \ : IdSeqAlloc(IdSeqDimX(vo), IdSeqDimY(vo), \ IdSeqDimZ(vo), IdSeqDimT(vo), \ IdSeqType(vo) ) )

Definition at line 192 of file idseq.h.

#define IdSeqDimT sequence_   )     ( (_IdSeqPrivate(sequence_) )->DimT)
 

Definition at line 123 of file idseq.h.

#define IdSeqDimX sequence_   )     ( (_IdSeqPrivate(sequence_) )->DimX)
 

Definition at line 120 of file idseq.h.

#define IdSeqDimY sequence_   )     ( (_IdSeqPrivate(sequence_) )->DimY)
 

Definition at line 121 of file idseq.h.

#define IdSeqDimZ sequence_   )     ( (_IdSeqPrivate(sequence_) )->DimZ)
 

Definition at line 122 of file idseq.h.

#define IdSeqFree pi   )     _IdSeqFree((PPPPSEQUENCE*)&(pi) )
 

Definition at line 235 of file idseq.h.

#define IdSeqFreeSubSequence pi   )     _IdSeqFreeSubSequence((PPPPSEQUENCE*)&(pi) )
 

Definition at line 236 of file idseq.h.

#define IdSeqGetBit seq,
x,
y,
z,
 )     (((seq)[t][z][y][(x)>>3]>>((x)&7) )&1)
 

Definition at line 139 of file idseq.h.

#define IdSeqGetUsedNbT seq_   )     ( _IdSeqPrivate(seq_)->UsedNbT)
 

Definition at line 137 of file idseq.h.

#define IdSeqGetUsedNbX seq_   )     ( _IdSeqPrivate(seq_)->UsedNbX)
 

Definition at line 131 of file idseq.h.

#define IdSeqGetUsedNbY seq_   )     ( _IdSeqPrivate(seq_)->UsedNbY)
 

Definition at line 133 of file idseq.h.

#define IdSeqGetUsedNbZ seq_   )     ( _IdSeqPrivate(seq_)->UsedNbZ)
 

Definition at line 135 of file idseq.h.

#define IdSeqPutBit seq,
x,
y,
z,
t,
 ) 
 

Value:

( (n) \ ? ( ((seq)[t][z][y][x>>3])|= (1<<((x)&7) ) ) \ : ( ((seq)[t][z][y][x>>3])&=~(1<<((x)&7) ) ) )

Definition at line 140 of file idseq.h.

#define IdSeqSameSize vo1,
vo2   ) 
 

Value:

((IdSeqDimX(vo1)==IdSeqDimX(vo2) ) && \ (IdSeqDimY(vo1)==IdSeqDimY(vo2) ) && \ (IdSeqDimZ(vo1)==IdSeqDimZ(vo2) ) && \ (IdSeqDimT(vo1)==IdSeqDimT(vo2) ) )

Definition at line 207 of file idseq.h.

#define IdSeqSameSizeAndType vo1,
vo2   ) 
 

Value:

((IdSeqDimX(vo1)==IdSeqDimX(vo2) ) && \ (IdSeqDimY(vo1)==IdSeqDimY(vo2) ) && \ (IdSeqDimZ(vo1)==IdSeqDimZ(vo2) ) && \ (IdSeqDimT(vo1)==IdSeqDimT(vo2) ) && \ (IdSeqType(vo1)==IdSeqType(vo2) ) )

Definition at line 199 of file idseq.h.

#define IdSeqSameType vo1,
vo2   )     (IdSeqType(vo1)==IdSeqType(vo2) )
 

Definition at line 214 of file idseq.h.

#define IdSeqSetUsedNbT seq_,
nb   )     ( _IdSeqPrivate(seq_)->UsedNbT=(nb) )
 

Definition at line 136 of file idseq.h.

#define IdSeqSetUsedNbX seq_,
nb   )     ( _IdSeqPrivate(seq_)->UsedNbX=(nb) )
 

Definition at line 130 of file idseq.h.

#define IdSeqSetUsedNbY seq_,
nb   )     ( _IdSeqPrivate(seq_)->UsedNbY=(nb) )
 

Definition at line 132 of file idseq.h.

#define IdSeqSetUsedNbZ seq_,
nb   )     ( _IdSeqPrivate(seq_)->UsedNbZ=(nb) )
 

Definition at line 134 of file idseq.h.

#define IdSeqType sequence_   )     ( (_IdSeqPrivate(sequence_) )->Type)
 

Definition at line 145 of file idseq.h.

#define IdSeqUsedNbT sequence_   )     ( (_IdSeqPrivate(sequence_) )->UsedNbT)
 

Definition at line 128 of file idseq.h.

#define IdSeqUsedNbX sequence_   )     ( (_IdSeqPrivate(sequence_) )->UsedNbX)
 

Definition at line 125 of file idseq.h.

#define IdSeqUsedNbY sequence_   )     ( (_IdSeqPrivate(sequence_) )->UsedNbY)
 

Definition at line 126 of file idseq.h.

#define IdSeqUsedNbZ sequence_   )     ( (_IdSeqPrivate(sequence_) )->UsedNbZ)
 

Definition at line 127 of file idseq.h.

#define SEQ_BIT   (SEQ | TY_BIT )
 

Definition at line 68 of file idseq.h.

#define SEQ_CHAR   (SEQ | TY_CHAR)
 

Definition at line 50 of file idseq.h.

#define SEQ_COMPLEX   (SEQ | TY_COMPLEX)
 

Definition at line 58 of file idseq.h.

#define SEQ_COMPLEX_CHAR   (SEQ | TY_COMPLEX_CHAR )
 

Definition at line 62 of file idseq.h.

#define SEQ_COMPLEX_DOUBLE   (SEQ | TY_COMPLEX_DOUBLE)
 

Definition at line 60 of file idseq.h.

#define SEQ_COMPLEX_FLOAT   (SEQ | TY_COMPLEX_FLOAT )
 

Definition at line 61 of file idseq.h.

#define SEQ_COMPLEX_LONG   (SEQ | TY_COMPLEX_LONG )
 

Definition at line 66 of file idseq.h.

#define SEQ_COMPLEX_SHORT   (SEQ | TY_COMPLEX_SHORT )
 

Definition at line 64 of file idseq.h.

#define SEQ_COMPLEX_UCHAR   (SEQ | TY_COMPLEX_UCHAR )
 

Definition at line 63 of file idseq.h.

#define SEQ_COMPLEX_ULONG   (SEQ | TY_COMPLEX_ULONG )
 

Definition at line 67 of file idseq.h.

#define SEQ_COMPLEX_USHORT   (SEQ | TY_COMPLEX_USHORT)
 

Definition at line 65 of file idseq.h.

#define SEQ_DOUBLE   (SEQ | TY_DOUBLE)
 

Definition at line 57 of file idseq.h.

#define SEQ_FLOAT   (SEQ | TY_FLOAT)
 

Definition at line 56 of file idseq.h.

#define SEQ_LONG   (SEQ | TY_LONG)
 

Definition at line 54 of file idseq.h.

#define SEQ_POINTER   (SEQ | TY_POINTER )
 

Definition at line 69 of file idseq.h.

#define SEQ_RGB   (SEQ | TY_RGB)
 

Definition at line 59 of file idseq.h.

#define SEQ_SHORT   (SEQ | TY_SHORT)
 

Definition at line 52 of file idseq.h.

#define SEQ_UCHAR   (SEQ | TY_UCHAR)
 

Definition at line 51 of file idseq.h.

#define SEQ_ULONG   (SEQ | TY_ULONG)
 

Definition at line 55 of file idseq.h.

#define SEQ_USHORT   (SEQ | TY_USHORT)
 

Definition at line 53 of file idseq.h.


Typedef Documentation

typedef PPPPSEQUENCE_UCHAR PPPPPPSEQUENCE_BIT
 

Definition at line 92 of file idseq.h.

typedef void**** PPPPSEQUENCE
 

Definition at line 73 of file idseq.h.

typedef char**** PPPPSEQUENCE_CHAR
 

Definition at line 74 of file idseq.h.

typedef COMPLEX**** PPPPSEQUENCE_COMPLEX
 

Definition at line 78 of file idseq.h.

typedef COMPLEX_CHAR**** PPPPSEQUENCE_COMPLEX_CHAR
 

Definition at line 86 of file idseq.h.

typedef COMPLEX_DOUBLE**** PPPPSEQUENCE_COMPLEX_DOUBLE
 

Definition at line 84 of file idseq.h.

typedef COMPLEX_FLOAT**** PPPPSEQUENCE_COMPLEX_FLOAT
 

Definition at line 85 of file idseq.h.

typedef COMPLEX_LONG**** PPPPSEQUENCE_COMPLEX_LONG
 

Definition at line 90 of file idseq.h.

typedef COMPLEX_SHORT**** PPPPSEQUENCE_COMPLEX_SHORT
 

Definition at line 88 of file idseq.h.

typedef COMPLEX_UCHAR**** PPPPSEQUENCE_COMPLEX_UCHAR
 

Definition at line 87 of file idseq.h.

typedef COMPLEX_ULONG**** PPPPSEQUENCE_COMPLEX_ULONG
 

Definition at line 91 of file idseq.h.

typedef COMPLEX_USHORT**** PPPPSEQUENCE_COMPLEX_USHORT
 

Definition at line 89 of file idseq.h.

typedef double**** PPPPSEQUENCE_DOUBLE
 

Definition at line 77 of file idseq.h.

typedef float**** PPPPSEQUENCE_FLOAT
 

Definition at line 76 of file idseq.h.

typedef long**** PPPPSEQUENCE_LONG
 

Definition at line 82 of file idseq.h.

typedef void**** PPPPSEQUENCE_POINTER
 

Definition at line 93 of file idseq.h.

typedef RGB**** PPPPSEQUENCE_RGB
 

Definition at line 79 of file idseq.h.

typedef short**** PPPPSEQUENCE_SHORT
 

Definition at line 80 of file idseq.h.

typedef unsigned char**** PPPPSEQUENCE_UCHAR
 

Definition at line 75 of file idseq.h.

typedef unsigned long**** PPPPSEQUENCE_ULONG
 

Definition at line 83 of file idseq.h.

typedef unsigned short**** PPPPSEQUENCE_USHORT
 

Definition at line 81 of file idseq.h.


Function Documentation

PPPPSEQUENCE IdSeqAlloc int  sx,
int  sy,
int  sz,
int  sb,
int  ty
 

Allocation d'une structure SEQuence compacte (seqxels consecutifs).

Warning:
les sexels de cette SEQuence ne sont pas initialises.
Parameters:
sx X dimension of the sequence to allocate.
sy Y dimension of the sequence to allocate.
sz Z dimension of the sequence to allocate.
sb T (time) dimension of the sequence to allocate.
ty Type des seqxels
Returns:
pointeur sur la structure; NULL si echec

Definition at line 63 of file seqallo.c.

References PRIVATE_SEQUENCE::_fichier, PRIVATE_SEQUENCE::_message, DEBUG, IDO_TYPE, IdSeqDimT, IdSeqDimX, IdSeqDimY, IdSeqDimZ, IdSeqType, IdSeqUsedNbT, IdSeqUsedNbX, IdSeqUsedNbY, IdSeqUsedNbZ, IdSizeOfType, PPPPSEQUENCE, SEQ, PRIVATE_SEQUENCE::subObject, TY_BIT, and TY_SIZE.

Referenced by AllocObject(), and IdDcmReadFileIntoVectorFromDcmHdr().

PPPPSEQUENCE IdSeqAllocSubSequence PPPPSEQUENCE  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int 
 

PPPPSEQUENCE IdSeqCast PPPPSEQUENCE  ,
PPPPSEQUENCE 
 

PPPPSEQUENCE IdSeqCastComplex PPPPSEQUENCE  ,
PPPPSEQUENCE 
 

PPPPSEQUENCE IdSeqCastReal PPPPSEQUENCE  ,
PPPPSEQUENCE 
 

PPPPSEQUENCE IdSeqCheckSizeAlloc PPPPSEQUENCE  ,
int  ,
PPPPSEQUENCE 
 

PPPPSEQUENCE IdSeqCheckSizeAllocType PPPPSEQUENCE  ,
int  ,
PPPPSEQUENCE  ,
int 
 

PPPPSEQUENCE IdSeqCheckTypeAlloc PPPPSEQUENCE  ,
int  ,
PPPPSEQUENCE 
 

PPPPSEQUENCE IdSeqCheckTypeAllocSize PPPPSEQUENCE  ,
int  ,
PPPPSEQUENCE  ,
int  ,
int  ,
int  ,
int 
 

PPPPSEQUENCE IdSeqCheckTypeSizeAlloc PPPPSEQUENCE  ,
int  ,
PPPPSEQUENCE 
 

PPPPSEQUENCE IdSeqClear PPPPSEQUENCE   ) 
 

PPPPSEQUENCE IdSeqCopy PPPPSEQUENCE  ,
PPPPSEQUENCE 
 

PPPPSEQUENCE IdSeqModifSubSequence PPPPSEQUENCE  ,
PPPPSEQUENCE  ,
int  ,
int  ,
int  ,
int 
 

PPPPSEQUENCE IdSeqReadRawFile char *  ,
int  ,
int  ,
int  ,
int  ,
int 
 

int IdSeqReadRawFileToSeq char *  ,
PPPPSEQUENCE 
 

int IdSeqReadRawFileToSeqWithOffset char *  ,
PPPPSEQUENCE  ,
int 
 

PPPPSEQUENCE IdSeqReadRawFileWithOffset char *  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int 
 

PPPVOLUME* IdSeqSequenceToTabVol PPPPSEQUENCE   ) 
 

PPPPSEQUENCE_UCHAR IdSeqSetValue PPPPSEQUENCE_UCHAR  ,
int 
 

void IdSeqSwap PPPPSEQUENCE  ,
int 
 

PPPPSEQUENCE IdSeqTabVolToSequence PPPVOLUME ,
int 
 

PPPPSEQUENCE IdSeqVecteurToSequence void *  ,
int  ,
int  ,
int  ,
int  ,
int 
 

int IdSeqWriteRawFile char *  ,
PPPPSEQUENCE 
 


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