Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

>> A = imread ('gtr.

jpg');

>> imshow(A);

B = imread ('gtr.jpg');

>> subplot (2,1,1); imshow(A);

>> subplot (2,1,2); imshow(B);

>> imshow(A);

>> A (1:290.5,1:480,3)=A(1:290.5,1:480,3)*0;

A (1:290.5,1:480,2)=A(1:290.5,1:480,2)*0;

A (290.5:581,1:480,2)=A(290.5:581,1:480,2)*0;

A (290.5:581,1:480,1)=A(290.5:581,1:480,1)*0;

A (1:290.5,480:960,1)=A(1:290.5,480:960,1)*0;

A (1:290.5,480:960,3)=A(1:290.5,480:960,3)*0;

A (290.5:581,480:960,:)=255-A(290.5:581,480:960,:);

imshow(A);

You might also like