Deriche Edge Detector
1 개요
Deriche Edge 검출 알고리즘을 이용하여 이미지의 윤곽을 찾아내는 알고리즘입니다.
2 알고리즘 상세 설명
Source Image | Destination Image |
---|---|
![]() |
![]() |
Fig. 알고리즘 실행 결과
3 파라미터 설정 및 사용 방법
멤버함수 | 파라미터 | 설 명 | ||
---|---|---|---|---|
SetAlpha | double | f64Alpha | IN | Alpha 값 |
SetThreshold | CMultiVar<double> | flmvMinmax | IN | 최소, 최대 임계값 |
SetConvolutionMode | eMode | EConvolutionMode | IN | 스무딩 적용/미적용 설정 |
Source Image | Alpha 0.5 | Alpha 1 | Alpha 50 |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Fig. Alpha 값에 따른 결과 변화
-
f64Alpha
- Default Value : 1, Recommended Value : [0., 50.]- Alpha(a) 값은 감쇠 계수로, 스무딩 정도에 영향을 미칩니다.
Alpha
증가 시 아래와 같은 변화를 보입니다.- 엣지 검출이 뚜렷해집니다.
- 노이즈에 민감해집니다.
- 스무딩 정도가 감소합니다.
-
flmvMinmax
- Default Value : 20, 25- Edge 검출의 최소, 최대 임계 값입니다.
-
eNoiseReduction
- Default Value : EConvolutionMode_Normal- EConvolutionMode_Normal : 스무딩 미적용
- EConvolutionMode_Smoothing : 스무딩 적용
4 예제 코드
CDericheEdgeDetector dericheEdgeDetector;
CFLImage fliSourceImage;
dericheEdgeDetector.SetSourceImage(fliSourceImage);
CFLImage fliDestinationImage;
dericheEdgeDetector.SetDestinationImage(fliDestinationImage);
dericheEdgeDetector.SetConvolutionMode(CDericheEdgeDetector::EConvolutionMode_Smoothing);
dericheEdgeDetector.SetAlpha(50);
dericheEdgeDetector.Execute();
5 관련 알고리즘
Canny Edge Detector, Deriche Edge Detector, Shen-Castan Edge Detector