フィルターのクリア

How to delete objects in binary image?

2 ビュー (過去 30 日間)
Gytis Raudonius
Gytis Raudonius 2016 年 3 月 17 日
回答済み: Image Analyst 2016 年 3 月 17 日
hi, i working on ANPR so question is how i can delete object from binary, or how can i store object what i need, i have speciment of number plates, and i resize image to [250 ], other question is if after treshold i dont have any object in picture can i change level automatic if no objets, and rise level util left just one i need?

回答 (1 件)

Image Analyst
Image Analyst 2016 年 3 月 17 日
You can use ismember() to select blobs to extract based on their label number
labeledImage = bwlabel(binaryImage);
% Get rid of blobs # 1, 3, and 5
newBinaryImage = ismember(labeledImage, [1,3,5]) > 0;
Or you can use the bwselect() function. See its documentation.

Community Treasure Hunt

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

Start Hunting!

Translated by