본문 바로가기

Programming

(138)
OpenCV How to get min/max value from matrix, 매트릭스 최소값/최대값. Java,c++,cpp,imageprocessing - Core 함수에서 minMaxLoc(Matrix) 를 호출하면 MinMaxLocResult 객체를 반환한다. 반환받은 객체에서 다양한 값들을 뽑아낼 수 있는데, 최소/최대 값을 뽑는 것은.. If you call "minMaxLoc(Matrix)" method in Core class, you could get MinMaxLocResult instance. And we could get various val from it, anyway, the way to get min/max val... 코드.. 코드를 보자!!!! Code.. lemme see code!!!!!! example public double getMax(final Mat inputMat) { return Core.minMaxLoc(in..
OpenCV How to handle single channel image matrix each pixel, add/subtract/multiply/division (1), 이미지 매트릭스 각 픽셀단위 값 조정하기 (영상처리, image processing) (1) OpenCV How to handle single channel image matrix each pixel, add/subtract/multiply/division (1) 이미지 매트릭스 각 픽셀단위 값 조정하기 (영상처리, image processing) (1) Handling each pixel in matrix using put/get in OpenCV 1) / 2) both worked well, but second one did better performance. I changed to 3) using Core in OpenCV, and i'll post later. You can use any operator, but example code is about append. 1/2 둘다 동작하고,..
OpenCV Java complexNumber mat conjugation, 자바 켤레복소수 example code 예제코드 OpenCV Java complexNumber mat conjugation, 자바 켤레복소수 example code 예제코드 Description Method to conjugate complex number matrix (2c) 1 / 2 codes both work well, but 2nd one is faster than 1st one. It's only for 2channel matrix ( real(1c) + imaginary(1c) ) I'mma make new one ( 3 ) using Core for performance, and post later. Java에서 OpenCV 를 이용한 복소수 연산 중에서, 켤레복소수를 구하는 함수이다. 1 / 2 모두 동작은 잘하고 ( 1보다 2가 성능..
Arithmetic of complex number(2) division example code, 복소수 사칙연산(2) 나눗셈 코드, real/imaginary, java, opencv, matrix (2) Arithmetic of complex number(2) division example code, 복소수 사칙연산(2) 나눗셈 코드, real/imaginary, java, opencv, matrix (2) 공식은..Formula.. i^2 = -1, c+di != 0. (a + bi) / (c + di) -> ( (ac + bd) / (c^2 + d^2) ) + ( (bc - ad) / (c^2 + d^2) ) 곱셈은 아래에Division formula is below 2018/11/22 - [Programming/Java] - Arithmetic of complex number(1) multiply example code, 복소수 사칙연산(1) 곱셈 코드, real/imaginary, java, op..
Arithmetic of complex number(1) multiply example code, 복소수 사칙연산(1) 곱셈 코드, real/imaginary, java, opencv, matrix (1) Arithmetic of complex number(1) multiply example code, 복소수 사칙연산(1) 곱셈 코드, real/imaginary, java, opencv, matrix (1) 공식은..Formula.. i^2 = -1, (a + bi) * (c + di) -> (ac - bd) + (ad + bc)i 나눗셈은 아래에Division formula is below 2018/11/26 - [Programming/Java] - Arithmetic of complex number(2) division example code, 복소수 사칙연산(2) 나눗셈 코드, real/imaginary, java, opencv, matrix (2) Lemme see code.. 코드를 보자.. 예제..
Java foreach statement (advanced for iteration statement) 자바 향상된 for문 문법 Java foreach statement (advanced for iteration statement) 자바 향상된 for문 문법 Main function process //Process//1. Make new integer list for sample//2. Iterate using normal for statement (printout)//3. Iterate using foreach statement (printout)//4. Finish //처리과정//1. 확인할 샘플 정수리스트를 만든다.//2. 일반 for문을 사용하여 출력해본다.//3. foreach문을 사용하여 출력해본다.//4. 끝낸다. Example code below public class TestForeach { public stati..
OpenCv, How to create/initialize mat in CV for Java, 매트릭스 생성/초기화, 자바, c++, JavaCv OpenCv, How to create/initialize mat in CV for Java, 매트릭스 생성/초기화, 자바, c++, JavaCv Imma post basic 3 way to initialize Mat in javaCv openCv 자바에서 자주 쓰이는 3가지 생성자 겸 초기화 함수 Example code예제코드 public static void main(String[] args){// load the OpenCV native librarySystem.loadLibrary(Core.NATIVE_LIBRARY_NAME);// create and print on screen a 3x3 identity matrixSystem.out.println("Create a 3x3 identity mat..
Visual Studio console closing problem after running main function 비주얼스튜디오 메인 실행 후 콘솔 꺼지는 문제 Visual Studio console closing after running main function 비주얼스튜디오 메인 실행 후 콘솔 꺼지는 문제 메인함수를 콘솔에서 확인하려고 실행시 (e.g. Hello world)동작이 끝난 후 아무키나 누르세요... 에서 멈추지 않고 바로 콘솔이 꺼지는 경우 When you wanna check main function on console (e.g. hello world)It's not stop after finishing function. Check after changing properties in each project 프로젝트마다 속성 설정을 바꿔주고 확인 Debug (menu) -> Properties (project) -> Linker -> Syste..