Multi Focus

1 개요

초점이 다른 이미지들을 초점이 통합된 하나의 이미지로 만드는 알고리즘

2 알고리즘 상세 설명

Source Image Destination Image
Source Image Destination Image
Fig. Source and Destination images.

초점 측정치가 높은 페이지의 픽셀을 출력합니다.

pi=argmaxpFM(xp,i)p_{i} = \textnormal{arg} \max_{p}{\textnormal{FM}(\textbf{x}_{p,i})}

페이지 간 Alignment 가 맞지 않는 경우 이를 보정하기 위한 파라미터들이 있으며, 해당 옵션들은 내부에서 Perspective 알고리즘을 호출하는데 사용됩니다.

3 파라미터 설정 및 사용 방법

Page Alignment 보정

지역성 커널 사이즈 설정

4 예제 코드

CMultiFocus mf;

CFLImage fliSourceImage;
CFLImage fliDestinationImage;

mf.SetSourceImage(fliSourceImage);
mf.SetDestinationImage(fliDestinationImage);
mf.SetKernelHalfSize(20);

mf.Execute();
CMultiFocus mf = new CMultiFocus();

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

mf.SetSourceImage(ref fliSourceImage);
mf.SetDestinationImage(ref fliDestinationImage);
mf.SetKernelHalfSize(20);

mf.Execute();

5 기타 사항

Supported Feature

Supported Format

6 관련 알고리즘

Perspective