フィルターのクリア

Trying to find the Area of the boundary box? Help thanks~

2 ビュー (過去 30 日間)
Akira Chan
Akira Chan 2015 年 6 月 29 日
編集済み: oza san 2017 年 11 月 1 日
As stated in the title, I require help on trying to find the area of the boundary which I will be using to compare with several condition to obtain my result.
Here is a sample of my processed image which have the boundary box and the centroid.
If possible, if anyone could, finding the area of the white region is much appreciated too as it is more accurate than calculating the area of the boundary box.
Thank you.
Regards, Akira

採用された回答

Walter Roberson
Walter Roberson 2015 年 6 月 29 日
regionprops() 'Area' will find the number of non-zero pixels in the region. If you regionprops() 'BoundingBox' then the area of the bounding box is the product of the last two values. Bounding box is of the form
[x y width height]
so multiply the last two values.
  7 件のコメント
oza san
oza san 2017 年 5 月 3 日
ok thank you
oza san
oza san 2017 年 11 月 1 日
編集済み: oza san 2017 年 11 月 1 日
dear walter hope all id fine with u!!!here i am again I have to detect text from images and i have to compare the results found with the ground truth. How i can prepare aground truth for text regions in the image?the coordinates need are x,y,width and height of the text regions in the image?

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by