how to determine the size of the object using image processing

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

 Respuesta aceptada

Image Analyst
Image Analyst el 21 de En. de 2013
See my image segmentation tutorial where I go over thresholding, labeling, and measuring. Also, post your image, say to http://snag.gy

7 comentarios

suryani annisa
suryani annisa el 22 de En. de 2013
Editada: suryani annisa el 22 de En. de 2013
well,, i understand ur image segmentation tutorial. thanks, but next, i still have questions. my image just like a trapezoidal. u know, a trapezoidal has two parralel sides and a height. After i labelled the image, what syntaxs that should use to define and know where is the two parralel sides and a height located, so i can know widht of two parralel sides and height of trapezoidal. so i can count wide of this trapezoidal. this is my image illustration <http://www.4shared.com/photo/b0YuDMB2/ilustrasi_gelas.html> image (a) is size in pixels image (b) is size in centimeter or mm
Your link doesn't work. To find the "corners" or "kinks" in the perimeter, first get the perimeter of the object using bwboundaries(), then refer to the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_find_.22kinks.22_in_a_curve.3F
oh,, excuse me,,, because of this " < > ", my link doesnt work.. well, i renew it , this should work :D
OK, works now. Roger's "kink" finding method should work fine for those images.
could u gimme link of that method?
Can you help me to get size of every room at floor plan picture of home and detect the kind of every room from text in the room there?

Iniciar sesión para comentar.

Más respuestas (2)

giridhar H M
giridhar H M el 4 de Mzo. de 2018
What are the applications of measuring diameter of an object within an image using MATLAB

2 comentarios

Hi guys
Is there anyone to explain how to find the height of an object within an image using Matlab????
Yes, call regionprops() and ask for the bounding box. The bounding box format is [xLeft, yTop, width, height] so get the 4th column.
props = regionprops(mask, 'BoundingBox');
boundingBoxes = vertcat(props.BoundingBox);
heights = boundingBoxes(:, 4)
See my Image Segmentation Tutorial for a full demo:

Iniciar sesión para comentar.

Thorsten
Thorsten el 21 de En. de 2013
Start with point 1, see how far you can get, succeed and process with point 2, and so on, or ask a more specific question.

1 comentario

suryani annisa
suryani annisa el 22 de En. de 2013
Editada: suryani annisa el 22 de En. de 2013
my image just like a trapezoidal. u know, a trapezoidal has two parralel sides and a height. After i labelled the image, what syntaxs that should use to define and know where is the two parralel sides and a height located, so i can know widht of two parralel sides and height of trapezoidal. so i can count wide of this trapezoidal. this is my image illustration <http://www.4shared.com/photo/b0YuDMB2/ilustrasi_gelas.html> image (a) is size in pixels image (b) is size in centimeter or mm

Iniciar sesión para comentar.

Preguntada:

el 21 de En. de 2013

Comentada:

el 30 de Jul. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by