Module: $RCSfile: gdcmFileHelper.cxx,v $
Language: C++
- Date: $Date: 2005/04/27 09:52:28 $
- Version: $Revision: 1.35 $
+ Date: $Date: 2005/04/29 15:11:56 $
+ Version: $Revision: 1.36 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
{
return PixelWriteConverter->GetUserDataSize();
}
-
return PixelReadConverter->GetRGBSize();
}
{
return PixelWriteConverter->GetUserDataSize();
}
-
return PixelReadConverter->GetRawSize();
}
return 0;
}
memcpy( destination,
- (void*)PixelReadConverter->GetRaw(),
+ (void *)PixelReadConverter->GetRaw(),
PixelReadConverter->GetRawSize() );
return PixelReadConverter->GetRawSize();
}
if( PixelWriteConverter->GetUserData() )
{
- fp1.write( (char*)PixelWriteConverter->GetUserData(),
+ fp1.write( (char *)PixelWriteConverter->GetUserData(),
PixelWriteConverter->GetUserDataSize() );
}
else if ( PixelReadConverter->GetRGB() )
{
- fp1.write( (char*)PixelReadConverter->GetRGB(),
+ fp1.write( (char *)PixelReadConverter->GetRGB(),
PixelReadConverter->GetRGBSize());
}
else if ( PixelReadConverter->GetRaw() )
{
- fp1.write( (char*)PixelReadConverter->GetRaw(),
+ fp1.write( (char *)PixelReadConverter->GetRaw(),
PixelReadConverter->GetRawSize());
}
else
/**
* \brief Writes on disk A SINGLE Dicom file,
* using the Implicit Value Representation convention
- * NO test is performed on processor "Endiannity".
+ * NO test is performed on processor "Endianity".
* @param fileName name of the file to be created
* (any already existing file is overwritten)
* @return false if write fails
{
case ImplicitVR:
SetWriteFileTypeToImplicitVR();
- CheckMandatoryElements();
break;
case Unknown: // should never happen; ExplicitVR is the default value
case ExplicitVR:
SetWriteFileTypeToExplicitVR();
- CheckMandatoryElements();
break;
case ACR:
case ACR_LIBIDO:
- // Just to avoid further trouble if user create a file ex-nihilo,
+ // NOTHING is done here just for LibIDO.
+ // Just to avoid further trouble if user creates a file ex-nihilo,
// wants to write it as an ACR-NEMA file,
- // and forget to create any Entry belonging to group 0008
+ // and forgets to create any Entry belonging to group 0008
// (shame on him !)
// We add Recognition Code (RET)
if ( ! FileInternal->GetValEntry(0x0008, 0x0010) )
FileInternal->InsertValEntry("", 0x0008, 0x0010);
SetWriteFileTypeToACR();
SetWriteFileTypeToImplicitVR();
- CheckMandatoryElements();
break;
-
}
+ CheckMandatoryElements();
// --------------------------------------------------------------
// Special Patch to allow gdcm to re-write ACR-LibIDO formated images
}
size_t decSize = FileInternal->GetXSize()
- * FileInternal->GetYSize()
- * FileInternal->GetZSize()
- * ( numberBitsAllocated / 8 )
- * FileInternal->GetSamplesPerPixel();
+ * FileInternal->GetYSize()
+ * FileInternal->GetZSize()
+ * FileInternal->GetSamplesPerPixel()
+ * ( numberBitsAllocated / 8 );
size_t rgbSize = decSize;
if( FileInternal->HasLUT() )
rgbSize = decSize * 3;
}
break;
}
- }
-
+ }
return true;
}
return 0;
}
}
-
return raw;
}