Image Segmentation Algorithm [closed]

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

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

Thanks.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-11-14 14:18:38.494782

Comments

3

your supervisor is stuck in the 90's.

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

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 -0600 )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 -0600 )edit
3

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 -0600 )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 -0600 )edit

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

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

Some guidelines

  1. Start by opening up docs.opencv.org
  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 -0600 )edit
4

This code seems to be very similar to this code https://code.google.com/p/easytrack/source/browse/code/grabcut.cpp?spec=svn1&r=1

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": https://code.google.com/p/easytrack/

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