Gradient

1 개요

모폴로지 Gradient 연산을 수행하는 알고리즘입니다.

2 알고리즘 상세 설명

Source Image Destination Image
Source Image Destination Image
Source Image Destination Image
Fig. Half Kernel size = 1

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

파라미터 목록(Morphology_Common 항목 참고)

4 예제 코드

커널 설정 방법(Morphology_Common 항목 참고)

CFLImage fliSourceImage;
CFLImage fliDestinationImage;

fliSourceImage.Load(L"ExampleImages/Morphology/Moss.flif");

CMorphologyGradient gradient;
//////////////////////////////////
// 공통 파라미터 설정
//////////////////////////////////
gradient.SetSourceImage(fliSourceImage);
gradient.SetDestinationImage(fliDestinationImage);
gradient.SetKernel(5);

gradient.Execute();
CFLImage fliSourceImage = new CFLImage();
CFLImage fliDestinationImage = new CFLImage();

fliSourceImage.Load("ExampleImages/Morphology/Moss.flif");

CMorphologyGradient gradient = new CMorphologyGradient();
//////////////////////////////////
// 공통 파라미터 설정
//////////////////////////////////
gradient.SetSourceImage(ref fliSourceImage);
gradient.SetDestinationImage(ref fliDestinationImage);
gradient.SetKernel(5);

gradient.Execute();

5 관련 알고리즘

CMedianFilter, CMedianWeightedFilter, CMorphologyClose, CMorphologyDilate, CMorphologyErode, CMorphologyOpen, CMorphologyTopHat