Can anybody suggest me to region fill this image on the basis of neighbouring pixels?

3 次查看(过去 30 天)
It is a color image where I have to fill the black/red regions depending on the color of neighbouring pixels.If the number of green pixels in the neighbour is more,then it will be filled with green,and if its red,then it is to be filled with red.Please help.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Read, Write, and Modify Image 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by