GabrielBB / Android-CutOut

Android image background removing library
Other
264 stars 90 forks source link

Remove only neighboring pixel #14

Open faezzz92 opened 4 years ago

faezzz92 commented 4 years ago

I have a logo with some white text color with white background, if i use the automatic background clearing function, the white text also been removed. Can we delete only the solid background color without touching the inside element of the logo?

AdilSoomro commented 4 years ago

You can use Flood Fill method. There're several examples available on Stackoverflow to implement in Android.