Channel L1 Norm

1 개요

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

2 알고리즘 상세 설명

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

N 채널 이미지에서 L1 Norm 을 구하기 위해 각 채널 값의 절댓값 합을 출력합니다.

x1:=n=1Nxn\left\| \textbf{x} \right\|_{1} := \sum_{n=1}^{N} \left| x_{n} \right|

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

3 예제

CChannelL1Norm channelL1Norm;

CFLImage fliSourceImage;
CFLImage fliDestinationImage;

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

channelL1Norm.Execute();
CChannelL1Norm channelL1Norm = new CChannelL1Norm();

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

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

channelL1Norm.Execute();

4 기타 사항

Supported Feature

Supported Format

Overflow Method

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

5 관련 알고리즘

L2 Norm