MATLAB Answers

0

Comparing locational similarity of ROIs within images

Asked by Emily Johnson on 3 Sep 2019
Latest activity Answered by Subhadeep Koley on 6 Sep 2019
I would like to compare the similarity of regions of interest (ROIs) on two different images (similarity meaning how similar are the locations of the ROIs). How can I do this in matlab?
Ideally I would get some type of similarity score at the end of the analysis. (e.g. if the two ROIs are located in the exact same area in both images, then the similarity score would be 1 or something).
Also, does this analysis change if these are three dimentional images? (like MRIs)
Thank you!

  0 Comments

Sign in to comment.

1 Answer

Answer by Subhadeep Koley on 6 Sep 2019

MATLAB provides ssim function for measuring Structural Similarity Index (SSIM) for 3-D volume image (e.g. MRI). ssim is an image quality metric that assesses the visual impact of three characteristics of an image: luminance, contrast and structure. Following code might help you.
fixed = dicomread('knee1.dcm');
moving = dicomread('knee2.dcm');
[ssim_val,ssim_map]=ssim(fixed,moving)
If both images are exactly same, then the ssim_val will be 1.
Also, for ROI processing please refer this link.

  0 Comments

Sign in to comment.