파일:Barns grand tetons YCbCr separation.jpg

testwiki
둘러보기로 이동 검색으로 이동
    원본 파일 (1,600 × 4,780 픽셀, 파일 크기: 825 KB, MIME 종류: image/jpeg)

    이 파일은 위키미디어 공용에 있으며, 다른 프로젝트에서 사용하고 있을 가능성이 있습니다. 해당 파일에 대한 설명이 아래에 나와 있습니다.

    파일 설명

    설명
    English: This takes the image Barns grand tetons.jpg and displays the Y, Cb and Cr elements of it. Note that the Y image is essentially a greyscale copy of the main image; that the white snow is represented as a middle value in both Cb and Cr; that the brown barn is represented by strong Cb and strong Cr; that the green grass is represented by strong Cb and weak Cr; and that the blue sky is represented by weak Cb and weak Cr. The murkiness of the Cb and Cr elements (to the human eye) demonstrate why many image compression codecs downsample colour; details in Y are much more visible than in Cb or Cr.
    날짜 2006년 12월 26일 (올리기 일시)
    출처 Based on the (public domain) photo Image:Barns grand tetons.jpg. Code above and resulting output by Mike1024.
    저자 Mike1024
    저작권
    (이 파일을 인용하기)
    Public domain 나는 이 작품의 저작권자로서, 이 작품을 퍼블릭 도메인으로 모두에게 공개합니다. 이 공개 선언은 전 세계적으로 유효합니다.
    만약 저작권의 포기가 법률적으로 가능하지 않은 경우,
    나는 이 작품을 법적으로 허용되는 한도 내에서 누구나 자유롭게 어떤 목적으로도 제한없이 사용할 수 있도록 허용합니다.
    Generator code
    InfoField
    In MATLAB:
    RGBimage = imread('barns_grand_tetons.jpg');
    [height,width,depth]=size(RGBimage);
    YCbCrimage=RGB2YCbCr(RGBimage); % If you don't have the right version/toolkit this function
                                    % might not be available. Luckily, it's easy to implement
                                    % ourselves. Drop me (Mike1024) a message and I'll send you
                                    % my code to do it.
    
    % 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) = YCbCrimage(h,w,1); % Copy Y, Cb and Cr for normal image
        outputimage(h,w,2) = YCbCrimage(h,w,2);
        outputimage(h,w,3) = YCbCrimage(h,w,3);
        outputimage(h+height,w,1) = YCbCrimage(h,w,1); % Copy Y only for first component
        outputimage(h+height,w,2) = 128;
        outputimage(h+height,w,3) = 128;
        outputimage(h+(2*height),w,2) = YCbCrimage(h,w,2); % Cb only for second component
        outputimage(h+(2*height),w,1) = 128;
        outputimage(h+(2*height),w,3) = 128;
        outputimage(h+(3*height),w,3) = YCbCrimage(h,w,3); % Cr only for third component
        outputimage(h+(3*height),w,1) = 128;
        outputimage(h+(3*height),w,2) = 128;
      end
    end
    
    image(YCbCr2RGB(outputimage));
    imwrite(YCbCr2RGB(outputimage),'YCbCr_separation.jpg','jpeg');
    

    설명

    이 파일이 나타내는 바에 대한 한 줄 설명을 추가합니다

    이 파일에 묘사된 항목

    다음을 묘사함

    fb1e6384f89b9a5b3e8bebcd3065c2817b00a1b5

    844,403 바이트

    4,780 화소

    1,600 화소

    파일 역사

    날짜/시간 링크를 클릭하면 해당 시간의 파일을 볼 수 있습니다.

    날짜/시간섬네일크기사용자설명
    현재2006년 12월 26일 (화) 11:582006년 12월 26일 (화) 11:58 판의 섬네일1,600 × 4,780 (825 KB)wikimediacommons>Wdwd==Summary== This takes an image (Image:Barns grand tetons.jpg) and displays the Y, Cb and Cr elements of it. Note that the Y image is essentailly a greyscale copy of the main image; that the white snow is represented as

    이 파일을 사용하는 문서가 없습니다.