-
- unsigned int j =0;
- unsigned int nbDiff =0;
- if (memcmp(imageData, imageDataWritten, dataSizeFixed) !=0)
- {
+ // unsigned int j = 0;
+ unsigned int nbDiff = 0;
+ unsigned int lengthToCompare = file->GetXSize()*file->GetYSize()*file->GetZSize()
+ *file->GetPixelSize()*file->GetSamplesPerPixel();
+
+ // just to see !
+ if ( lengthToCompare!=dataSizeFixed)
+ std::cout << "lengthToCompare : " << lengthToCompare << " not= dataSizeFixed : " << dataSizeFixed << std::endl;
+
+ if (memcmp(imageData, imageDataWritten, lengthToCompare) !=0)
+ {