• There is noticeably a bundle to learn about this. I assume you made certain nice points in options also.

  • I hope, you will find the correct decision. Do not despair.

  • An interesting dialogue is worth comment. I think that you need to write more on this matter, it might not be a taboo topic however generally people are not sufficient to speak on such topics. To the next. Cheers

  • Hi

    Hi! Could you please mention what were the values of the parameters(ex. &alpha, &beta) thay you have used in cvSnakeImage( bin, contours, length_of_contours, &alpha, &beta, &gamma, CV_VALUE, cvSize(3,3), criteria, 2 ); method?

    • Eric

      Here are the cvSnakeImage parameters:
      alpha = 0.1; // Weight of continuity energy
      beta = 0.4; // Weight of curvature energy
      gamma = 0.5; // Weight of image energy

  • Hiren Mewada


    I am new to opencv. I have great exposure to the MATLAB code. Can you please share the opencv code for Active Contour model as I am trying hardware realization using Raspberry Pi/BBB.

    Thanks ……

  • Chidanand


    I am new to opencv. Can you please share the opencv code for Active Contour model as I am interested to work on this technique.

    Thanks ……

  • Rajesh

    Can I view this code if it is open source ? It will be much appreciable. I could not find it in your gitHub repository.
    Kind Regards

  • Rajesh

    I am working on same active contour using openCV on iOS framework. So any help would help me greatly.

  • Pingback: ()

  • praveen

    Hi… Nice tutorial on this. But, is there a function for snakeImage in opencv python?

    • Suryadiputra Liawatimena

      since opencv 2.4 on ward cvimagesnake no longer active in opencv3.
      i found Msnakes at https://github.com/marciojmo/MSnakes

      There is an error at main.py using 2 parameters:
      # Creates the snake
      snake = snake.Snake( image, closed = True )

      because at snake.py using 3 parameters:
      def __init__( self, image = None, closed = True ):

  • Suryadiputra Liawatimena

    dear Eric,

    would you mind to share your opencv code that explained in this article? thanks.