Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

^^ bug, i'd say.

include <iostream>

using namespace std;

include <opencv2 opencv.hpp="">

include <opencv2 ximgproc.hpp="">

using namespace cv;

int main(int argc, char **argv) { Mat image = imread("im/lena.png"); Ptr<ximgproc::superpixelslic> slic = ximgproc::createSuperpixelSLIC(image, ximgproc::SLICO, 9, 10.0f) ; return 0; }

^^ bug, i'd say.

include <iostream>

using namespace std;

include <opencv2 opencv.hpp="">

include <opencv2 ximgproc.hpp="">

#include <opencv2/opencv.hpp>
#include <opencv2/ximgproc.hpp>
using namespace cv;

cv;

int main(int argc, char **argv) { Mat image = imread("im/lena.png"); imread("im/lena.png"); //512x512 Ptr<ximgproc::superpixelslic> Ptr<ximgproc::SuperpixelSLIC> slic = ximgproc::createSuperpixelSLIC(image, ximgproc::SLICO, 9, 10.0f) ; return 0; }}

breaks here , m_numlabels=2621, m_kseedsx.size()=2601

actually, it works, when choosing a larger region, like 12, but m_numlabels never matches the arraysizes there (either too long, -> crash, or too short -> leftovers)

^^ bug, i'd say.

include <iostream>

#include <iostream>
using namespace std;

std;
#include <opencv2/opencv.hpp>
#include <opencv2/ximgproc.hpp>
using namespace cv;
int main(int argc, char **argv)
{
Mat image = imread("im/lena.png"); //512x512
Ptr<ximgproc::SuperpixelSLIC> slic = ximgproc::createSuperpixelSLIC(image, ximgproc::SLICO, 9, 10.0f) ;
return 0;
}

breaks here , m_numlabels=2621, m_kseedsx.size()=2601

actually, it works, when choosing a larger region, like 12, but m_numlabels never matches the arraysizes there (either too long, -> crash, or too short -> leftovers)

^^ bug, i'd say.

#include <iostream>
using namespace std;
#include <opencv2/opencv.hpp>
#include <opencv2/ximgproc.hpp>
using namespace cv;

int main(int argc, char **argv)
{
    Mat image = imread("im/lena.png"); //512x512
    Ptr<ximgproc::SuperpixelSLIC> slic = ximgproc::createSuperpixelSLIC(image, ximgproc::SLICO, 9, 10, 10.0f) ;
    return 0;
}

breaks here , m_numlabels=2621, m_kseedsx.size()=2601

actually, it works, when choosing a larger region, like 12, but m_numlabels never matches the arraysizes there (either too long, -> crash, or too short -> leftovers)

^^ bug, i'd say.

#include <iostream>
using namespace std;
#include <opencv2/opencv.hpp>
#include <opencv2/ximgproc.hpp>
using namespace cv;

int main(int argc, char **argv)
{
    Mat image = imread("im/lena.png"); //512x512
    Ptr<ximgproc::SuperpixelSLIC> slic = ximgproc::createSuperpixelSLIC(image, ximgproc::SLICO, 10, 10.0f) ;
    return 0;
}

breaks here , m_numlabels=2621, m_kseedsx.size()=2601

actually, it works, when choosing a larger region, like 12, but m_numlabels never matches the arraysizes there (either too long, -> crash, or too short -> leftovers)

^^ bug, i'd say.

#include <opencv2/opencv.hpp>
#include <opencv2/ximgproc.hpp>
using namespace cv;
using namespace cv::ximgproc;

int main(int argc, char **argv)
{
    Mat image = imread("im/lena.png"); //512x512
    Ptr<ximgproc::SuperpixelSLIC> Ptr<SuperpixelSLIC> slic = ximgproc::createSuperpixelSLIC(image, ximgproc::SLICO, createSuperpixelSLIC(image, SLICO, 10, 10.0f) ;
    return 0;
}

breaks here , m_numlabels=2621, m_kseedsx.size()=2601

actually, it works, when choosing a larger region, like 12, but m_numlabels never matches the arraysizes there (either too long, -> crash, or too short -> leftovers)