MATLAB: How to replace the pixel value

change the pixel valueMATLAB

hello i have a question that how to replace the pixel value with other pixel value

Best Answer

Just assign the value: For pixel (i,j), given a RGB image (n x m x 3 matrix):
p(i,j,:) = [0.2 0.4 0.5];
Related Question