matlab program to find the complement of image with no functions code example
Example: matlab invert image
% Reads image
im = imread('image.jpg');
% Inverts image
invert = 255 - im;
% Displays image
image(invert)
% Reads image
im = imread('image.jpg');
% Inverts image
invert = 255 - im;
% Displays image
image(invert)