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!