- assert( bitsallocated >= 8 );
- gdcm_write_JPEG_file12(of, (char*)pImageData,size,
- image->GetXSize(), image->GetYSize(), image->GetZSize(), image->GetSamplesPerPixel(),
- image->GetBitsAllocated(), 100);
+ assert( bitsStored >= 8 );
+ gdcm_write_JPEG_file12(of, (char*)pImageData, size,
+ xsize, ysize, zsize, samplesPerPixel,
+ bitsAllocated, 100);