How to remove background from an image

How to remove background from an image

         To remove photo background, you can use the AutoMaskingGraphCutOptions class with automatically calculated strokes and set property by using setFeatheringRadius method to smooth and blur the cutting edge. The feathering radius is calculated as 1/500 of the image dimension. You need to set a new color, when you've removed the background, in the Java code example below we use transparent pixels. So, the same procedure can be used for photo background changing.

         For a more detailed description with Java code examples please follow the link to Aspose Developer's guide.