X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmFile.cxx;h=1a57bb6d74116bd34dad2a44e8c51b4217587f4c;hb=398de28036f1804dd0a77d5b715315f014253496;hp=32ef12b9af921513d04fdab8312a11780cf8b17a;hpb=ebee24c21fea75fcb7d0e4479cf72072fe6775f1;p=gdcm.git diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index 32ef12b9..1a57bb6d 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -96,6 +96,21 @@ void gdcmFile::SetPixelDataSizeFromHeader(void) { // 0028|1203 [US] [Blue Palette Color Lookup Table Data] +///////////////////////////////////////////////////////////////// +/** + * \ingroup gdcmFile + * \brief Returns the size (in bytes) of required memory to hold + * \ the pixel data represented in this file, when user DOESN'T want + * \ to get RGB pixels image when it's stored as a PALETTE COLOR image + * \ - the (vtk) user is supposed to know how deal with LUTs - + * \ warning to be used with GetImagePixelsRaw() + * @return The size of pixel data in bytes. + */ + +size_t gdcmFile::GetImageDataSizeRaw(void) { + return (lgrTotaleRaw); +} + ///////////////////////////////////////////////////////////////// /** * \ingroup gdcmFile