AForge based library for removing background from images
It detects objects based on their edges, draws border around them and clips resulted object.
Note that it biased towards detecting objects closer to the center
(object needs to be large to be detected at the corner of the image and it can be quite small and still be detected at its center).
- Image is converted to grayscale
- Selected edge detector is applied
- Blob counter with gradient size is applied to find all the objects
- Convex hull is created around them
- Image inside said convex hull is returned