# Image ROI 설정. 과거저번은 찾으면 많으니 패스! 2.4.3 의 버전에서는 아래와 같음. Mat roi = dst(m_Rect); imshow("ROI", roi); 결과는 맘에듬~
# 자바파일을 windows 에서 실행하기 위한 *.exe 파일로 배포하는 방법 정리. 01. eclipse 에서 jar 파일 생성 code - ExecuteTest Project public class ExecuteTest { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("test java"); } } Eclipse - File - Export > Java > Runnable Jar file 선택. Library Handling:-> Extract require libraries into genereated JAR 선택. -> Finish 0..
URL : http://msdn.microsoft.com/ko-kr/library/zxt206sk(v=vs.80).aspx 'class' : 추상 클래스를 인스턴스화할 수 없습니다. 'class' : cannot instantiate abstract class 라는 에러가 발생. 클래스의 상속문제에서 생기는 현상. virtual 를 사용하기 위해서는 파생된 클래스에서 정의를 꼭 해주면 된다. 테스트 코드를 실행해보았으나. 위의 URL 이 더 훌륭하기에. 난 빠빠!
> referencehttp://en.wikipedia.org/wiki/Confusion_matrixhttp://zovan.tistory.com/78http://www2.cs.uregina.ca/~dbd/cs831/notes/confusion_matrix/confusion_matrix.html Confusion matrixFrom Wikipedia, the free encyclopediaIn the field of artificial intelligence, a confusion matrix is a specific table layout that allows visualization of the performance of an algorithm, typically a supervised learning..
주제 *openGL 또는 기타 여러 라이브러리에서 사용되는 코드를 C++ 이 class 로 넣고자 할때 생기는 문제점을 해결하고자 한다 *문제점int main(int argc, char **argv) { aiLogStream stream; glutInitWindowSize(900,600); glutInitWindowPosition(100,100); glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH); glutInit(&argc, argv); glutCreateWindow("Assimp - Very simple OpenGL sample"); // 아래의 두줄이 문제임! C++ 타입으로 어떻게 변경할 것인가? glutDisplayFunc(display); g..
최근 수정일 : 2013.02.22 - postfix setting 설정 방법설명 ---* 현재 우분투 12.04, 10.04 버전에서 테스트를 하였습니다. ---- 설명 시작 ----reference 01. http://magicpd.tistory.com/602. ubuntu Server postfix setting 설명- Link1 https://help.ubuntu.com/12.04/serverguide/email-services.html- Link2 https://help.ubuntu.com/12.04/serverguide/postfix.html- Link3 https://help.ubuntu.com/10.04/serverguide/postfix.html 01. 우분투 설치 후 terminal 을..
$sudo gedit /etc/default/saslauthd # # Settings for saslauthd daemon # Please read /usr/share/doc/sasl2-bin/README.Debian for details. # # Should saslauthd run automatically on startup? (default: no) START=yes PWDIR="/var/spool/postfix/var/run/saslauthd" PARAMS="-m ${PWDIR}" PIDFILE="${PWDIR}/saslauthd.pid" # Description of this saslauthd instance. Recommended. # (suggestion: SASL Authentication..
$sudo gedit /etc/postfix/main.cf // 파일 수정 # See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. #myorigin = /etc/mailname smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no # appending .domain is the MUA's job. append..
homepage : gotohttp://www.csie.ntu.edu.tw/~cjlin/libsvm/ version : 3.14( Nov.2012)zip : download.zip versiontar.gz : download.tar.gz version 기타 SVM library- SVMLight http://svmlight.joachims.org/ - LIBSVM http://www.csie.ntu.edu.tw/~cjlin/libsvm/index.html - mySVM http://www-ai.cs.uni-dortmund.de/SOFTWARE/MYSVM/index.html - BioSVM http://biojava.org/wiki/Main_Page 사용방법 on matlabhttp://blog.naver..
SVM C/C++ code >> 주의사항 - svm 에 초기값을 제대로 넣어주어야 결과가 제대로 나온다. dataclass 의 type 수를 2개만 줄건지 그 이상 줄건지 확실히 하도록 하자. 그렇지 않으면 svm 의 predict() 함수의 return 값이 원하는 값이 아닐 거다! >> 코드 - 초기화 // Set up training data float labels[4] = {1.0, 2.0, 2.0, 1.0}; Mat labelsMat(4, 1, CV_32FC1, labels); float trainingData[4][2] = { {501, 10}, {255, 10}, {501, 255}, {10, 501} }; Mat trainingDataMat(4, 2, CV_32FC1, trainingDat..
ROI method #include #include #include #include #include using namespace std; using namespace cv; #define PATCH_SIZE 64 #define PATCH_WIDTHSTEP 64 #define PATCH_HEIGHTSTEP 64 void main() { Mat img = imread( "test.jpg"); int rows = img.rows-PATCH_WIDTH-2; int cols = img.cols-PATCH_HEIGHT-2; for( int i=0; i