Click here to Skip to main content
15,896,201 members

Comments by stephcyl (Top 5 by date)

stephcyl 13-Mar-14 1:58am View    
Ok. Thanks
stephcyl 12-Mar-14 13:05pm View    
yea. I have made the changes you advised for an it still gave same exception, i.e changed to CV_LOAD_IMAGE_GRAYSCALE and passed 400 to the sift feature detector. I also included the feature.
stephcyl 12-Mar-14 11:57am View    
I have used the CV namespace.
Checked the keypoint. Size is 289 and capacity is 316.
stephcyl 12-Mar-14 11:20am View    
Yes, image loads properly.
How can I delete the keypoints? I notice that just declaring the keypoints will not trigger the error, but once I have called the "detect" function it triggers the exception.
stephcyl 12-Mar-14 10:07am View    
I thought the detector takes as input the image, and then the keypoint is passed by reference?
It's in the cleanup of this function, as the code calling is is:
int main()
{
cerr<<"Please select what you want to test for"<<endl;
cerr<<"0. Exit"<<endl;
cerr<<"1. XT "<<endl;
cerr<<"2. MLP"<<endl;
cerr<<"3. Image"<<endl;
cerr<<"4. Sift"<<endl;
cerr<<"5. Surf"<<endl;

int cmd, returnVal;
cin>>cmd;
if (cmd==1)
{
returnVal= DoSift();
}

cerr<<"Press enter to exit"<<endl;

std::cin.ignore();
return returnVal;
}

When I call other functions and not this one it runs fine