how can i remove object bigger than x pixel
Ältere Kommentare anzeigen
i know that bwareaopen remove small elements , but how can i remove object bigger than x pixels???
i want to just the letter to stay so how can i remove that 2 big objects???
Akzeptierte Antwort
Weitere Antworten (1)
William Kemp
am 1 Aug. 2017
Its a little more compact if you use the built in function for it:
BW2 = bwpropfilt(BW,'Area',[0 x_pixels])
Where x_pixels is the maximum desired number of pixels in a BW object
Kategorien
Mehr zu High Dynamic Range Images finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!