Ask Your Question

Santiago-Molina's profile - activity

2018-06-19 11:13:33 -0600 commented answer failed to use System.loadLibrary(Core.NATIVE_LIBRARY_NAME) on Raspberry pi

Hi, I am getting the same problem linking the compiled opencv400.so from my raspberry into my java project. I am a bit c

2018-06-19 11:12:32 -0600 commented answer failed to use System.loadLibrary(Core.NATIVE_LIBRARY_NAME) on Raspberry pi

Hi, I am getting the same problem linking the compiled opencv400.so from my raspberry in my java project. I am a bit con

2017-09-27 10:57:32 -0600 commented question Debug assertion failed std::vector crashes on deallocation for CascadeClassifier::detectMultiScale

Thanks for your answers. I am using visual studio, but the problem is not related to mixing debug and release libs. It c

2017-09-27 10:56:03 -0600 commented question Debug assertion failed std::vector crashes on deallocation for CascadeClassifier::detectMultiScale

Thanks for your answers. I am using visual studio, but the problem is not related to mixing debug and release libs. It c

2017-09-21 10:54:02 -0600 asked a question Debug assertion failed std::vector crashes on deallocation for CascadeClassifier::detectMultiScale

Debug assertion failed std::vector crashes on deallocation for CascadeClassifier::detectMultiScale I am using this funct

2013-04-19 14:58:15 -0600 commented answer Iplimage to Mat memory acces violation

Thank you for your answer, right now i can´t pass all the code to the second version, that's why i need to do this operation.

2013-04-19 14:41:14 -0600 commented answer Iplimage to Mat memory acces violation

Thanks for the answer, but the problem i'm having is in that line, when i debug it the error appears in that line. I tried to run the code like this and it worked, but when i try to use it as a function of the class it doesn´t work.

int main() { const char
* wndNameOut = "Out", * name = "../1.bmp";

vector<KeyPoint> keyPoints;

namedWindow( wndNameOut, CV_GUI_NORMAL );

Ptr < IplImage > IplI = cvLoadImage(name);

Mat src(IplI);

SimpleBlobDetector blobDetector( params );
blobDetector.create("SimpleBlob");
blobDetector.detect( src, keyPoints );

for(int i=0; i<keyPoints.size(); i++ )
{
    cv::floodFill(src,keyPoints[i].pt, Scalar::all((i+1)*255/(keyPoints.size()+1)));
}

imshow( wndNameOut, src );
waitKey();

}

2013-04-19 12:03:02 -0600 asked a question Iplimage to Mat memory acces violation

I´m having some problems with a code I'm writing, i'm trying to make the bwlabel operation in c++. And I'm having some memory deallocation problems, I don't know why, because I tried to follow the documentation in the OpenCV tutorials. It seems to be a problem with the variable refcount proper of the variable Mat.

Here is my code:

void VideoSeg::bwlabel(IplImage *srce, IplImage *out) {

namedWindow( "wndNameOut", CV_GUI_NORMAL );
cvConvertScale(srce,srce,255.);
Ptr<IplImage> srcx = srce; 

Mat src(srcx);

imshow( "wndNameOut", src);            //The image is succesfully plotted
SimpleBlobDetector blobDetector( params );
blobDetector.create("SimpleBlob");

blobDetector.detect(src, keyPoints );  // The problem appears in this line

for(int i=0; i<keyPoints.size(); i++ )
{
    cv::floodFill(src,keyPoints[i].pt, Scalar::all((i+1)*255/(keyPoints.size()+1)));
}

IplImage outx = src;
//http://docs.opencv.org/doc/tutorials/core/interoperability_with_OpenCV_1/interoperability_with_OpenCV_1.html
(*out) = outx;

cout << "Keypoints " << keyPoints.size() << endl;

}