the below code changes rgb image to grey ,can the same partision done without changing the image to grey??
2 次查看(过去 30 天)
显示 更早的评论
dataTop = rgb2gray(data(1:240, :,:));
dataMiddle = rgb2gray(data(241:480, :, :));
dataBottom = rgb2gray(data(481:end, :, :));
0 个评论
采纳的回答
Image Analyst
2013-4-4
编辑:Image Analyst
2013-4-4
I'm not sure of the question. You cannot do the same thing by doing something different, obviously. So you can't change the image to gray without changing the image to gray. If you don't want to call rgb2gray(), then don't.
9 个评论
Image Analyst
2013-4-5
See my color detection demo where I find red: http://www.mathworks.com/matlabcentral/fileexchange/31118-color-segmentation-by-delta-e-color-difference
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!