• themask
    了解作者
  • matlab
    开发工具
  • 2.2MB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 0
    下载次数
  • 2020-12-20 20:52
    上传日期
This source code is used for DIP
Slide5.rar
  • YCbCrDistortion.m
    757B
  • Fig0637(a)(caster_stand_original).tif
    2.7MB
  • Optionmenu.m
    616B
  • YCbCrshow.m
    575B
  • ChromaticOperation.m
    430B
  • YCbCrBrighter.m
    744B
  • YCbCrCompression.m
    767B
  • CalHist256.m
    381B
  • Fig0638(a)(lenna_RGB).tif
    768.8KB
  • HE.m
    481B
  • RGBshow.m
    613B
内容介绍
function [ ] = YCbCrCompression( frame ) %UNTITLED Summary of this function goes here % Detailed explanation goes here %% RGB image figure(1); subplot(3,3,2); imshow(frame); title('Original image'); frame = rgb2ycbcr(frame); Y = frame(:,:,1); Cb = frame(:,:,2); Cr = frame(:,:,3); subplot(3,3,4); imshow(Y); title('Y channel'); subplot(3,3,5); imshow(Cb); title('Cb channel'); subplot(3,3,6); imshow(Cr); title('Cr channel'); % Concatenate 3 channel as one con_img = cat(3,Y,Cb,Cr); subplot(3,3,3); imshow(con_img); title('Concanated image'); nCb = Cb(1:2:end, 1:2:end); nCr = Cr(1:2:end, 1:2:end); comp_img = cat(3,Y,nCb,nCr); comp_img = ycbcr2rgb(comp_img); subplot(3,8,3); imshow(comp_img); title('Compressed image'); end
评论
    相关推荐