Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to find number of pixels of one color adjacent to pixels of another color

1 次查看(过去 30 天)
Write a function named countBlueWithAdjacentGreen which receives the name of an image as input. The function must return the number of blue pixels in the image that have an adjacent pixel (any direction) that is green. You can use Image01.tif and Image03.tif from the GitHub repository as a test. You may want to research the ind2sub function (also please not this is not the only way to solve this problem)

回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by