Is the C ++ OpenCV Vision Library suitable for this case of image segmentation?

I am trying to find an easy to use vision library for C ++. Here is my situation: I have a camera connected to a computer (for simplicity, however, we can simply assume that the image files exist on the computer), and that is how the images will look:

enter image description here

The idea is that three objects vertically stacked will have very contrasting colors. I need to determine the location of objects, so the vision library must either find the edges of objects, or determine their center of mass.

, , , OpenCV . , , ?

!

+5
2

, ( "V" HSV - "", ).

enter image description here

Hue, , , . () . , , H V , . ( , , , , , .)

OpenCV . http://www.seas.upenn.edu/~bensapp/opencvdocs/ref/opencvref_cv.htm

: , ( ) , . / / , Otsu .

Otsu, , , . , , Otsu .

, , . Otsu . , , , , Otsu .

, . , () HSV. , :

  • ( Canny ). +/- D () () . D , .
  • . . : 1 2, - 2 3.

, / , .

, RANSAC , ..

, , , , , :

  • , .

, , K Means. http://aishack.in/tutorials/knearest-neighbors-in-opencv/

, , , , .

- . . " ": http://www.microscan.com/en-us/products/nerlite-machine-vision-lighting/cdi-illuminators.aspx

, "", , , . http://www.photography.com/articles/taking-photos/bounce-lighting/

+4

OpenCV - , , . , .

, ( , , OpenCV).

( , OpenCV):

  • HSV - , , Hue

  • Otsu ( )

  • (, ), . findContours Hough , .

  • outher, , ( , ), , , . , .

  • - , . , , () . ( ) ( ) . , . , , .

+7

All Articles