Ask Your Question
-3

get the coordinates of all the pixels of a certain color

asked 2016-09-20 14:29:54 -0500

Tombery gravatar image

Help me please. The task is this: Necessary to define the image coordinates (x, y) of all piksiley relating to a range of blue color (blue tint). How can i do this?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-09-20 23:27:28 -0500

berak gravatar image
  1. use inRange (maybe on a converted HSV image) to define a mask
  2. use findNonZero on that mask, to get the positions of the "on" pixels
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-09-20 14:29:54 -0500

Seen: 439 times

Last updated: Sep 20 '16