1.1 Random Image Generator

1 개요

이미지에 랜덤 값을 생성하는 알고리즘입니다.

2 알고리즘 상세 설명

입력 이미지에 랜덤 값을 생성하여 입력합니다.

알고리즘 동작 결과
입력 입력 이미지 결과 결과 이미지
실행 결과

다중 채널의 경우 각 채널에 대하여 알고리즘이 적용됩니다.

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

4 예제 코드

// 알고리즘 객체 생성합니다.
CRandomImageGenerator randomImageGenerator;

// 이미지를 입력합니다.
CFLImage fliSourceImage;
randomImageGenerator.SetSourceImage(fliSourceImage);

// Random 생성 방식을 설정합니다.
randomImageGenerator.SetRandomFunction(CRandomImageGenerator::ERandomFunction_SHA256);

// 알고리즘 실행
randomImageGenerator.Execute();
// 알고리즘 객체 생성합니다.
CRandomImageGenerator randomImageGenerator = new CRandomImageGenerator();

// 이미지를 입력합니다.
CFLImage fliSourceImage = new CFLImage();
randomImageGenerator.SetSourceImage(ref fliSourceImage);

// Random 생성 방식을 설정합니다.
randomImageGenerator.SetRandomFunction(CRandomImageGenerator.ERandomFunction.SHA256);

// 알고리즘 실행
randomImageGenerator.Execute();
# 알고리즘 객체 생성합니다.
randomImageGenerator = CRandomImageGenerator()

# 이미지를 입력합니다.
fliSourceImage = CFLImage()
randomImageGenerator.SetSourceImage(fliSourceImage)

# Random 생성 방식을 설정합니다.
randomImageGenerator.SetRandomFunction(CRandomImageGenerator.ERandomFunction.SHA256)

# 알고리즘 실행
randomImageGenerator.Execute()