标签: image matlab
我想只提取红玫瑰。以下代码没问题,但它没有提取。所以,请帮忙!
Image = imread('red_rose.jpeg'); mask = Image(:,:,2)<Image(:,:,1) & Image(:,:,3)<Image(:,:,1); Red_Image = bsxfun(@times, Image, uint8(mask)); imshow(Red_Image);