How can I specificy regions of interest on an image and return the index of the pixels in that ROI?
2 次查看(过去 30 天)
显示 更早的评论
Hi guys.
Here is my problem: I have coordinates of cells that I need to plot on image files. I then need to create circular regions of interest around these coordinates and measure the cell intensity in these regions of interest. I am not sure how to create the circular ROI around the coordinates and measure intensity of the ROI as I am new to Matlab and have never used ROI functions/worked with images in great detail. Looking forward to hearing responses. Thank you.
0 个评论
回答(1 个)
Image Analyst
2014-7-17
Create a binary image (a mask) using the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F
Then get the values in the circle like this:
pixelsInCircleMask = grayImage(circleMask); % A 1D vector of gray levels.
meanGL = mean(pixelsInCircleMask); % In case you want the mean.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!