Correlation Coefficient

1 개요

이미지 간 상관계수를 구하는 알고리즘 입니다.

2 알고리즘 상세 설명

Correlation Coefficient 알고리즘은 두 이미지 간 상관 계수를 구하는 알고리즘입니다.
멀티 채널일 경우 각 채널 간 상관 계수를 구할 수 있습니다.

Source Image Operand Image Result
Source Image Operand Image Result
Fig. Correlation Coefficient 동작 예시

위의 예시는 Source Image 에 Invert Intensity 를 적용한 Operand Image 를 설정하여 실행한 예시입니다.

3 예제 코드

CCorrelationCoefficient correlationCoefficient;

CFLImage fliSourceImage;
CFLImage fliOperandImage;
correlationCoefficient.SetSourceImage(fliSourceImage);
correlationCoefficient.SetOperandImage(fliOperandImage);

correlationCoefficient.Execute();

CMultiVar<double> mvResult;

correlationCoefficient.GetResult(mvResult);

CCorrelationCoefficient correlationCoefficient = new CCorrelationCoefficient();

CFLImage fliSourceImage = new CFLImage();
CFLImage fliOperandImage = new CFLImage();
imageStatistics.SetSourceImage(ref fliSourceImage);
imageStatistics.SetOperandImage(ref fliOperandImage);

correlationCoefficient.Execute();

CMultiVar<double> mvResult = new CMultiVar<double>();

correlationCoefficient.GetResult(ref mvResult);

correlationCoefficient = CCorrelationCoefficient()

fliSourceImage = CFLImage()
fliOperandImage = CFLImage()
imageStatistics.SetSourceImage(fliSourceImage)
imageStatistics.SetOperandImage(fliOperandImage)

correlationCoefficient.Execute()

mvResult = CMultiVar[Double]()

correlationCoefficient.GetResult(mvResult)