X-Ray image conversion to greyscale area coverage

Hi Guys,
I have a X-Ray image and am wanting to quantify the different grey regions to get area of coverage. Any ideas how i would go about this?
Thanks

 Accepted Answer

Try imhist() or mean2(). Also see my Image Segmentation Tutorial: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

3 Comments

Thanks for the info, managed to get it with the following command,
I=imread('a.tif'); imhist(I)
Is there anyway of setting a loop if I have several images to plot and also how do I label the axis.
Finally, how do I watch your video, is it a actual video or a MATLAB editor?
Thanks
I referred you to my File Exchange where I have several m-files that you can download to do various things like gray scale image segmentation, and color detection. There is no video, just m-files that you download and run.

Sign in to comment.

More Answers (1)

But it depends how you want to handle different grey levels. Should a pixel be counted as either covered (1) or not covered (0), or should the brightness of the pixel correspond to the density and you want to find the average "weight" of the area ?

1 Comment

Hi Walter,
I'm new to MATLAB. Essentially I have a 512 x 512 X-Ray image, and when I run the command imread('image') I get various grey scale intensities ranging from 0-255.
I want to know quantify the relative amounts either individual values or ranges of say 10 (0-10,11-20...etc) to see the change in grey scale intensity for a stack of X-Ray scans I have by plotting a graph.
Hope I made sense, and I greatly appreciate your help.
Syed

Sign in to comment.

Categories

Community Treasure Hunt

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

Start Hunting!