X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkHndImageIO.cxx;h=44486c245816421cabee3cfb4e989c31149fd9c2;hb=7f7c290c75d4917446f8751856ae7d450f58a6f0;hp=1e387a79e436dcdeb9517231dfa5cd35a8690ab0;hpb=2136379e8e3cd0010b909a2a7ef2580559cc3ead;p=clitk.git diff --git a/common/clitkHndImageIO.cxx b/common/clitkHndImageIO.cxx index 1e387a7..44486c2 100644 --- a/common/clitkHndImageIO.cxx +++ b/common/clitkHndImageIO.cxx @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ +===========================================================================**/ // std include #include @@ -132,7 +132,6 @@ void clitk::HndImageIO::Read(void * buffer) uint32_t* buf = (uint32_t*)buffer; unsigned char *pt_lut; uint32_t a; - float b; unsigned char v; int lut_idx, lut_off; size_t num_read; @@ -155,13 +154,11 @@ void clitk::HndImageIO::Read(void * buffer) for (i = 0; i < GetDimensions(0); i++) { fread (&a, sizeof(uint32_t), 1, fp); buf[i] = a; - b = a; } /* Read first pixel of second row */ fread (&a, sizeof(uint32_t), 1, fp); buf[i++] = a; - b = a; /* Decompress the rest */ lut_idx = 0; @@ -211,7 +208,6 @@ void clitk::HndImageIO::Read(void * buffer) } buf[i] = r21 + r12 + diff - r11; - b = buf[i]; i++; }