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

4 ビュー (過去 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
AVINASH SURESHRAO DIKKAR 17MMT1022 2018 年 12 月 20 日
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 Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by