%Task 1 - Load image1.jpg and create figure 1
disp('Task 1 See figure 1, image1.jpg');I=imread('image1.jpg');figure(1);image(I);pause%Green component
disp('Green component');G = I(:,:,2);image(G),colormap([zeros(256,1),[0:1/255:1]', zeros(256,1)]);pause
i attach the image. what code should i write to prompt a number between 0 and 255 next? Use the matrix from green component to create new matrix with size n x n; new matrix with size m x n x 3; and replace original image with white background.
Best Answer