If one is creating an application in which one would like to make the "background" of an image transparent or white, is there a way to do this?
For example :
In the image, http://upload.wikimedia.org/wikipedia/commons/b/b9/Bronze_Statuette_of_a_Veiled_and_Masked_Dancer_1.jpg , I would like to transform the image programmatically, such that only the statue remains, and the background (i.e. the rest of the image) is all white, or transparent.
Also, the user might point out to the part of the image that should "remain", and the rest should be all white or transparent.
How can this be done? Also, if there is a suitable java library or piece of code, it would be helpful.
Regards