As shown in the example picture below, if the background and the color of the object to be obtained are similar, What would be good to use as a preprocessing before proceeding with binarization?
i = Blur[img, 3];
res = ImageMultiply[i,
SelectComponents[FillingTransform@Binarize[i], "Area", -1]];
I used the code below, but it’s hard to separate.
What is the pre-processing method for neat binarization?
I am afraid that it will be very difficult to process similar images with the same set of filter parameters. So far the parameters are just a result of trial & error.
Hello, Is it possible for an additional binarized image to reverse the current object with a white background? (The object is black background of white)