- // Allocates necessary memory, copies the data (image[s]/volume[s]) to
- // newly allocated zone and return a pointer to it:
-
- void * GetImageData();
-
- // Returns size (in bytes) of required memory to contain data
- // represented in this file.
-
- size_t GetImageDataSize();
-
- // Copies (at most MaxSize bytes) of data to caller's memory space.
- // Returns an error code on failure (if MaxSize is not big enough)
-
- int GetImageDataIntoVector(void* destination, size_t MaxSize );
-
- // Question :
- //
- // GetImageData et GetImageDataIntoVector
- // Get et Put pour 2 fonctions qui font presque la meme chose :-(
- //
-
- // Allocates ExpectedSize bytes of memory at this->Data and copies the
- // pointed data to it.
-
- // Question :
- // Pourquoi dupliquer les pixels, alors qu'on les a deja en mémoire,
- // et que Data (dans le gdcmHeader) est un pointeur ?
+ void SetPixelDataSizeFromHeader(void);
+ size_t GetImageDataSize();
+ void * GetImageData();
+ size_t GetImageDataIntoVector(void* destination, size_t MaxSize );