File:Barns grand tetons YCbCr separation.jpg
维基共享资源,媒体文件资料库
跳转到导航
跳转到搜索
本预览的尺寸:200 × 598像素。 其他分辨率:80 × 240像素 | 160 × 480像素 | 257 × 768像素 | 342 × 1,024像素 | 1,600 × 4,780像素。
原始文件 (1,600 × 4,780像素,文件大小:825 KB,MIME类型:image/jpeg)
文件信息
结构化数据
说明
摘要[编辑]
描述Barns grand tetons YCbCr separation.jpg |
English: 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 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 | |||
授权 (二次使用本文件) |
|
Generator code[编辑]
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 availiable. 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');
文件历史
点击某个日期/时间查看对应时刻的文件。
日期/时间 | 缩略图 | 大小 | 用户 | 备注 | |
---|---|---|---|---|---|
当前 | 2006年12月26日 (二) 10:58 | 1,600 × 4,780(825 KB) | 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 |
您不可以覆盖此文件。
文件用途
全域文件用途
以下其他wiki使用此文件:
- be.wikipedia.org上的用途
- cs.wikipedia.org上的用途
- de.wikipedia.org上的用途
- de.wikibooks.org上的用途
- en.wikipedia.org上的用途
- es.wikipedia.org上的用途
- fr.wikipedia.org上的用途
- hu.wikipedia.org上的用途
- id.wikipedia.org上的用途
- it.wikipedia.org上的用途
- pl.wikipedia.org上的用途
- ru.wikipedia.org上的用途
- su.wikipedia.org上的用途
- vi.wikipedia.org上的用途
- zh.wikipedia.org上的用途
元数据
此文件中包含有额外的信息。这些信息可能是由数码相机或扫描仪在创建或数字化过程中所添加。
如果文件已从其原始状态修改,某些细节可能无法完全反映修改后的文件。
_error | 0 |
---|