How to change the column pixel values of a DICOM image and assign new values columnwise)?

Technical Source
2 min readNov 4, 2023

--

I want to change the column-wise values of a DICOM image and assign them with new values to generate a new image. Columns (384) will be divided into 1–130, 131–230, 231–330, 331–384 and I want to multiply each (for example, all columns from 1–130 will be multiplied by * 0.15, to get a new value of the pixel). Please anyone may like to help.

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help , Finance Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

multfactor = repelem([0.15, 0.18, 0.04, 0.23], [130 100 100 54]);  %modify factors appropriately
newimage = oldimage .* multfactor;

If you need to write out the new image in the form of a dicom file, it can get a bit messy to get all of the details right. But use dicominfo() to get the information about the DICOM file, and pass the info in the dicomwrite() call.

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source
Technical Source

Written by Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

No responses yet