From 5ed11e15d9604baf77336c7769b636f6bd49677e Mon Sep 17 00:00:00 2001 From: jpr Date: Wed, 16 Feb 2005 10:19:19 +0000 Subject: [PATCH] Taking into account MONOCHROME1 + Signed Pixels (?!) --- src/gdcmPixelReadConvert.cxx | 72 +++++++++++++++++++++++++----------- 1 file changed, 50 insertions(+), 22 deletions(-) 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