[java] javaCV 에서 IplImage 를 byte 로 변환하자 JavaCV 에서 IplImage 의 char *imageData 를 JavaCV 에서 double[] 형태로 변형하자. 설명은 귀찮으니깐, 소스로 대처함 IplImage Loadimage = cvLoadImage("u_accelerometer.jpg", 0 ); // gray 로 read image_double image = new image_double( _image.width(), _image.height() );; byte[] ary = new byte[_image.width()*_image.height()]; Byte[] Bary = new Byte[_image.width()*_image.height()]; _image.ge..
...... 할말이 없다 -_- 자료형변환 왜이리도 짜증이 나는지... CString szValue; double lValue=0.0; // 해결방법 lValue = _wtof(szValue); // Error!! lValue = atof(LPSTR(LPCTSTR(szValue))); // 참고로 _wtoi() 함수는 정수로 변환을 해준다. _wtof() 함수를 쓰니 한번에 해결이 되었다. 이거 -_-; 하나 찾는데 얼마나 오래걸리는지.. 으아 ㅡㅡ++