Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Wired issue: Output of running same code on Android & OSx differs

I've written some simple snippet in C++ and ran that on Android as well on OSx with same inputs and the result I got is different on both platform. Now the only thing I could think of is, the way I'm assuming to test the output is wrong, so here is the snippet..

string file = "imgage.jpg"; // trust me, files on both machines are same
Mat inputFrame = imread(file);

OrbFeatureDetector detector(500);
std::vector<KeyPoint> keypoints;

Mat image;
cvtColor(inputFrame, image, CV_RGB2GRAY);
detector.detect(image, keypoints);

cout << keypoints.size() << endl; //

Problem

cout << keypoints.size() << endl; // this gives different ouput running for same image on Android and OSx.

I ran this test on 8 different types of images and it runs fine except for the following image. Please ignore commenting on kind of image, this is just some random test.

image description

Wired issue: Output of running same code on Android & OSx differs

I've written some simple snippet in C++ and ran that on Android as well on OSx with same inputs and the result I got is different on both platform. Now the only thing I could think of is, the way I'm assuming to test the output is wrong, so here is the snippet..

string file = "imgage.jpg"; // trust me, files on both machines are same
Mat inputFrame = imread(file);

OrbFeatureDetector detector(500);
std::vector<KeyPoint> keypoints;

Mat image;
cvtColor(inputFrame, image, CV_RGB2GRAY);
detector.detect(image, keypoints);

cout << keypoints.size() << endl; //

Problem

cout << keypoints.size() << endl; // this gives different ouput running for same image on Android and OSx.

I ran this test on 8 different types of images and it runs fine except for the following image. Please ignore commenting on kind of image, this is just some random test.

image description

Running provided test on Android produces 176 keypoints while running on OSx produces 172 keypoints.

click to hide/show revision 3
sentence correction

Wired issue: Output of running same code on Android & OSx differs

I've written some simple snippet in C++ and ran that on Android as well on OSx with same inputs and the result I got is different on both platform. Now the only thing I could think of is, the way I'm assuming to test the output is wrong, so here is the snippet..

string file = "imgage.jpg"; // trust me, files on both machines are same
Mat inputFrame = imread(file);

OrbFeatureDetector detector(500);
std::vector<KeyPoint> keypoints;

Mat image;
cvtColor(inputFrame, image, CV_RGB2GRAY);
detector.detect(image, keypoints);

cout << keypoints.size() << endl; //

Problem

cout << keypoints.size() << endl; // this gives different ouput running for same image on Android and OSx.

I ran this test on 8 different types of images and it runs fine except for the following image. Please ignore commenting on kind of image, this is just some random test.

image description

Running provided test on Android produces gives 176 keypoints while running on OSx produces gives 172 keypoints.

click to hide/show revision 4
No.4 Revision

updated 2013-02-23 14:02:45 -0600

berak gravatar image

Wired Weird issue: Output of running same code on Android & OSx differs

I've written some simple snippet in C++ and ran that on Android as well on OSx with same inputs and the result I got is different on both platform. Now the only thing I could think of is, the way I'm assuming to test the output is wrong, so here is the snippet..

string file = "imgage.jpg"; // trust me, files on both machines are same
Mat inputFrame = imread(file);

OrbFeatureDetector detector(500);
std::vector<KeyPoint> keypoints;

Mat image;
cvtColor(inputFrame, image, CV_RGB2GRAY);
detector.detect(image, keypoints);

cout << keypoints.size() << endl; //

Problem

cout << keypoints.size() << endl; // this gives different ouput running for same image on Android and OSx.

I ran this test on 8 different types of images and it runs fine except for the following image. Please ignore commenting on kind of image, this is just some random test.

image description

Running provided test on Android gives 176 keypoints while running on OSx gives 172 keypoints.