removing background and superimpose pictures. I really need help on this problem! thanks for your help
Show older comments
%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.
Accepted Answer
More Answers (0)
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!