Channel Variance

1 개요

원본 이미지 각 채널별 픽셀 값의 분산값을 출력하는 알고리즘입니다.

2 알고리즘 상세 설명

IDst(x,y)=1NnN(ISrc(x,y,n)μ(x,y))2I_{Dst}(x, y) = \frac{1}{N} \sum_{n \in N} \left(I_{Src}(x, y, n) - \mu(x, y)\right)^2

NN 채널 이미지에서 분산값을 계산하여 1채널 이미지로 결과를 출력합니다. 결과 값이 표현 범위를 벗어나는 경우 해당 이미지 포맷의 최댓값을 출력합니다.

Source Value Destination Value
Source Image Destination Image
Fig. Channel Variance 동작 예시

3 예제

CFLImage fliSourceImage;
CFLImage fliDestinationImage;

CChannelVariance channelVariance;
channelVariance.SetSourceImage(fliSourceImage);
channelVariance.SetDestinationImage(fliDestinationImage);

channelVariance.Execute();
CChannelVariance channelVariance = new CChannelVariance();

CFLImage fliSourceImage = new CFLImage();
channelVariance.SetSourceImage(ref fliSourceImage);

CFLImage fliDestinationImage = new CFLImage();
channelVariance.SetDestinationImage(ref fliDestinationImage);

channelVariance.Execute();