Demo entry 6354932

1

   

Submitted by 1 on Apr 12, 2017 at 02:52
Language: Matlab. Code size: 230 Bytes.

%提取特定颜色
rgb=im2double(imread('1.JPG'));
ycbcr=rgb2ycbcr(rgb);
cr=ycbcr(:,:,3);
mask1_r=cr>.55;
s1_r=rgb.*cat(3,mask1_r,mask1_r,mask1_r);
figure
subplot(121),imshow(rgb),title('原始图像')
subplot(122),imshow(s1_r),title('红色信号')

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).