- 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(inputMat).maxVal;
}
public double getMin(final Mat inputMat) {
return Core.minMaxLoc(inputMat).minVal;
}
Something else you might like.....
2018/11/26 - [Programming/Java] - Arithmetic of complex number(2) division example code, 복소수 사칙연산(2) 나눗셈 코드, real/imaginary, java, opencv, matrix (2)
2018/11/22 - [Programming/Java] - Arithmetic of complex number(1) multiply example code, 복소수 사칙연산(1) 곱셈 코드, real/imaginary, java, opencv, matrix (1)
2018/11/22 - [Programming/Image Processing] - OpenCv, How to create/initialize mat in CV for Java, 매트릭스 생성/초기화, 자바, c++, JavaCv
2018/11/22 - [Programming/C++] - Visual Studio console closing problem after running main function 비주얼스튜디오 메인 실행 후 콘솔 꺼지는 문제
2018/11/17 - [Programming/C++] - C++ How to convert string to integer in C++, string 에서 int 변환하는 방법, Easiest way to convert string to int.
2018/11/20 - [Algorithm/Code Fights (Code Signal)] - Aracade Intro #32 absoluteValuesSumMinimization. Algorithm, 알고리즘, Codefights, CodeSignal, 코드파이트, 코드시그널, 예제, example, c++ java c# scalar
2018/11/20 - [Algorithm/Code Fights (Code Signal)] - Aracade Intro #31 depositProfit. Algorithm, 알고리즘, Codefights, CodeSignal, 코드파이트, 코드시그널, 예제, example, c++ java c# scalar
2018/11/18 - [Algorithm/Code Fights (Code Signal)] - Aracade Intro #30 circleOfNumbers. Algorithm, 알고리즘, Codefights, CodeSignal, 코드파이트, 코드시그널, 예제, example, c++ java c# scalar