please help me in dividing the color image into blocks and then finding mean color of each block seperately in matlab???
1 次查看(过去 30 天)
显示 更早的评论
My project is based on image inpainting..................I have to divide the whole image into image block and then have to calculate mean color of image block ............. please help
0 个评论
回答(1 个)
Image Analyst
2013-1-27
See my code for dividing an image into blocks or tiles: http://www.mathworks.com/matlabcentral/answers/58545#answer_70831
Then to get the mean color of each block:
meanRed = mean2(rgbBlock(:,:,1));
meanGreen = mean2(rgbBlock(:,:,2));
meanBlue = mean2(rgbBlock(:,:,3));
1 个评论
Image Analyst
2013-1-28
In that other post you said it helped you, so go ahead and mark this post as "Accepted".
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Computer Vision with Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!