File:Barns grand tetons YCbCr separation.jpg
出自Wikimedia Commons
跳至導覽
跳至搜尋
預覽大小: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 |
---|