From: jpr Date: Wed, 16 Feb 2005 10:19:19 +0000 (+0000) Subject: Taking into account MONOCHROME1 + Signed Pixels (?!) X-Git-Tag: Version1.2.bp~876 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=5ed11e15d9604baf77336c7769b636f6bd49677e;p=gdcm.git Taking into account MONOCHROME1 + Signed Pixels (?!) --- diff --git a/src/gdcmPixelReadConvert.cxx b/src/gdcmPixelReadConvert.cxx index 1d59ff9a..a909e8d3 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/16 10:19:19 $ + Version: $Revision: 1.51 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -656,40 +656,68 @@ void PixelReadConvert::ConvertFixGreyLevels() return; int i; // to please M$VC6 - if ( BitsAllocated == 8 ) + + if (!PixelSign) { - uint8_t *deb = (uint8_t *)Raw; - for (i=0; i