Demoire
1 개요
Moire 패턴을 제거하는 알고리즘입니다.
2 알고리즘 상세 설명
이미지에 존재하는 Moire 패턴을 제거하는 알고리즘입니다.
Moire 패턴의 경우 FFT 를 사용하여 주파수 도메인에서 관찰 시 특정 Peak 지점이 높게 나타나는 현상이 발생하는데, 해당 원리를 이용하여 값이 높은 Peak 지점을 자동 탐색하여 처리하는 알고리즘입니다.
Intensity 를 조절하여 Peak 지점 주변으로 처리할 영역 크기와 강도를 조절할 수 있습니다. Intensity 가 클수록 손실 데이터 양이 증가합니다.
Source Image | Result Image |
---|---|
![]() |
![]() |
Fig. Demoire 동작 실행
3 파라미터 설정 및 사용 방법
멤버함수 | 파라미터 | 설 명 | ||
---|---|---|---|---|
SetIntensity | double | f64Intensity | IN | 처리 강도를 설정합니다. (1 <= Intensity <= 9) |
4 예제 코드
CDemoire Demoire;
CFLImage fliSourceImage;
CFLImage fliDestinationImage;
Demoire.SetSourceImage(fliSourceImage);
Demoire.SetDestinationImage(fliDestinationImage);
Demoire.SetIntensity(9);
Demoire.Execute();