Ask Your Question

Revision history [back]

Indeed this seems weird :) I have checked the functionality provided for android and I am finding the exact functions.

However, can you check that you are visualizing the correct things. I am seeing that you do a grayscale conversion to src. But then you convert to src_f. Sure you are not just visualizing the wrong image?

Indeed this seems weird :) I have checked the functionality provided for android and I am finding the exact functions.

However, can you check that you are visualizing the correct things. I am seeing that you do a grayscale conversion to src. But then you convert to src_f. Sure you are not just visualizing the wrong image?

UPDATE : Think I might have found the solution.

If you check the cvtColor functionality for the android port of openCV, you can see that the Java wrapper does not yet provide the cvtColor function. Look at the imgproc library and see that there is in fact no port. This means that in C++ you can call the function, but in Java for android, there is simply no function implemented. This will result in no conversion and thus keeping you with the original file.

Also when looking at the C++ cvtColor information, I can find the following transformations (http://docs.opencv.org/modules/imgproc/doc/miscellaneous_transformations.html?highlight=cvtcolor#cvtcolor

They do not list the BGR2GRAY only the RGB2GRAY, which is weird since they do provide the functionality. Maybe an edit should be requested.

Cheerz!