Channel L2 Norm

1 개요

소스 이미지 각각의 픽셀이 가진 n채널 값을 n차원 벡터로 고려하여, L2 Norm 값을 출력하는 알고리즘 입니다.

2 알고리즘 상세 설명

Source Image Destination Image
Source Image Destination Image
Fig. The L2 Norm Circle

N 채널 이미지에서 L2 Norm 을 구하기 위해 각 채널 값 제곱 합의 제곱근을 출력합니다.

x2:=(n=1Nxn2)1/2\left\| \textbf{x}\right\|_2 := \left(\sum_{n=1}^{N}|x_n|^2\right)^{1/2}

Source Value Destination Value
Source Image Destination Image
Fig. Input and output values of L2 Norm

Destination 타입에 의해 출력 범위가 제한되는 경우, overflow method clamping 방식으로 처리됩니다.
Destination 타입이 Floating 인 경우, 출력 범위에 별도의 제한을 가하지 않습니다. 따라서 1 을 초과하는 값도 표현할 수 있습니다.

3 예제

CChannelL2Norm channelL2Norm;

CFLImage fliSourceImage;
CFLImage fliDestinationImage;

channelL2Norm.SetSourceImage(fliSourceImage);
channelL2Norm.SetDestinationImage(fliDestinationImage);

channelL2Norm.Execute();
CChannelL2Norm channelL2Norm = new CChannelL2Norm();

CFLImage fliSourceImage = new CFLImage();
CFLImage fliDestinationImage = new CFLImage();

channelL2Norm.SetSourceImage(ref fliSourceImage);
channelL2Norm.SetDestinationImage(ref fliDestinationImage);

channelL2Norm.Execute();

4 기타 사항

Supported Feature

Supported Format

Overflow Method

Destination 타입에 의해 출력 범위가 제한되는 경우, overflow method 는 항상 clamping 방식으로 처리됩니다. Destination 타입이 Floating 인 경우, 출력 범위에 별도의 제한을 가하지 않습니다. 따라서 1 을 초과하는 값도 표현할 수 있습니다.

5 관련 알고리즘

L1 Norm