Image Segmentation Algorithm

asked 2015-10-13 05:15:11 -0500

wes101 gravatar image

I have been given a piece of code by my supervisor but I don't understand the algorithm behind this code to make changes to it.

I know this code using a block and finds contours within the block but can someone please explain to me how it works, essentially giving me procedure? I've added it to my drive - link text


edit retag flag offensive close merge delete



your supervisor is stuck in the 90's.

berak gravatar imageberak ( 2015-10-13 05:21:41 -0500 )edit

Sorry if it sounds rude but... why don't you ask your supervisor? Apart from that, the code is definitely not OpenCV3.0, it still uses the old C-api

LorenaGdL gravatar imageLorenaGdL ( 2015-10-13 05:22:14 -0500 )edit

He's one mean old man @LorenaGdL. Just gave it to me to try and figure it out and make updates to it for HIM and yes it's the C-api because apparently he prefers it.

wes101 gravatar imagewes101 ( 2015-10-13 05:30:53 -0500 )edit

Then he prefers something that will not work, or at least that will likely cause several problems. You should seriously warn him against using the C-api.

LorenaGdL gravatar imageLorenaGdL ( 2015-10-13 05:45:04 -0500 )edit

Why not just transform it to C++ API and see the differences, or even the bugs?... I am sure you will understand the algorithm

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-10-13 05:54:21 -0500 )edit

Possible to give an overview so I can have an idea?

wes101 gravatar imagewes101 ( 2015-10-13 07:31:07 -0500 )edit

Some guidelines

  1. Start by opening up
  2. Now copy paste a cv function - old API and paste that in the search box
  3. Look how the new function is called in the C++ API
  4. Change everything - repeat process and see what other errors occur

Then head back to us!

StevenPuttemans gravatar imageStevenPuttemans ( 2015-10-13 08:03:36 -0500 )edit

This code seems to be very similar to this code

The name of the file is "grabcut.cpp", but i don't think that this code ralates to the original GrabCut

Anyway, you can try to email the author of "easytrack":

albertofernandez gravatar imagealbertofernandez ( 2015-10-14 02:53:04 -0500 )edit