본문 바로가기

class

(33)
OpenCV Java/C++ FourierFastTransferShift(fftshift) 푸리에 변환 후 위치 재설정 함수 (Matlab - fftshift) - (2) OpenCV Java/C++ FourierFastTransferShift(fftshift) 푸리에 변환 후 위치 재설정 함수 (Matlab - fftshift) - (2) I posted circShift method(below) what i coded few days ago, but it's new code using OpenCV core function a lot. Reference ( Here ) 2018/10/02 - [Programming/Image Processing] - OpenCV Java/C++ FourierFastTransferShift(fftshift) 푸리에 변환 후 위치 재설정 함수 (Matlab - fftshift) - (1) Performance that i coded this..
Aracade Intro #28 alphabeticShift. Algorithm, 알고리즘, Codefights, CodeSignal, 코드파이트, 코드시그널, 예제, example, c++ java c# scalar Aracade Intro #28 alphabeticShift. Algorithm, 알고리즘, Codefights, CodeSignal, 코드파이트, 코드시그널, 예제, example, c++ java c# scalar Q. Given a string, replace each its character by the next one in the English alphabet (z would be replaced by a). (Lowercase alphabet only) 주어진 문자열에서, 각 알파벳을 그 다음 알파벳으로 바꾸어라 ( a->b, c->d ) z 의 경우에는 다시 a 로 돌아간다. (전부 소문자 알파벳) e.g. Input -> inputString = "crazy" Output -> alphab..
Difference between Char and Varchar in Database datatype, 데이터베이스 자료형 Varchar 와 Char 의 차이점 Difference between Char and Varchar in Database datatype, 데이터베이스 자료형 Varchar 와 Char 의 차이점 I got this article from ( here ) 원문보기 ( here ) Difference between Char and Varchar Data Type ‘Char’ is a fixed-length data type which is used to store character string value of fixed length, whereas ‘Varchar’ is a variable-length data type which is used to store variable length alphanumeric data. 'Char' 은 고..
Java Math class - squareRoot, power num example / 자바 - 루트, 제곱 값 예제 Java Math class - squareRoot, power num example / 자바 - 루트, 제곱 값 예제 squareRoot - 제곱근 (루트 씌운 값) power - 거듭제곱 두개 다 Math 클래스에서 바로 호출해서 사용 가능하다. Both can be used in Math class in Java e.g. Math.sqrt(value); Math.pow(value, intNum); Code.. lemme see code..... 코드.. 코드를 보자......... public static void main(String[] args) { int testNum1 = 16;float testNum2 = 625f;double testNum3 = 169;System.out.println("..
Aracade Intro #22 avoidObstacles. Algorithm, 알고리즘, Codefights, CodeSignal, regx, 정규표현식, 코드파이트, 코드시그널, c++ java c# scalar Aracade Intro #22 avoidObstacles. Algorithm, Codefights, CodeSignal, regx, 정규표현식, 코드파이트, 코드시그널, c++ java c# scalar Q. You are given an array of integers representing coordinates of obstacles situated on a straight line. Assume that you are jumping from the point with coordinate 0 to the right. You are allowed only to make jumps of the same length represented by some integer. Find the minimal len..
Matlab - Difference between mean and mean2 in Matlab, Matlab mean/mean2 함수 차이점, opencv java c++ Matlab - Difference between mean and mean2 in Matlab, Matlab mean/mean2 함수 차이점 간략한 차이로, - mean 함수는 행이나 열의 한줄한줄씩 평균을 구해서 각 행/열의 평균을 나열해서 보여준다. - mean2 함수는 mat 자체의 전체 평균을 구해준다. 자세한 용법이나 내용은 ( 여기 ) 공식홈페이지 Simply.. - mean function shows each row's or column's average. - mean2 function shows average of all value in matrix. for detail.. ( here ) OpenCV에서 double 형으로 전체 평균을 구한 값과 달라서 어디서 달라졌는지 확인중.. Imm..
Complex number matrix division, multiply in OpenCv like Matlab (실수부와 복소수허수부 포함된 매트릭스 곱셈, 나눗셈) Complex number matrix division in OpenCv like Matlab (실수부와 복소수허수부 포함된 매트릭스 나눗셈) Real number part + Complex number part You could do the math very easily in Matlab But in OpenCV, you have to use 2 channel Mat and fill in the mat using real and complex number for showing frequency etc.. A code below is kinda dirty, but I compared Matlab code result and JavaCV code result using JUnit. JUnit was so ..
Aracade Intro #18 PalindromeRearranging, Codefights, CodeSignal, 코드파이트, 코드시그널, c++ java c# scalar Aracade Intro #18 PalindromeRearranging, Codefights, CodeSignal, 코드파이트, 코드시그널, c++ java c# scalar Given a string, find out if its characters can be rearranged to form a palindrome. 주어진 문자열이, 회문(중간을 기준으로 대칭)자가 될수 있는지 확인한다. e.g. abcba / 다시합창합시다 / bbbbcddcbbbb / 말해말 Input -> "aabb"Output -> palindromeRearranging(inputString) = true We can rearrange "aabb" to make "abba", which is a palindrome. //Pr..