Binary mask: find positive neighbour pixels

asked 2016-06-16 14:31:25 -0500

manatttta gravatar image

Hello,

I have a binary mask (CV_8UC1). I want to find all POSITIVE neighbour pixels to a given pixel.

The idea is to implement something similar to GIMP's magic wand selection, in which a user selects a pixel, and the app automatically selects all positive neighbours as a pixel

How do I do this?

edit retag flag offensive close merge delete

Comments

would connectedComponents be the answer ?

berak gravatar imageberak ( 2016-06-16 14:35:50 -0500 )edit