Bicubic Region Interpolation

1 개요

Bicubic Region Interpolation 알고리즘은 손상된 데이터를 유효한 주변 값을 통해 보정하여 보정하는 알고리즘입니다.

2 알고리즘 상세 설명

사용자가 입력한 영역에 대해서 주변 픽셀 값을 사용하여 영역에 대해 보정을 진행합니다.

알고리즘 동작 결과
원본원본 이미지 결과결과
보정 결과

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

4 예제 코드

// 알고리즘 객체를 생성합니다.
CBicubicRegionInterpolation BicubicRegionInterpolation;

CFLImage fliSourceImage;
fliSourceImage.Load(L"C:/Sky_Damaged.flif");
BicubicRegionInterpolation.SetSourceImage(fliSourceImage);

CFLImage fliDestinationImage;
BicubicRegionInterpolation.SetDestinationImage(fliDestinationImage);


// 보정할 영역을 설정합니다.
CFLRect<int32_t> flfInterpolationROI(164, 234, 339, 390, 0.000000);
BicubicRegionInterpolation.SetInterpolationROI(flfInterpolationROI);
BicubicRegionInterpolation.SetDivisionDepth(3); // 세분화 정도를 설정합니다.

BicubicRegionInterpolation.Execute();
// 알고리즘 객체를 생성합니다.
CBicubicRegionInterpolation BicubicRegionInterpolation = new CBicubicRegionInterpolation();

CFLImage fliSourceImage = new CFLImage();
fliSourceImage.Load("C:/Sky_Damaged.flif");
BicubicRegionInterpolation.SetSourceImage(ref fliSourceImage);

CFLImage fliDestinationImage = new CFLImage();
BicubicRegionInterpolation.SetDestinationImage(ref fliDestinationImage);


// 보정할 영역을 설정합니다.
CFLRect<int32_t> flfInterpolationROI = new CFLRect<int32_t>(164, 234, 339, 390, 0.000000);
BicubicRegionInterpolation.SetInterpolationROI(flfInterpolationROI);
BicubicRegionInterpolation.SetDivisionDepth(3); // 세분화 정도를 설정합니다.

BicubicRegionInterpolation.Execute();