1 | initial version |
^^ bug, i'd say.
using namespace std;
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; }
2 | No.2 Revision |
^^ bug, i'd say.
using namespace std;
#include <opencv2/opencv.hpp>
#include <opencv2/ximgproc.hpp>
using namespace 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)
3 | No.3 Revision |
^^ bug, i'd say.
#include <iostream>
using namespace
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)
4 | No.4 Revision |
^^ 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)
5 | No.5 Revision |
^^ 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)
6 | No.6 Revision |
^^ 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)