Ask Your Question

evilkid's profile - activity

2017-11-14 11:10:16 -0500 commented question Open image saved with photoshop

I'm using an older version because it has SURF enabled, i tried to compile the latest version, but i keep getting "Java

2017-11-12 20:31:39 -0500 asked a question Open image saved with photoshop

Open image saved with photoshop Hello, Im trying to load a simple image using: Highgui.imread("./resources/lena.png");

2017-06-25 07:28:55 -0500 commented question OpenCV Build 64bit using MinGW64

I have used the Win-buildshttp://mingw-w64.org/doku.php/downloa...

2017-06-25 07:26:30 -0500 received badge  Editor (source)
2017-06-25 06:56:00 -0500 asked a question OpenCV Build 64bit using MinGW64

Hello, I am trying to build OpenCV (3.2.0) with the opencv_contrib, however, I could not generate 64bit files. I'm using CMake, and I couldn't find where I need to set my architecture to 64bit. It is only generating x86 dlls. Does MinGW64 even supports generating 64bit files? I am really not comfortable with Visual Studio so i dont wanna go there.

UPDATE: One more thing I have tried, is go to the CMakeVars.txt file, and added the "-m64" flag to CMAKE_CXX_FLAGS and CMAKE_C_FLAGSvars, that did generate a 64bit dll, however, im getting: libopencv_java320.dll: %1 is not a valid Win32 application while trying to load the library in java.

One more thing, while generating, the all the dlls are prefixied with "lib", example : "libopencv_java320.dll" I believe it should be "opencv_java320.dll" only, because even Java wouldn't accept the libs prefixed with "lib".

2017-06-23 14:40:21 -0500 commented question Loading png image always result in an empty Matrix

I noticed you said the only supported flags are -1,0,1. So i tried with -1 and worked, weird because i have tried with Imgcodecs.IMREAD_UNCHANGED earlier and it didnt work.

2017-06-23 14:24:36 -0500 commented question Loading png image always result in an empty Matrix

ok ill make sure to use dump in the future, but all i sout(img) gave me: Mat [ 0*0*CV_8UC1, isCont=false, isSubmat=false, nativeObj=0xe390b0, dataAddr=0x0 ] and sout(img.dump()) gave me and empty array [] for the silly loop, was a desperate move ...

2017-06-23 07:26:34 -0500 asked a question Loading png image always result in an empty Matrix

I am trying to load a simple png image with opencv (3.2.0) with java, using the x64 library. But each time i get an empty matrix (all the pixels are 0). However, when i convert the image to jpg, it works just fine. I have tried to run imread method with every flag possible, I even did this (iterated over every possible flag f):

System.loadLibrary("opencv_java320");
for (int k = 0; k < 130; f++) {
    Mat img = Imgcodecs.imread(inFile, f);
    for (int i = 0; i < img.cols(); i++) {
        for (int j = 0; j < img.rows(); j++) {
            if (img.get(i, j) != null && img.get(i, j)[0] > 0) {
                System.out.println(f);
                System.exit(0);
            }
        }
    }
}

Here is the image I'm running imread against. enter image description here