Comparing locational similarity of ROIs within images

4 vues (au cours des 30 derniers jours)
Emily Johnson
Emily Johnson le 3 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!

Réponses (1)

Subhadeep Koley
Subhadeep Koley le 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.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by