Mura

1 개요

Mura 알고리즘은 저조도 이미지에서 명암 불량을 감지하는 알고리즘입니다.
이미지의 특정 영역이 다른 영역보다 밝거나 어두움 영역을 탐지합니다.

2 알고리즘 상세 설명

알고리즘 동작 결과
원본원본 이미지 결과검사 결과
미세한 밝기 변화를 감지합니다.

이미지에서 객체 또는 특징을 검출하는데 사용되며, 결과를 다양한 타입으로 얻을 수 있습니다.

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

4 예제 코드

CMura mura; // 알고리즘 객체 생성

CFLImage fliSourceImage; // 이미지 객체 생성
mura.SetSourceImage(fliSourceImage); // 이미지 객체 입력

mura.SetKernelSizeRate(0.480000); // 커널 사이즈 비율 설정
mura.SetMuraColorType(CMura::EMuraColorType_BlackOnWhite); // 탐색 옵션 설정 (흰색 배경 위 검은색 타입 검출)
mura.EnableAutoThresholdMode(true); // 자동 임계값 설정 모드

mura.Execute(); // 동작

// 결과를 윤곽 도형으로 얻어오기
Foundation::CFLFigureArray flfaContour;
mura.GetResultContours(&flfaContour);
CMura mura = new CMura(); // 알고리즘 객체 생성

CFLImage fliSourceImage = new CFLImage(); // 이미지 객체 생성
mura.SetSourceImage(ref fliSourceImage); // 이미지 객체 입력

mura.SetKernelSizeRate(0.480000); // 커널 사이즈 비율 설정
mura.SetMuraColorType(CMura.EMuraColorType.BlackOnWhite); // 탐색 옵션 설정 (흰색 배경 위 검은색 타입 검출)
mura.EnableAutoThresholdMode(true); // 자동 임계값 설정 모드

mura.Execute(); // 동작

// 결과를 윤곽 도형으로 얻어오기
CFLFigureArray flfaContour = new CFLFigureArray();
mura.GetResultContours(ref flfaContour);
mura = CMura() # 알고리즘 객체 생성

fliSourceImage = CFLImage() # 이미지 객체 생성
mura.SetSourceImage(fliSourceImage) # 이미지 객체 입력

mura.SetKernelSizeRate(0.480000) # 커널 사이즈 비율 설정
mura.SetMuraColorType(CMura.EMuraColorType.BlackOnWhite) # 탐색 옵션 설정 (흰색 배경 위 검은색 타입 검출)
mura.EnableAutoThresholdMode(True) # 자동 임계값 설정 모드

mura.Execute() # 동작

# 결과를 윤곽 도형으로 얻어오기
flfaContour = CFLFigureArray()
mura.GetResultContours(flfaContour)

5 관련 알고리즘

CBlob