// Nombre de Colonnes
nbCol =atoi(gdcmHeader::GetPubElValByNumber(0x0028,0x0011).c_str());
+printf("nbCol %d\n",nbCol);
+printf("nbLig %d\n",nbLignes);
+
+
// Nombre de Frames
str_nbFrames=gdcmHeader::GetPubElValByNumber(0x0028,0x0008);
- if (str_nbFrames == "UNFOUND" ) {
+ if (str_nbFrames == "gdcm::Unfound" ) {
nbFrames = 1;
} else {
nbFrames = atoi(str_nbFrames.c_str() );
}
+printf("nbFrames %d\n",nbFrames);
// Nombre de Bits Alloues pour le stockage d'un Pixel
str_nb=gdcmHeader::GetPubElValByNumber(0x0028,0x0100);
- if (str_nb == "UNFOUND" ) {
+ if (str_nb == "gdcm::Unfound" ) {
nb = 16;
} else {
nb = atoi(str_nb.c_str() );
}
+printf("nb %d\n",nb);
+
size_t lgrTotale = nbFrames*nbLignes*nbCol*(nb/8);
return (lgrTotale);
str_nbFrames=GetPubElValByNumber(0x0028,0x0008);
- if (str_nbFrames == "UNFOUND" ) {
+ if (str_nbFrames == "gdcm::Unfound" ) {
nbFrames = 1;
} else {
nbFrames = atoi(str_nbFrames.c_str() );
// Nombre de Bits Alloues
str_nb=GetPubElValByNumber(0x0028,0x0100);
- if (str_nb == "UNFOUND" ) {
+ if (str_nb == "gdcm::Unfound" ) {
nb = 16;
} else {
nb = atoi(str_nb.c_str() );
// Nombre de Bits Utilises
str_nbu=GetPubElValByNumber(0x0028,0x0101);
- if (str_nbu == "UNFOUND" ) {
+ if (str_nbu == "gdcm::Unfound" ) {
nbu = nb;
} else {
nbu = atoi(str_nbu.c_str() );
// Position du Bit de Poids Fort
str_highBit=GetPubElValByNumber(0x0028,0x0102);
- if (str_highBit == "UNFOUND" ) {
+ if (str_highBit == "gdcm::Unfound" ) {
highBit = nb - 1;
} else {
highBit = atoi(str_highBit.c_str() );
// Signe des Pixels 0 : Unsigned
str_signe=GetPubElValByNumber(0x0028,0x0103);
- if (str_signe == "UNFOUND" ) {
+ if (str_signe == "gdcm::Unfound" ) {
signe = 1;
} else {
signe = atoi(str_signe.c_str() );
str_nbFrames=GetPubElValByNumber(0x0028,0x0008);
- if (str_nbFrames == "UNFOUND" ) {
+ if (str_nbFrames == "gdcm::Unfound" ) {
nbFrames = 1;
} else {
nbFrames = atoi(str_nbFrames.c_str() );
// Nombre de Bits Alloues
str_nb=GetPubElValByNumber(0x0028,0x0100);
- if (str_nb == "UNFOUND" ) {
+ if (str_nb == "gdcm::Unfound" ) {
nb = 16;
} else {
nb = atoi(str_nb.c_str() );
// Nombre de Bits Utilises
str_nbu=GetPubElValByNumber(0x0028,0x0101);
- if (str_nbu == "UNFOUND" ) {
+ if (str_nbu == "gdcm::Unfound" ) {
nbu = nb;
} else {
nbu = atoi(str_nbu.c_str() );
// Position du Bit de Poids Fort
str_highBit=GetPubElValByNumber(0x0028,0x0102);
- if (str_highBit == "UNFOUND" ) {
+ if (str_highBit == "gdcm::Unfound" ) {
highBit = nb - 1;
} else {
highBit = atoi(str_highBit.c_str() );
// Signe des Pixels
str_signe=GetPubElValByNumber(0x0028,0x0103);
- if (str_signe == "UNFOUND" ) {
+ if (str_signe == "gdcm::Unfound" ) {
signe = 1;
} else {
signe = atoi(str_signe.c_str() );