Marking rectangles on images automatically
古いコメントを表示
Hi,
I am trying to write a code that would allow me to detect rectangles with a certain area automatically in an image.
For example, the code should allow me to detect the reactangle like the one shown in the image attached rather than manually drawing it using roipoly() or a function of the same kind. The area is such that there is no break or black area in the image.
Kindly let me know if there is more details if required
Thank you

7 件のコメント
Image Analyst
2019 年 6 月 25 日
Nope - we don't require any more details on this announcement. Sounds like you have an interesting project. Good luck though. If you need any help, ask a question. By the way, someone brought it up to John D'Errico since it's kind of the inverse of his minimum bounding box File Exchange submissions and he said it sounded kind of tough or involved. Good luck though. Do you have a professor guiding you? Or is this supposed to be all your own ideas, code, and invention?
Yash Mayuresh Kavi
2019 年 6 月 25 日
Image Analyst
2019 年 6 月 26 日
That won't get you the maximum box - the box that fits inside with the max area. I don't know of any clever way to do it quickly. One way would be to use a dumb, brute force way but it would be very slow.
Yash Mayuresh Kavi
2019 年 6 月 26 日
Image Analyst
2019 年 6 月 26 日
Why do you need it? Ot think you need it?
You could use bwdist() but that will just get you the largest circle than can fit.
KALYAN ACHARJYA
2019 年 7 月 1 日
編集済み: KALYAN ACHARJYA
2019 年 7 月 1 日
@Yash
The Question is:
Draw the ractangle with maximum possible area in gray shaded region only?
Am I right?
Can you share more 2-3 sample images, actually I am interested to look on minimum width of black strip?
Yash Mayuresh Kavi
2019 年 7 月 2 日
編集済み: Yash Mayuresh Kavi
2019 年 7 月 2 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Image Arithmetic についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
