How to write int16 image data into Tiff or any other image format?

9 Ansichten (letzte 30 Tage)
Mrin San
Mrin San am 8 Mai 2018
Kommentiert: Naramon am 10 Jan. 2024
Hi, I have 512*512 int16 image data which I want to save as an image. However it can't be saved as a jpeg by imwrite. I tried Tiff instead using im2double,
con=im2double(image_data)
filename=['C:\Users\student\Desktop\brain\images\pituitary', '.tiff'];
imwrite(con,filename);
Result is a noisy picture due to the conversion
How to deal with int16 image data and obtain a clear reconstruction? .
  2 Kommentare
Yuvaraj Venkataswamy
Yuvaraj Venkataswamy am 8 Mai 2018
Images must be uint8, uint16, single, or double format.
Mrin San
Mrin San am 8 Mai 2018
Yes..thats right. So i tried to convert to double.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Sihem Nour El Houda
Sihem Nour El Houda am 6 Nov. 2020
I am facing the same problem right now ! I tried changing my int16 dicom image to uint8 , uint16 , double before converting them into a tiff format. The resulting images always appear noisy with lowcontract and unsimilar to the original image ! help , please

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by