I have an image with black background, which I got from imfreehand function. I want to change that black background to red. Following is link for image.
MATLAB: How to change image background to red
image processingImage Processing Toolbox
Related Question
- I exactly want to do same thing explained in “what should I do so that only gray image converts into binary , not the black backgroung while moving the threshold.” question. But when I count white and black pixels in ROI I am getting 0.
- How to detect background color of image
- How to code the total pixels number and white pixels and black area pixels number
- Why do not white pixels equal black pixels
Best Answer