FPGA Player

好记性不如烂笔头

导航

2017年10月30日 #

RGB转换成YCbCr

摘要: clear all; close all; clc; img=imread('colorbar.jpg');%('ngc6543a.jpg'); %img=mat2gray(img); %[0,1]; [m n dim]=size(img); imshow(img); %picture RGB img=double(img); R=img(:,:,1); G=img(:,:,2); B=im... 阅读全文

posted @ 2017-10-30 16:58 中国的孩子 阅读(1836) 评论(0) 推荐(0) 编辑

RAW转换成RGB

摘要: clc; clear; close all; [filename,pathname]=uigetfile({'*.*','All Files (*.*)'},'Pick a file'); file = strcat(pathname,filename); % raw图的尺寸 row = 30; col = 72; % 读图 所读raw图为8位 fid=fopen(file, 'r'); B... 阅读全文

posted @ 2017-10-30 16:56 中国的孩子 阅读(6406) 评论(0) 推荐(0) 编辑