Medical Image processing
2 views (last 30 days)
Show older comments
Sivakumaran Chandrasekaran
on 24 Dec 2011
Commented: Walter Roberson
on 24 Jan 2014
Hi,
I have to measure the thickness of a segmented layer. Can anyone tell me how to measure it using Matlab.
Regards,
Siva
5 Comments
Saranya
on 24 Jan 2014
Hi Image analyst, In my project i want to measure the thickness of a single chromosome so that i can find the centromere location( where the thickness is shorter). I am in need of matlab coding for measuring the thickness..
Can you help me.
Accepted Answer
Walter Roberson
on 24 Dec 2011
Thickness in what units of measure? Unless you have extra information about the correspondence between image size and some physical object, the only thing that you can measure is pixels.
How is thickness to be defined? Is the thickness to be measured relative to the X or Y axes, or are you looking to find the length of a line that cuts across the image at an arbitrary angle? If so then what is the criteria that decides where the line goes?
2 Comments
Walter Roberson
on 25 Dec 2011
Do you need to measure in terms of centimeters as shown on the screen, or in terms of centimeters "in real life" ?
Centimeters "in real life" requires extra information about real-world sizes. See http://www.mathworks.com/matlabcentral/answers/18380-getting-x-and-y-for-3d
Centimeters "on the screen" is one of those things that looks like it should be easy, but in practice is a complete mess. I describe some of the difficulties at http://www.mathworks.com/matlabcentral/newsreader/view_thread/281774
To determine the pixel dimensions of an object, you can isolate the object, convert it to black and white (white == pixels that are part of the object, black == pixels that are not part of the object), and then you can use the Image Processing Toolbox regionprops() routine.
The particular case of rectangles aligned with the axis is easy: just find() the last pixel along the row (or column) that is set, and find() the first pixel along the row (or column) that is set, and do a subtraction to get the width (or height) in pixels.
More Answers (0)
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!