Ask Your Question

Jalg's profile - activity

2016-01-12 05:13:52 -0600 received badge  Student (source)
2015-11-18 06:26:59 -0600 commented question Stitching 2 image with findHomography

Mmmm i think you don't understand me xD

I want a result similar to the class stitcher.

I don't need cut, the warpPerspective function with my homography cut my image correctly but i don't know how to stitch both without doing a roi like that:

Mat roi2(final, Rect(im.cols-77, 0, im2.cols, im2.rows));

Try and error say me that im.cols-77 is the position correct for my warpImage2 but i want put that without i have to create a function for all the images.

I hope undertand me or if i misundertand you excuse me.

2015-11-17 13:27:59 -0600 asked a question Stitching 2 image with findHomography

Hi, i have troubles to stitching two image using findHomography and warpPerspective, my code is the next one:

Mat H = findHomography(obj, scene, CV_RANSAC);

Mat warpImage2;
warpPerspective(im2, warpImage2, H, Size(im2.cols, im2.rows), INTER_CUBIC, BORDER_TRANSPARENT);

Mat final(Size(im2.cols * 2 , im2.rows), CV_8UC3);

Mat roi1(final, Rect(0, 0, im.cols, im.rows));
Mat roi2(final, Rect(im.cols, 0, im2.cols, im2.rows));

warpImage2.copyTo(roi2);
im.copyTo(roi1);
imshow("final", final);

the problem is that the result is the next one:

http://imgur.com/hgAr1AB

I can move my roi manually and try and try untill stitching both but when i'll use that function for other image will not work.

There a form to stitching them without move de roi manually?

Thanks.

2015-11-11 20:05:01 -0600 commented question Unhandled exception at using detect function(ORB)

Build opencv with opencv_contrib solve the problem thank you very much. For solve i follow the next instructions if someone have the same problem: http://audhootchavancv.blogspot.in/20...

2015-11-11 08:48:26 -0600 commented question Unhandled exception at using detect function(ORB)

no, any link for do it?

2015-11-11 05:56:33 -0600 received badge  Editor (source)
2015-11-10 11:28:52 -0600 commented question Unhandled exception at using detect function(ORB)

The message error is Unhandled exception at 0x753E3E28 in Trabajo1.exe: Microsoft C++ exception: cv::Exception at memory location 0x009AD9E0.

But other times say access violation writing, and change every run...

The only librarys i include for that is: "opencv2/features2d.hpp"

is ok? I have opencv 3 already and the image is ok

edit: I use that in windows 10 with visual studio 2015.

2015-11-10 08:26:17 -0600 asked a question Unhandled exception at using detect function(ORB)

Hi, i'm trying to get the keypoints in a image using the detector ORB but always gets an exception, my code is the next one.

vector < KeyPoint > kp;

int nfeatures = 500;
float scaleFactor = 1.2f;
int nlevels = 8;
int edgeThreshold = 15;
int firstLevel = 0;
int WTA_K = 2;
int scoreType = ORB::HARRIS_SCORE;
int patchSize = 31;
int fastThreshold = 20;

Ptr < ORB > detector = ORB::create(
    nfeatures,
    scaleFactor,
    nlevels,
    edgeThreshold,
    firstLevel,
    WTA_K,
    scoreType,
    patchSize,
    fastThreshold );

detector->detect(img, kp);
cout << "Found " << kp.size() << " Keypoints " << std::endl;

Mat out;
drawKeypoints(img, kp, out, Scalar::all(255));

imshow("Kpts", out);

img is declared early, the problem is when do detector->detect(img, kp); and i don't know what problem is, i'm trying other form of do it but all crash in the call of detect().

edit:

I try to do with BRISK and the problem is the same in the call of detect crash. With brisk i did the next one:

Ptr < BRISK > detector = BRISK::create();
vector <KeyPoint> kp;
detector->detect(img,kp);

This is turning exasperating.

Sorry for my english and thanks for the answer.