Seperating in Digital Image Processing
조회 수: 2 (최근 30일)
이전 댓글 표시
I coded this question but it don't work. I have a error. If someone help me, i will be very happy. Thans.
My tried code block:
img=imread('peppers.png');
img=(im2double(img));
R(img)=img(:,:,1); %we chosed channal 1
G=img(:,:,2);
B=img(:,:,3);
x=16; y=16;
m=2048; n=1024;
sub_image=R(img)(x:x+m,y:y+n);
sub_image=R(img)(16:2048, 16:1024);
imshow(sub_image);
imwrite(sub_image,'sub_region.jpg');
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!