MATLAB: ULTRASOUND IMAGE PROCESSING: ROI, CONTRAST IN db

contrastdbgrayscalehistogramimage analysisimage processingimage segmentationroiultrasound

Hi,
I'm a biomedical engineering student at La Sapienza.
I'm supposed to process an ultrasound image(.tif):
  1. Select different ROI
  2. Evaluate the contrast i db for each ROI as in the figure.
Can someone help me?
Thanks

Best Answer

You can use drawcircle() to select a circular region of interest and then create a mask from the ROI. Then you can apply the formula to calculates the contrast value. For example
im = rgb2gray(im2double(imread('peacock.jpg')));
imshow(im);
roi = drawcircle;
mask = createMask(roi);
% formula for contrast value