#include "idcommon.h"
#include <stdio.h>
#include "idswig.h"
#include "idliste.h"
#include "idima-ido.h"
Go to the source code of this file.
Data Structures | |
struct | _ID_DCM_ELEM |
struct | ID_DCM_HDR |
Defines | |
#define | str2num(str, typeNum) *((typeNum *)(str)) |
#define | IdDcmGetPixelOffset(e) ((e)->PixelPosition) |
#define | IdDcmGetPFileName(e) ((e)->filename) |
Functions | |
ID_DCM_HDR * | IdDcmHdrAlloc (void) |
Alloue un ID_DCM_HDR. | |
void | IdDcmHdrFree (ID_DCM_HDR *) |
Libere un ID_DCM_HDR. | |
ID_DCM_HDR * | IdDcmGetHeader (char *) |
renvoie un pointeur sur le ID_DCM_HDR correspondant au fichier | |
int | IdDcmIsAcrLibido (ID_DCM_HDR *) |
int | IdDcmIsJpegLossless (ID_DCM_HDR *) |
Verifie le caractère Jpeg Lossless d'un fichier, a partir du DCM_HDR. | |
int | IdDcmIsUncompressed (ID_DCM_HDR *) |
Verifie le caractère non compresse d'un fichier, a partir du DCM_HDR. | |
ID_DCM_HDR * | IdDcmIsDcmReadable (char *) |
Verifie le caractère Acr/Dcm/LibIdo d'un fichier. | |
void * | IdDcmReadFile (char *, int) |
Lecture d'un fichier de type ACR NEMA ou DICOM. | |
void * | IdDcmReadFileFromDcmHdr (ID_DCM_HDR *, int) |
Lecture d'un fichier de type ACR NEMA ou DICOM. | |
void * | IdDcmMultiFrameReadFile (char *, int, int, int) |
Lecture d'un fichier de type ACR/LibIDO/DICOM dans un vecteur existant deja La fonction IdDcmMultiFrameReadFile est une extention de IdDcmReadFile. | |
void * | IdDcmMultiFrameReadFileFromDcmHdr (ID_DCM_HDR *, int, int, int) |
void * | IdDcmReadFileIntoVector (char *, int, int, int, void *) |
Lecture d'un fichier (IMAGE) ACR/LibIDO/DICOM dans un Vecteur existant deja. | |
void * | IdDcmReadFileIntoVectorFromDcmHdr (ID_DCM_HDR *, int, int, int, void *) |
Lecture d'un fichier (IMAGE) ACR/DICOM dans un Vecteur existant deja. | |
int | IdDcmWriteFile (ID_DCM_HDR *, PPIMAGE) |
char ** | IdDcmInquireImageInfoFromFile (char *) |
renvoie dans un tableau de chaines de caracteres la description des info pertinentes d'une image ACR /DCM (la soixantaine de champs utiles) a partir du nom du fichier | |
char ** | IdDcmInquireImageInfoFromDcmHdr (ID_DCM_HDR *) |
renvoie dans un tableau de chaines de caracteres la description des info pertinentes d'une image ACR /DCM a partir d'un ID_DCM_HDR deja fabrique | |
int | IdDcmPrintImageInfo (char **) |
imprime la description des info 'pertinentes' d'une image DICOM obtenue par IdDcmInquireImageInfoFromXXX (File/DcmHdr) | |
void | IdDcmAffDcmHdr (ID_DCM_HDR *, int, int) |
int | IdDcmInquireInfoFromFile (char *, unsigned short int *OUTPUT, unsigned short int *OUTPUT, unsigned short int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT) |
Retourne diverses info stockees dans l'entete ACRNEMA ou DICOM. | |
int | IdDcmInquireInfoFromDcmHdr (ID_DCM_HDR *, unsigned short int *OUTPUT, unsigned short int *OUTPUT, unsigned short int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT) |
Retourne diverses info stockees dans l'entete ACRNEMA ou DICOM. | |
char * | _IdDcmReadElementFromLabel (char *libelle, ID_DCM_HDR *e, char *vr, void *buff) |
Tente de lire un dicom_element a partir de son libelle. Le resultat est range dans buff. |
|
|
|
|
|
Definition at line 108 of file iddcm.h. Referenced by _IdDcmCheckType(), _IdDcmReadElementUSHORT(), _IdDcmReadNextElement(), IdDcmAffDcmHdr(), and IdDcmGetHeader(). |
|
Tente de lire un dicom_element a partir de son libelle. Le resultat est range dans buff.
Definition at line 1432 of file dcmutil.c. References _IdDcmReadElement(), and DEBUG. |
|
|
renvoie un pointeur sur le ID_DCM_HDR correspondant au fichier
Definition at line 168 of file dcmutil.c. References ID_DCM_HDR::__NumeroGroupePrecedent, _IdDcmReadNextElement(), DEBUG, ID_DCM_HDR::filename, ID_DCM_HDR::fp, _ID_DCM_ELEM::Gr, ID_DCM_HDR::grPixelTrouve, ID_RFILE_BIN, IdDcmHdrAlloc(), IdDcmHdrFree(), IdLstAddLast, IdLstFirst, IdLstNext, IdLstPtrObj, _ID_DCM_ELEM::Num, ID_DCM_HDR::PixelPosition, ID_DCM_HDR::PixelsTrouves, ID_DCM_HDR::plist, str2num, ID_DCM_HDR::sw, ID_DCM_HDR::taille_fich, and _ID_DCM_ELEM::valeurElem. Referenced by IdDcmInquireImageInfoFromFile(), IdDcmInquireInfoFromFile(), IdDcmIsDcmReadable(), and IdDcmReadFileIntoVector(). |
|
Alloue un ID_DCM_HDR.
Definition at line 79 of file dcmutil.c. References ID_DCM_HDR::deb, IdLstAlloc(), LGR_ENTETE_A_LIRE, and ID_DCM_HDR::plist. Referenced by IdDcmGetHeader(), and IdDcmGetHeaderLeonardo(). |
|
Libere un ID_DCM_HDR.
Definition at line 108 of file dcmutil.c. References ID_DCM_HDR::deb, IdLstFree, and ID_DCM_HDR::plist. Referenced by IdDcmGetHeader(), IdDcmInquireInfoFromFile(), and IdDcmReadFileIntoVector(). |
|
renvoie dans un tableau de chaines de caracteres la description des info pertinentes d'une image ACR /DCM a partir d'un ID_DCM_HDR deja fabrique
Definition at line 1257 of file dcmutil.c. References _IdDcmInquireImageInfoXXX(), IDERR_NON_ACR_FILE, and IdErrno. |
|
renvoie dans un tableau de chaines de caracteres la description des info pertinentes d'une image ACR /DCM (la soixantaine de champs utiles) a partir du nom du fichier
Definition at line 1209 of file dcmutil.c. References _IdDcmInquireImageInfoXXX(), IdDcmGetHeader(), IDERR_NON_ACR_FILE, and IdErrno. |
|
Retourne diverses info stockees dans l'entete ACRNEMA ou DICOM.
Definition at line 1501 of file dcmread.c. References _IdDcmCheckType(), _IdDcmReadElement(), _IdDcmReadElementUSHORT(), ID_DCM_HDR::ACR_LIBIDO, DEBUG, IdDcmIsAcrLibido(), IDERR_NON_ACR_FILE, IdErrno, IMA, ID_DCM_HDR::PixelPosition, SEQ, SIG, ID_DCM_HDR::sw, TY_SIZE, and VOL. Referenced by IdDcmInquireInfoFromFile(). |
|
Retourne diverses info stockees dans l'entete ACRNEMA ou DICOM.
Definition at line 1418 of file dcmread.c. References DEBUG, IdDcmGetHeader(), IdDcmHdrFree(), and IdDcmInquireInfoFromDcmHdr(). |
|
Definition at line 1083 of file dcmread.c. References ID_DCM_HDR::ACR_LIBIDO. Referenced by IdDcmInquireInfoFromDcmHdr(), and IdDcmReadFileIntoVectorFromDcmHdr(). |
|
Verifie le caractère Acr/Dcm/LibIdo d'un fichier.
Definition at line 1708 of file dcmutil.c. References IdDcmGetHeader(). |
|
Verifie le caractère Jpeg Lossless d'un fichier, a partir du DCM_HDR.
Definition at line 1733 of file dcmutil.c. References _IdDcmReadElement(). Referenced by IdDcmReadFileIntoVectorFromDcmHdr(). |
|
Verifie le caractère non compresse d'un fichier, a partir du DCM_HDR.
Definition at line 1773 of file dcmutil.c. References ID_DCM_HDR::__TrueDicom, and _IdDcmReadElement(). Referenced by IdDcmReadFileIntoVectorFromDcmHdr(). |
|
Lecture d'un fichier de type ACR/LibIDO/DICOM dans un vecteur existant deja La fonction IdDcmMultiFrameReadFile est une extention de IdDcmReadFile.
Definition at line 1052 of file dcmread.c. References DEBUG, and IdDcmReadFileIntoVector(). |
|
Definition at line 1067 of file dcmread.c. References DEBUG, and IdDcmReadFileIntoVectorFromDcmHdr(). |
|
imprime la description des info 'pertinentes' d'une image DICOM obtenue par IdDcmInquireImageInfoFromXXX (File/DcmHdr)
Definition at line 1522 of file dcmutil.c. References _ID_dicom_info, and _ID_Number_of_Items. |
|
Lecture d'un fichier de type ACR NEMA ou DICOM.
Definition at line 994 of file dcmread.c. References DEBUG, and IdDcmReadFileIntoVector(). |
|
Lecture d'un fichier de type ACR NEMA ou DICOM.
Definition at line 1018 of file dcmread.c. References DEBUG, and IdDcmReadFileIntoVectorFromDcmHdr(). |
|
Lecture d'un fichier (IMAGE) ACR/LibIDO/DICOM dans un Vecteur existant deja. A L'ATTENTION DES Kamikazes Creatissiens : La fonction IdDcmReadFileIntoVector est une extention de IdDcmReadFile LIMITEE pour le moment aux fichiers IMAGES (non SIGNAL, non VOLUME, non SEQUENCE) Elle n'a d'interet que lorsqu'on lit une serie de fichiers *dans un vecteur* et permettra, par exemple de court-circuiter VtkReader, particulierement peu efficace ATTENTION : elle NE CREE PAS l'entete privee de PPIMAGE !!! de plus, l'adresse de debut dans le vecteur est a la charge de l'utilisateur ... ==> a n'utiliser qu'avec precaution Exemple d'utilisation : int nbImages; int tailleImage=dimx*dimy*sizeof(...)); char * vect, *curPos;; curPos = vect = (char *)malloc(tailleImage*nbImages); for(i=0;i<nbImages;i++) { IdDcmReadFileIntoVector((nomImage[i],-1,-1,curPos=+tailleImage); } // vect pointe sur le vecteur des pixels de l'ensemble des images. // vect n'EST PAS un 'objet' LibIDO // C'est a l'utilisateur de l'exploiter comme il lui convient
Definition at line 231 of file dcmread.c. References DEBUG, IdDcmGetHeader(), IdDcmHdrFree(), and IdDcmReadFileIntoVectorFromDcmHdr(). Referenced by IdAcrReadFileIntoVector(), IdDcmMultiFrameReadFile(), and IdDcmReadFile(). |
|
|
|