SLIC superpixel opencv c++
I have an android code and I want to translate it into c++ using openCV 3.2.0 (include the extra models), in my android app I used the SLIC superpixel from Ximgproc lib of opencv this is my code
but I couldn't find how to apply the SLIC super pixel in c++( i'm using visual studio 2015). could someone help me ?! Note : I imported all the extra modules of the opencv contib.
UPDATE 1 : i found this example of the using the SLIC Superpixel with opencv c++. But I couldn't undertand the type of the variable "seeds" visual studio tell me that "seeds" is not defined and i couldn't find the right type of this variable
what is the exact problem, now ?
use the sample here (instead of backporting your android code)
@break i couldn't apply the function SuperpixelSLIC x = Ximgproc.createSuperpixelSLIC. i need to find the exact syntaxe so i could use it i hope to find someone how used her before or have an idea
i really don't understand the problem here. the java code is working fine, the mentioned c++ sample, too.
what does that even mean ? be more concise !
java (as a language) ofc. is NOT c++, so again, you shouldnot try to translate it line by line, literally, but rather look at the c++ code.
sorry if you couldn't understand me. In my app i want to use the opencv, the SLIC exist in the opencv this is the documentation documentation i used the same function from the opencv with java but i couldn't use it c++.,I found this exemple and i need to find the type of the variable seeds = createSuperpixelSLIC(h1) if you could help please
this has 6 comments already, yet you never explain why you can't use it
i update the question hope you could help
no, it doesn't. linking to another SO question is kinda useless to explain your problem.
again: https://github.com/opencv/opencv_cont...
thanks it working that's what i'm looking for : Ptr<superpixelslic> slic = createSuperpixelSLIC(converted,algorithm+SLIC,region_size,float(ruler));
it was already in the 2nd comment. you never looked.