English: This takes an image (Image:Barns grand tetons.jpg) and displays the red, green and blue elements extracted from it.
Note that the white snow is composed of strong red, green and blue; the brown barn is composed of strong red and green with little blue; the dark green grass is composed of strong green with little red or blue; and the light blue sky is composed of strong blue and moderately strong red and green.
나는 이 작품의 저작권자로서, 이 작품을 퍼블릭 도메인으로 모두에게 공개합니다. 이 공개 선언은 전 세계적으로 유효합니다. 만약 저작권의 포기가 법률적으로 가능하지 않은 경우, 나는 이 작품을 법적으로 허용되는 한도 내에서 누구나 자유롭게 어떤 목적으로도 제한없이 사용할 수 있도록 허용합니다.
RGBimage = imread('barns_grand_tetons.jpg');
[height,width,depth]=size(RGBimage);
% Newer versions of matlab need outputimage=zeros(height*4,width,depth,'uint8');
outputimage=uint8(zeros(height*4,width,depth));
for w=1:width,
for h=1:height,
outputimage(h,w,1) = RGBimage(h,w,1); %Copy R, G and B for normal image
outputimage(h,w,2) = RGBimage(h,w,2);
outputimage(h,w,3) = RGBimage(h,w,3);
outputimage(h+height,w,1) = RGBimage(h,w,1); %Copy R only for first component
outputimage(h+(2*height),w,2) = RGBimage(h,w,2); %G only for second component
outputimage(h+(3*height),w,3) = RGBimage(h,w,3); %B only for third component
end
end
image(outputimage);
imwrite(outputimage,'rgb_separation.jpg','jpeg');
Sets iiin
기존 올리기 기록
The original description page was here. All following user names refer to en.wikipedia.
2006-06-02 12:33 Mike1024 1600×4780×8 (1082316 bytes) ==Summary== This takes an image ([[:Image:Barns grand tetons.jpg|Image:Barns grand tetons.jpg]]) and displays the red, green and blue elements extracted from it. Note that the white snow is comprised of strong red, green and blue; the brown barn is compr
{{Information |Description={{en|This takes an image (Image:Barns grand tetons.jpg) and displays the red, green and blue elements extracted from it. Note that the white snow is composed of strong red, green and blue;