Ring Warping
1 개요
Ring Warping은 이미지가 원형이라는 전제를 두고 원형으로 이루어진 이미지를 펼치는 알고리즘입니다.
2 알고리즘 상세 설명
Source | Result |
---|---|
![]() |
![]() |
Fig. 알고리즘 수행 결과
3 파라미터 설정 및 사용 방법
Ring Warping 연산 시 보간 방법을 아래와 같이 설정합니다.
SetInterpolationMethod(EInterpolationMethod eMethod = EInterpolationMethod_Bilinear)
EInterpolationMethod_Bilinear
: Bilinear 식을 사용하여 보간 연산을 수행합니다.EInterpolationMethod_Bicubic
: Bicubic 식을 사용하여 보간 연산을 수행합니다.EInterpolationMethod_Lanczos
: Lanczos 식을 사용하여 보간 연산을 수행합니다.EInterpolationMethod_NearestNeighbor
: 가장 가까운 곳의 픽셀로 보간 연산을 수행합니다.
Ring Warping 연산 시 극좌표 매핑 방식을 아래와 같이 설정합니다.
EnableSemiLog(Bool bSemiLog = false)
- 극좌표의 매핑을 SemiLog 를 사용할 것인지 설정합니다
4 예제 코드
CRingWarping ringWarp;
CFLImage fliSourceImage;
CFLImage fliDestinationImage;
fliSourceImage.Load(L"ExampleImages/RingWarping/CircleColor.flif");
CRingWarping ringWarp;
//////////////////////////////////
// 공통 파라미터 설정
//////////////////////////////////
ringWarp.SetSourceImage(fliSourceImage);
ringWarp.SetDestinationImage(fliDestinationImage);
ringWarp.SetInterpolationMethod(EInterpolationMethod_Bicubic);
ringWarp.Execute();