Perspective

1 개요

Perspective 알고리즘은 선형 방정식을 이용하여 이미지를 투영 변환하는 알고리즘 입니다.

2 알고리즘 상세 설명

원본 이미지에서 지정한 투영 영역을 대상 이미지에서 지정한 투영 영역으로 투영변환합니다.

Source Image Destination Image
Source Image Destination Image
Fig. Perspective 동작 실행

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

4 예제 코드

CPerspective perspective;

CFLImage fliSourceImage;
perspective.SetSourceImage(fliSourceImage);

CFLImage fliDestinationImage;
perspective.SetDestinationImage(fliDestinationImage);

CFLQuad<double> flfSourceProjection;
perspective.SetSourceProjection(flfSourceProjection);

CFLRect<double> flfDestinationProjection;
perspective.SetDestinationProjection(flfDestinationProjection);

perspective.Execute();
CPerspective perspective = new CPerspective();

CFLImage fliSourceImage = new CFLImage();
perspective.SetSourceImage(ref fliSourceImage);

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

CFLQuad<double> flfSourceProjection = new CFLQuad<double>();
perspective.SetSourceProjection(flfSourceProjection);

CFLRect<double> flfDestinationProjection = new CFLRect<double>();
perspective.SetDestinationProjection(flfDestinationProjection);

perspective.Execute();