Hey Mohd Akmal Masud,
It seems that you are trying to fuse a CT Image and a SPECT image, with both images being in the DICOM format.
You can read data from a DICOM file using “dicomread” function. Please refer to the following code snippet:
% Read CT DICOM file
ctFile = 'CT.dcm';
ctInfo = dicominfo(ctFile); % For getting metadata
ctImage= dicomread(ctFile); % For reading DICOM image
If the file is not located in the current working directory, please include the complete file path. In the same manner, read the DICOM file for the SPECT image. You can also use the “Medical Image Reader and Viewer” toolbox available on File Exchange for handling DICOM images:
Before merging the images, perform image registration and resampling to make sure that the images share the same orientation and resolution. Please refer to the following MATLAB Answer, if SPECT and CT images have different matrix size:
Use the "imfuse" function included in the MATLAB documentation to fuse two images. Please have a look at the following MATLAB Answer for combining two images:
I hope this helps.