X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmPixelReadConvert.cxx;h=89ae9952792082dbe313ef45d1eb4be3b4709407;hb=b180a93d9f2a649877bb53341fb1437fb2929f26;hp=1d59ff9a31c53ca78e8fb095f3b23e21899b0f8f;hpb=da317a4e58595a638ab541c74fa8e5e8608819d3;p=gdcm.git diff --git a/src/gdcmPixelReadConvert.cxx b/src/gdcmPixelReadConvert.cxx index 1d59ff9a..89ae9952 100644 --- a/src/gdcmPixelReadConvert.cxx +++ b/src/gdcmPixelReadConvert.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmPixelReadConvert.cxx,v $ Language: C++ - Date: $Date: 2005/02/15 18:12:35 $ - Version: $Revision: 1.50 $ + Date: $Date: 2005/02/17 10:53:21 $ + Version: $Revision: 1.52 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -644,8 +644,6 @@ void PixelReadConvert::ConvertReorderEndianity() } } - - /** * \brief Deal with Grey levels i.e. re-arange them * to have low values = dark, high values = bright @@ -655,41 +653,69 @@ void PixelReadConvert::ConvertFixGreyLevels() if (!IsMonochrome1) return; - int i; // to please M$VC6 - if ( BitsAllocated == 8 ) + uint32_t i; // to please M$VC6 + int16_t j; + + if (!PixelSign) { - uint8_t *deb = (uint8_t *)Raw; - for (i=0; i