MATLAB: Scaling of intensity value of captured jpg image

ct imagescaling

I have a captured CT image (.jpg) of segittal plane. I want to scale it (.jpg) corresponding to .dcm image (512×512 uint16). The intensity range of .dcm image is from [0 to 3070]. Or is there any other way to convert it into dicom format with same intensity range?
Thanks for help…

Best Answer

Is this?
input_image=imread('filename.jpg');
dicomwrite(input_image,'dicom_img_name.dcm');
Or
You want to map the RGB pixel values [0-255] ranges to [0 to 3070].
Good Luck!
Related Question