Perspective
1 개요
Perspective 알고리즘은 선형 방정식을 이용하여 이미지를 투영 변환하는 알고리즘 입니다.
2 알고리즘 상세 설명
원본 이미지에서 지정한 투영 영역을 대상 이미지에서 지정한 투영 영역으로 투영변환합니다.
| Source Image | Destination Image |
|---|---|
![]() |
![]() |
Fig. Perspective 동작 실행
3 파라미터 설정 및 사용 방법
- 세팅 함수
SetSourceProjection- Source 이미지에서 투영 영역을 설정합니다.
SetDestinationProjection- Destination 이미지에서 투영 영역을 설정합니다.
SetInterpolationMethod- 보간법을 설정합니다.
EInterpolationMethod_Bilinear쌍선형 보간법EInterpolationMethod_NearestNeighbor최근접 보간법EInterpolationMethod_Bicubic쌍입방 보간법EInterpolationMethod_LanczosLanczos 보간법
SetAccuracy- 연산의 정밀도를 설정합니다.
EFLoatingPointAccuracy_Bit3232 bitEFLoatingPointAccuracy_Bit6464 bit
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();

