how i can find the length*width of an object in an image?

조회 수: 5 (최근 30일)
SHRUTHI k
SHRUTHI k 2014년 4월 10일
댓글: Eriksson Fejiro 2019년 2월 26일
i need to find the size ie, length*width of an object in an image.how can i achieve that?what is the syntax for that?
  댓글 수: 1
Sven
Sven 2014년 4월 10일
Can you show us what you mean by "object in an image". Please use example code such as:
I = ... your image
obj = ... your object

댓글을 달려면 로그인하십시오.

답변 (2개)

Ramesh kancharapu
Ramesh kancharapu 2016년 7월 3일
you have to convert your image first in binary (B/W) image then do pixel counting by finding maximum pixel value in row and same in column.
  댓글 수: 9
AVINASH SURESHRAO DIKKAR 17MMT1022
Here i attached images and code for what i want to find out. i want to find out height, width and diameter of hole which is in object. i succeed to find out height and also the width which is from from center but i want it maximum width. and fail to find out diameter i tried your image segment code but not work. please see the images and code and give solution on this.
Eriksson Fejiro
Eriksson Fejiro 2019년 2월 26일
please can you share how you got the height and width of the object am working on a similar project.. thanks.

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2014년 4월 11일
Let's say your object looks like an irregular shape - some amorphous blob. What do you define the width and length to be? Can you show us an image of what your blobs look like?

카테고리

Help CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by