Skip to content

C++ sample code for active contour detection.#3737

Closed
samyak-268 wants to merge 1 commit intoopencv:2.4from
samyak-268:2.4
Closed

C++ sample code for active contour detection.#3737
samyak-268 wants to merge 1 commit intoopencv:2.4from
samyak-268:2.4

Conversation

@samyak-268
Copy link
Copy Markdown
Contributor

Added a C++ file along with a sample input image that demonstrates Active
Contour detection (Snake algorithm).

My motivation for submitting a sample for cvSnakeImage() originated from the fact that there is surprisingly less amount of documentation or tutorials available online for Active Contour detection. Most of the threads in online Q&A forums do not point to any meaningful places.

I have tried to make the code well-documented and self-explanatory and also provided a sample image to run the program on. The image is a pseudo-hue transformation of a lip region (the original task for which I was applying cvSnakeImage() ).

Added a C++ file along with a sample input image that demonstrates Active
Contour detection (Snake algorithm).
@StevenPuttemans
Copy link
Copy Markdown

Since OpenCV is planning to move to 3.0 shortly (which is completely removing the old, deprecated and forgotton C-API) and cvSnake is nowhere supported there I am guessing that it will not get pushed into the repo. Isn't there a way to program the snake behaviour using the C++ interface?

@StevenPuttemans
Copy link
Copy Markdown

And basically internally findContours does exactly the same, based on a given image with edges!

@samyak-268
Copy link
Copy Markdown
Contributor Author

I see. Well, if the function is being deprecated, I agree that there isn't much use of pushing the sample. Also, I didn't quite get "program the snake behavior using the C++ interface". Does it mean providing a C++ equivalent to the C-function?

@asmorkalov asmorkalov closed this Feb 24, 2015
@StevenPuttemans
Copy link
Copy Markdown

Indeed, it would be nice if you could make a sample out of existing OpenCV C++ functionality, which should be possible.

mshabunin pushed a commit to mshabunin/opencv that referenced this pull request Feb 24, 2015
mshabunin pushed a commit to mshabunin/opencv that referenced this pull request Feb 24, 2015
mshabunin pushed a commit to mshabunin/opencv that referenced this pull request Feb 24, 2015
@cancan101
Copy link
Copy Markdown

Once the OpenCV 3.0 release are there any plans to bring over cvSnakeImage?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants