Re: how to change specific colors of image?
"Faiz Ali" <aryan.mehta13@gmail.com> wrote in message <hqmj3k$q9s$1@fred.mathworks.com>...> clear all;> RGB = imread('im5.jpg');> > f1 = figure(); imshow(RGB);> > [r c z]...
View ArticleRe: how to change specific colors of image?
Faiz Ali wrote:> this is a code which read image pixel wise, and changes yellow pixels to > white and rest to black. I want to change color of all pixels to black > except white. White should...
View ArticleRe: how to change specific colors of image?
[r c z] = size(RGB); for i=1:r for j=1:c if (RGB(i,j,1)==255 && RGB(i,j,2)==255 && RGB(i,j,3)==255) break % if it's value is white, do not change end...
View ArticleRe: how to change specific colors of image?
If RGB = [255,255,255] then just set I to 255 for white, or to 0 for black (if the color is anything other than [255,255,255].
View Articlehow to change specific colors of image?
clear all; RGB = imread('im5.jpg'); f1 = figure(); imshow(RGB); [r c z] = size(RGB); RGB = RGB(floor(r*0.2):r,:,:); [r c z] = size(RGB); I = zeros(r,c); for i=1:r for j=1:c...
View Article