Stitching
1 개요
서로 연관성이 있는 Multi Image를 연결하는 알고리즘입니다.
2 알고리즘 상세 설명
Multi Image | Result |
---|---|
![]() |
![]() |
Fig. Stitching 결과(Flatten)
3 파라미터 설정 및 사용 방법
-
SetNFeature(uint64_t u64NFeature)
- 특징점 최대 개수를 설정합니다.
- 적게 설정 할 수록 정확도가 떨어지며, 성능이 향상됩니다.
- Default Value : 1000
- Recommended Value : 500, 1000, 1500, 2000
-
SetProjectionMethod(EProjectionMethod eMethod)
- 결과 이미지를 투영할 좌표계 타입을 설정합니다.
- Default Value : EProjectionMethod_Spherical
- EProjectionMethod_Flatten : Flatten 타입
- EProjectionMethod_Spherical : Spherical 타입
- EProjectionMethod_Cylindrical : Cylindrical 타입
촬영 된 이미지가 원통 좌표계를 따르며 이미지 번호가 일정하게 증가 혹은 감소하는 Multi Image의 경우 아래 함수를 사용할 수 있습니다.
SetProjectionMethod(EProjectionMethod_Cylindrical)
설정 후 동작해야합니다.
-
SetFocalLength(float f32FocalLength)
- 카메라의 초점 거리를 설정합니다. ( 단위 : m )
-
EnableReverseDirection(bool bDirection)
- bDirection
- Default Value : false
- false : 이미지 인덱스 오름차순
- true : 이미지 인덱스 내림차순
4 예제 코드
CFLImage fliSourceImage;
CFLImage fliDestinationImage;
fliSourceImage.Load(L"ExampleImages/Stitching/Mountain.flif");
CStitching stitching;
stitching.SetSourceImage(fliSourceImage);
stitching.SetDestinationImage(fliDestinationImage);
stitching.SetProjectionMethod(CStitching::EProjectionMethod_Spherical);
stitching.Execute();