How to choose only the region with the specified height and width?
1 回表示 (過去 30 日間)
古いコメントを表示
I have applied connected component analysis on a car image.Now, I need to reduce the number of components by specifying the height and width of the license plate characters in a vehicle,so that only those region will be displayed and rest of them are discarded.Can anyone help me in doing the same?
0 件のコメント
回答 (1 件)
Image Analyst
2019 年 1 月 19 日
See attached utility to get the bounding box of all the bounding boxes. Then, after you've used that to get the overall bounding box, use imcrop()
croppedImage = imcrop(originalImage, overallBoundingBox);
2 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!