Comparing locational similarity of ROIs within images
3 views (last 30 days)
Show older comments
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
Answers (1)
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.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!