Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么显示的dicom图像颜色相反且输出有损。(Matlab)_Matlab_Tiff_Dicom_Inverse - Fatal编程技术网

为什么显示的dicom图像颜色相反且输出有损。(Matlab)

为什么显示的dicom图像颜色相反且输出有损。(Matlab),matlab,tiff,dicom,inverse,Matlab,Tiff,Dicom,Inverse,为什么当我阅读DICOM文件时颜色会反转?此外,当我尝试拉伸和调整图像输出时,导出文件是有损TIFF: origImg = dicomread(uigetfile('~/matlab/*.*', 'Select Dicom File')); J=imadjust(origImg,stretchlim(origImg),[0 1]); CExpo = adapthisteq(J,'Distribution','exponential','Alpha',3); imwrite(CExpo,'

为什么当我阅读DICOM文件时颜色会反转?此外,当我尝试拉伸和调整图像输出时,导出文件是有损TIFF:

origImg = dicomread(uigetfile('~/matlab/*.*', 'Select Dicom File')); 

J=imadjust(origImg,stretchlim(origImg),[0 1]);

CExpo = adapthisteq(J,'Distribution','exponential','Alpha',3);

imwrite(CExpo,'finish.tif','Resolution',100);

资源和比较文件:

Matlab的Tiff类在光度测量解释“分离”时反转uint8图像值。Tiff规范明确禁止这样做,但Matlab出于我不知道的原因还是这样做了。这可能就是为什么你的图像是颠倒的。一般来说,Tiff图像不是有损格式,因此,如果您认为存在保真度损失,我不理解这是如何发生的。我也不知道dicom图像是什么