MATLAB: How to determine the size of the object using image processing

determine size of objectImage Processing Toolbox

I want to specify the size of the object based image processing. The picture is a glass display in 2D, where there are a few rules: 1. I use to get live video images to be processed 2. Live video will get the picture, then immediately performed image processing such as: segmentation process and labeling process 3. Once labeling is complete, can be specified length of parallel sides and 2 pieces height of the object in pixels (to get the width of each of the sides and the height of the glass) 4. Calibrating the measure that has been in the can in pixels to centimeters
well, i'll simplify my question,, everybody should know the trapezoidal where it has two parralel sides and a height. my questions : how to count wide of trapezoidal using image processing (include precesses such as :segmentation, labelling,pixel calibration to centimeter)
I really hope the help of friends in this forum. Thank you

Best Answer

See my image segmentation tutorial where I go over thresholding, labeling, and measuring. Also, post your image, say to http://snag.gy
Related Question