Reduce Dimension HarMean Multi Page To 2D
1 개요
원본 다중 페이지 이미지를 2차원 이미지로 축소하는 알고리즘입니다. 축소된 차원의 조화 평균을 결과로 출력합니다.
2 알고리즘 상세 설명
IDst(x,y)=∑n=0Pages−1ISrcn(x,y)1Pages
- IDst(x,y) : 결과 이미지의 (x,y)위치 픽셀값
- ISrcn(x,y) : 원본 n번째 페이지 이미지의 (x,y)위치 픽셀값
다중 페이지 이미지의 (x, y)위치의 조화 평균을 기반으로 축소시킵니다.
| Source Image |
Destination Image |
 |
 |
Fig. Reduce Dimension HarMean Multi Page To 2D 동작 예시
3 파라미터 설정 및 사용 방법
| 멤버함수 |
파라미터 |
설 명 |
| SetOverflowMethod |
EOverflowMethod |
eOverflowMethod |
IN |
오버플로우 처리 방식을 설정합니다. |
| SetZeroHandlingMode |
EZeroHandlingMode |
eZeroHandlingMode |
IN |
0값 처리 방식을 설정합니다. |
| SetZeroHandlingConstantValue |
double |
f64ZeroHandlingConstantValue |
IN |
Constant 모드일 때 0 대체 값을 설정합니다. |
4 예제
CFLImage fliSourceImage;
CFLImage fliDestinationImage;
CReduceDimensionHarMeanMultiPageTo2D reduceDimensionHarMeanMultiPageTo2D;
reduceDimensionHarMeanMultiPageTo2D.SetSourceImage(fliSourceImage);
reduceDimensionHarMeanMultiPageTo2D.SetDestinationImage(fliDestinationImage);
reduceDimensionHarMeanMultiPageTo2D.SetOverflowMethod(EOverflowMethod_Clamping);
reduceDimensionHarMeanMultiPageTo2D.SetZeroHandlingMode(EZeroHandlingMode_Constant);
reduceDimensionHarMeanMultiPageTo2D.SetZeroHandlingConstantValue(1.);
reduceDimensionHarMeanMultiPageTo2D.Execute();
CReduceDimensionHarMeanMultiPageTo2D reduceDimensionHarMeanMultiPageTo2D = new CReduceDimensionHarMeanMultiPageTo2D();
CFLImage fliSourceImage = new CFLImage();
reduceDimensionHarMeanMultiPageTo2D.SetSourceImage(ref fliSourceImage);
CFLImage fliDestinationImage = new CFLImage();
reduceDimensionHarMeanMultiPageTo2D.SetDestinationImage(ref fliDestinationImage);
reduceDimensionHarMeanMultiPageTo2D.SetOverflowMethod(EOverflowMethod.Clamping);
reduceDimensionHarMeanMultiPageTo2D.SetZeroHandlingMode(EZeroHandlingMode.Constant);
reduceDimensionHarMeanMultiPageTo2D.SetZeroHandlingConstantValue(1.);
reduceDimensionHarMeanMultiPageTo2D.Execute();
reduceDimensionHarMeanMultiPageTo2D = CReduceDimensionHarMeanMultiPageTo2D()
fliSourceImage = CFLImage()
reduceDimensionHarMeanMultiPageTo2D.SetSourceImage(fliSourceImage)
fliDestinationImage = CFLImage()
reduceDimensionHarMeanMultiPageTo2D.SetDestinationImage(fliDestinationImage)
reduceDimensionHarMeanMultiPageTo2D.SetOverflowMethod(EOverflowMethod.Clamping)
reduceDimensionHarMeanMultiPageTo2D.SetZeroHandlingMode(EZeroHandlingMode.Constant)
reduceDimensionHarMeanMultiPageTo2D.SetZeroHandlingConstantValue(1.)
reduceDimensionHarMeanMultiPageTo2D.Execute()