java - Make an image's background transparent or white programmatically -
java - Make an image's background transparent or white programmatically - if 1 creating application in 1 create "background" of image transparent or white, there way this? for illustration : in image, http://upload.wikimedia.org/wikipedia/commons/b/b9/bronze_statuette_of_a_veiled_and_masked_dancer_1.jpg , transform image programmatically, such statue remains, , background (i.e. rest of image) white, or transparent. also, user might point out part of image should "remain", , rest should white or transparent. how can done? also, if there suitable java library or piece of code, helpful. regards for particular image there several methods solve part of problem. maybe if combine several methods and offer user interactive choices develop software in reasonably short period of time. i'd utilize it! you , misha discussed first 2 items: edge detection using canny or other means. suggest should work on "raw" border strength ima...