Ring Warping

1 개요

Ring Warping은 이미지가 원형이라는 전제를 두고 원형으로 이루어진 이미지를 펼치는 알고리즘입니다.

2 알고리즘 상세 설명

Source Result
Source Result
Fig. 알고리즘 수행 결과

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

Ring Warping 연산 시 보간 방법을 아래와 같이 설정합니다.

Ring Warping 연산 시 극좌표 매핑 방식을 아래와 같이 설정합니다.

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();
CRingWarping ringWarp = new CRingWarping();

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

fliSourceImage.Load(L"ExampleImages/RingWarping/CircleColor.flif");

CRingWarping ringWarp;
//////////////////////////////////
// 공통 파라미터 설정
//////////////////////////////////
ringWarp.SetSourceImage(ref fliSourceImage);
ringWarp.SetDestinationImage(ref fliDestinationImage);
ringWarp.SetInterpolationMethod(EInterpolationMethod.Bicubic);

ringWarp.Execute();