How to save bounded rectangle boxes as a separate image/entity in MATLAB?
4 ビュー (過去 30 日間)
古いコメントを表示
>>
I am trying to identify playing cards in a poker game. I have identified the regions that contain the playing cards and have surrounded them with bounding boxes. Now what i want to do is to save those regions as separate images/entities so that i can use SIFT/Template matching on them to identify the cards. Can anyone help me with this?
0 件のコメント
回答 (2 件)
Walter Roberson
2016 年 9 月 25 日
'SubarrayIdx' Returns a cell array that contains indices such that L(idx{:}) extracts the elements of L inside the object bounding box.
You can use then idx{:} to index your original image to extract the relevant portions.
0 件のコメント
Image Analyst
2016 年 9 月 25 日
Try using indexing or imcrop() to extract the bounding boxes. then use imwrite() or save() to save them to disk.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!