Channel Mean
1 개요
원본 이미지 각 채널별 픽셀 값의 평균을 출력하는 알고리즘입니다.
2 알고리즘 상세 설명
IDst(x,y)=N1n∈N∑ISrc(x,y,n)
- N : 채널 수
- IDst(x,y) : 결과 이미지의 (x,y)위치 픽셀값
- ISrc(x,y,n) : 원본 이미지의 (x,y)위치 픽셀의 n번째 채널 값
N 채널 이미지에서 평균을 계산하여 1채널 이미지로 결과를 출력합니다.
Source Value |
Destination Value |
 |
 |
Fig. Channel Mean 동작 예시
3 예제
CFLImage fliSourceImage;
CFLImage fliDestinationImage;
CChannelMean channelMean;
channelMean.SetSourceImage(fliSourceImage);
channelMean.SetDestinationImage(fliDestinationImage);
channelMean.Execute();
CFLImage fliSourceImage = new CFLImage();
CFLImage fliDestinationImage = new CFLImage();
CChannelMean channelMean = new CChannelMean();
channelMean.SetSourceImage(ref fliSourceImage);
channelMean.SetDestinationImage(ref fliDestinationImage);
channelMean.Execute();
fliSourceImage = CFLImage()
fliDestinationImage = CFLImage()
channelMean = ChannelMean()
channelMean.SetSourceImage(fliSourceImage)
channelMean.SetDestinationImage(fliDestinationImage)
channelMean.Execute()