Change Image Backgrouund Colour to white
-
Actually Iam trying to convert image background color to white,only background color should be replaced to white.
Here my Image background color is black, so Iam trying to change it to white.
Please give a suggestion to change background color. -
I am attaching my image, here background colour of image is black , i want to change it to white.
-
@DivyaMuthyala
i can't see any image/link attached.Anyway when the image has no transparency it's gonna be hard to just change the color of specific pixels. Since this involves some image recognition.
When the background is always black you may have a chance to clip away the lack background color using composition.
But it's tricky and i am not experienced with it myself, but i know its possible. -
This is the test image.
Its not trivial to remove the background if to look ok after.
Maybe this can give inspiration
http://developers.lyst.com/2014/02/13/background-removal/ -
so for such "complex" images Qt wont be the right framework to achieve acceptable results
-
@DivyaMuthyala
this is similar to your problem.
http://answers.opencv.org/question/37441/how-to-set-transparent-background-to-grabcut-output-image-in-opencv-c/