How to remove background from an image

How to remove background from an image

         In the example below, to carefully remove background, we use the class AutoMaskingGraphCutOptions class with automatically calculated strokes and set FeatheringRadius property to smooth and blur the cutting edge. The feathering radius is calculated as 1/500 of the image dimension. After removing a background we need to set the color to replace it, so we use transparent pixels in this case. The same procedure we can use for photo background change.

         For a more detailed description with examples of how to remove background please follow the Aspose removing background documentation.