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

idacr.h

Go to the documentation of this file.
00001 /************************************************************************* 00002 * $Id: idacr.h,v 1.1 2005/09/09 08:22:25 bellet Exp $ 00003 ************************************************************************** 00004 This software is governed by the CeCILL license under French law and 00005 abiding by the rules of distribution of free software. You can use, 00006 modify and/ or redistribute the software under the terms of the CeCILL 00007 license as circulated by CEA, CNRS and INRIA at the following URL 00008 "http://www.cecill.info". 00009 00010 As a counterpart to the access to the source code and rights to copy, 00011 modify and redistribute granted by the license, users are provided only 00012 with a limited warranty and the software's author, the holder of the 00013 economic rights, and the successive licensors have only limited 00014 liability. 00015 00016 In this respect, the user's attention is drawn to the risks associated 00017 with loading, using, modifying and/or developing or reproducing the 00018 software by the user in light of its specific status of free software, 00019 that may mean that it is complicated to manipulate, and that also 00020 therefore means that it is reserved for developers and experienced 00021 professionals having in-depth computer knowledge. Users are therefore 00022 encouraged to load and test the software's suitability as regards their 00023 requirements in conditions enabling the security of their systems and/or 00024 data to be ensured and, more generally, to use and operate it in the 00025 same conditions as regards security. 00026 00027 The fact that you are presently reading this means that you have had 00028 knowledge of the CeCILL license and that you accept its terms. 00029 00030 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de 00031 l'Image). All rights reserved. See License.txt for details. 00032 00033 Version 1.0 05/09/2005 00034 *************************************************************************/ 00035 00036 #ifndef __IDACR_H__ 00037 #define __IDACR_H__ 00038 /************************************************************************* 00039 * * PROJET : libido 00040 * NOM DU MODULE : idacr.h * TYPE : fichier inclus 00041 * AUTEUR : c.odet * CREATION : 07/05/1992 00042 * VERSION : 1.0 * REVISION : 16/06/1992 00043 * LANGAGE : C * 00044 * * 00045 ************************************************************************** 00046 * 00047 * Description : definition et structure pour format ACRNEMA modifie URA1216 00048 ************************************************************************** 00049 * 00050 * MODULES UTILISES : 00051 * 00052 ************************************************************************** 00053 * | | 00054 * REVISIONS : DATE | AUTEUR | DESCRIPTION 00055 *---------------------|--------------|------------------------------------ 00056 * 16/06/92 | B. BARBIER | Insertion Libido 00057 * 01/10/92 | B. Barbier | V1.2-5 : normalisation des noms 00058 * 16/10/93 | C.Mathieu | V2.5-2 : Ajout de prototypes 00059 7/5/99 JPR Mise a niveau pour SWIG 00060 5/3/2000 JPR Ajouts pour IRMImageInfo 00061 **************************************************************************/ 00062 00063 #include <stdio.h> 00064 #include "idswig.h" 00065 00066 #ifdef _MSC_VER 00067 #ifndef __CYGWIN__ 00068 #include <Basetsd.h> 00069 #endif 00070 #endif 00071 00072 #include "idacr-restricted.h" 00073 00074 /* ========================================== */ 00075 00076 /* indices dans la Table des IRM Image Info */ 00077 00078 /* si une entree est rajoutee ici, 00079 00080 Penser a modifier le fichier dicom.c 00081 pour maintenir la coherence. 00082 Faire les ajouts de preference en fin de liste 00083 pour garder une compatibilite ascendante 00084 meme pour les utilisateurs qui auraient goretise 00085 c-a-d utilise les indices 'en dur' au lieu 00086 de ceux donnes par le 'enum' 00087 */ 00088 00089 00090 enum { 00091 _ID_File_Name = 0, 00092 _ID_SOP_Class_UID, 00093 _ID_SOP_Instance_UID, 00094 _ID_Study_Date, 00095 _ID_Series_Date, 00096 _ID_Acquisition_Date, 00097 _ID_Image_Date, 00098 _ID_Study_Time, 00099 _ID_Series_Time, 00100 _ID_Acquisition_Time, 00101 _ID_Image_Time, 00102 _ID_Modality, 00103 _ID_Manufacturer, 00104 _ID_Institution_Name, 00105 _ID_Study_Description, 00106 _ID_Series_Description, 00107 _ID_Admitting_Diagnoses_Description, 00108 _ID_Patient_Name, 00109 _ID_Patient_ID, 00110 _ID_Body_Part_Examined, 00111 _ID_Scanning_Sequence, 00112 _ID_Sequence_Variant, 00113 _ID_Scan_Options, 00114 _ID_MR_Acquisition_Type, 00115 _ID_Sequence_Name, 00116 _ID_Slice_Thickness, 00117 _ID_Repetition_Time, 00118 _ID_Echo_Time, 00119 _ID_Inversion_Time, 00120 _ID_Number_of_Averages, 00121 _ID_Imaging_Frequency, 00122 _ID_Imaged_Nucleus, 00123 _ID_Echo_Number, 00124 _ID_Magnetic_Field_Strength, 00125 _ID_Spacing_Between_Slices, 00126 _ID_Echo_Train_Length, 00127 _ID_Percent_Sampling, 00128 _ID_Percent_Phase_Field_of_View, 00129 _ID_Receiving_Coil, 00130 _ID_Patient_Position, 00131 _ID_Study_Instance_UID, 00132 _ID_Series_Instance_UID, 00133 _ID_Study_ID, 00134 _ID_Series_Number, 00135 _ID_Acquisition_Number, 00136 _ID_Image_Number, 00137 _ID_Patient_Orientation, 00138 _ID_Image_Position, 00139 _ID_Image_Position_Patient, 00140 _ID_Image_Orientation, 00141 _ID_Image_Orientation_Patient, 00142 _ID_Location, 00143 _ID_Frame_of_Reference_UID, 00144 _ID_Slice_Location, 00145 _ID_Image_Comments, 00146 _ID_Pixel_Spacing, 00147 _ID_Window_Center, 00148 _ID_Window_Width, 00149 _ID_Image_Type, 00150 _ID_Temporal_Position_Identifier, 00151 _ID_Comments, 00152 _ID_Rescale_Intercept, 00153 _ID_Rescale_Slope, 00154 _ID_Rescale_Type, 00155 _ID_Protocol_Name, 00156 _ID_Number_of_Temporal_Positions, 00157 00158 00159 _ID_Number_of_Items 00160 }; 00161 00162 /* ========================================== */ 00163 /* type de valeur */ 00164 00165 #define NO 0 /* NON ACRNEMA : traitement special pour ecriture */ 00166 #define BI 1 /* 16 bits */ 00167 #define BD 2 /* 32 bits */ 00168 #define AN 3 /* ASCII numerique */ 00169 #define AT 4 /* ASCII texte */ 00170 00171 void * IdAcrReadFile (char *, int); 00172 void * IdDcmCVReadFile (char *, int, int, int); 00173 void * IdAcrReadFileIntoVector (char *, int , int, int, void *); 00174 00175 int IdAcrWriteFile (char *, void *); 00176 00177 int IdAcrGetIdtype (char *); 00178 int IdAcrGetXSize (char *); 00179 int IdAcrGetYSize (char *); 00180 int IdAcrGetZSize (char *); 00181 int IdAcrGetTSize (char *); 00182 int IdAcrGetSwapCode (char *); 00183 int IdAcrGetOffset (char *); 00184 int IdAcrGetNbFrames (char *); 00185 int IdAcrGetNBitsAllocated (char *); 00186 int IdAcrGetNBitsUsed (char *); 00187 int IdAcrGetHighBit (char *); 00188 int IdAcrGetSign (char *); 00189 00190 int IdAcrIsAcrReadable (char *); 00191 00192 int IdAcrInquirePixelSize (char * ,float * OUTPUT, float * OUTPUT); 00193 int IdAcrInquireSliceThickness (char * ,float * OUTPUT); 00194 char ** IdAcrInquirePatientInfo (char *); 00195 char ** IdAcrInquireIRMInfo (char *); 00196 char ** IdAcrInquireScanElscintInfo (char *); 00197 char ** IdAcrInquireExamIRMInfo (char *); 00198 char ** IdAcrInquireIRMImageInfo (char *); 00199 00200 int IdAcrPrintIRMInfo (char **); 00201 int IdAcrPrintIRMImageInfo (char **); 00202 int IdAcrPrintScanElscintInfo (char **); 00203 int IdAcrPrintPatientInfo (char **); 00204 FILE * IdSwigFopen (char *); 00205 void IdSwigFclose (FILE*); 00206 int IdAcrInquireInfoTot4 (char *, unsigned short int * OUTPUT, 00207 unsigned short int * OUTPUT, 00208 unsigned short int * OUTPUT, int * OUTPUT, 00209 int * OUTPUT, int * OUTPUT, int * OUTPUT, 00210 int * OUTPUT, int * OUTPUT, int * OUTPUT, 00211 int * OUTPUT, int * OUTPUT, int * OUTPUT, 00212 int * OUTPUT); 00213 00214 int IdAcrWriteFileExtended (char *, void *, ACR_ELEMENT *); 00215 00216 char * IdAcrReadDicomElementFromLabel(char *, FILE *); 00217 long IdAcrGetPixelOffsetFromFP (FILE *); 00218 long IdAcrGetPixelOffsetFromFile (char *); 00219 00220 char ***IdIrmGetAndRenameDirContents(char *, char *, int); 00221 00222 00223 00224 int IdAcrPrintExamIRMInfo(char **ExamIRMInfo); 00225 00226 00227 char ***IdStrGetDicomDirectoryInfo (char *, char *, int * OUTPUT); 00228 char **IdStrGetExamInfo (char *, char *); 00229 char **IdStrGetSerieInfo (char *, char *); 00230 char ***IdStrGetSeriesExamInfo (char *, char *, int *OUTPUT); 00231 char ***IdStrGetDirContents3 (char *, char *, int *OUTPUT); 00232 int IdStrRenameDirContents (char *, char *, int *OUTPUT); 00233 00234 #endif

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