フィルターのクリア

I want to make bounding box

2 ビュー (過去 30 日間)
Lidank Abiel
Lidank Abiel 2012 年 12 月 7 日
I want to make a bounding box in the area of the eye in this picture, so I can find the midpoint of the eye area, but I do not know how to make it. I was expecting help from the experienced. thanks in advance.
this is the picture:
href="http://www.freeimagehosting.net/3z35z"<img src="http://www.freeimagehosting.net/t/3z35z.jpg"></a>

採用された回答

Image Analyst
Image Analyst 2012 年 12 月 7 日
I have the perfect demo for you: BlobsDemo http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 It has a bunch of blobs on the screen (coins) and then finds the centroids of them and cuts them out, using the bounding box, to new smallsub images.
But basically, you call regionprops and ask for 'BoundingBox'. Then use imcrop or regular indexing to extract the box containing your blob.
  12 件のコメント
Image Analyst
Image Analyst 2012 年 12 月 17 日
That's a format specifier string. I guess you don't know C or C++ or C# do you? It's the same as in those languages. % means that you stick a variable there. The number after the % says how many spaces to allot for it. The first number (if present) is the total length, and the number after the . is the number of digits after the decimal place. Finally the letter is what class the variable is: f = floating point, d = integer, c = character, s = string. So %17.3f means a floating point number in a space of 17 characters with 3 of those 17 being to the right of the decimal place.
Lidank Abiel
Lidank Abiel 2012 年 12 月 19 日
Thank you so much Mr.Image Analyst. Like i told to you, i'm so amateur in programming, but i hope it not prevent me to learn.

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

その他の回答 (1 件)

Matt J
Matt J 2012 年 12 月 7 日
編集済み: Matt J 2012 年 12 月 7 日
You can use h=IMRECT if you want to draw the bounding box interactively. Then use createMask(h) to get a logical map of the region.
  9 件のコメント
Lidank Abiel
Lidank Abiel 2012 年 12 月 11 日
i still try Mr.Image Analyst :)
Image Analyst
Image Analyst 2012 年 12 月 11 日
Just copy, paste, change filename to make it valid, and run. It shouldn't take more than a few seconds to try it.

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

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by