Hypotenuse
1 개요
스칼라 또는 이미지와의 Hypotenuse 연산을 수행하는 알고리즘입니다.
2 알고리즘 상세 설명
Source | Scalar Value : (15) |
---|---|
Result | |
![]() |
![]() |
Fig. Scalar 값에 따른 결과 비교
Source | ||
---|---|---|
Operand | Result | |
![]() |
![]() |
![]() |
Fig. Image 값에 따른 결과 비교
3 파라미터 설정 및 사용 방법
멤버함수 | 파라미터 | 설 명 | ||
---|---|---|---|---|
SetScalarValue | CMultiVar<double> | mvScalarValue | IN | Scalar 값을 설정합니다. |
Source 픽셀의 각 채널에 대해 Scalar 연산을 수행 할 Scalar 값을 설정합니다.
4 예제 코드
Scalar 연산
COperationHypotenuse operationHypotenuse;
CFLImage fliSourceImage;
CFLImage fliDestinationImage;
CMultiVar<double> mvScalarValue;
operationHypotenuse.SetSourceImage(fliSourceImage);
operationHypotenuse.SetDestinationImage(fliDestinationImage);
operationHypotenuse.SetOperationSource(EOperationSource_Scalar);
operationHypotenuse.SetScalarValue(mvScalarValue);
operationHypotenuse.Execute();
Image 연산
COperationHypotenuse operationHypotenuse;
CFLImage fliSourceImage;
CFLImage fliOperandImage;
CFLImage fliDestinationImage;
operationHypotenuse.SetSourceImage(fliSourceImage);
operationHypotenuse.SetOperandImage(fliOperandImage);
operationHypotenuse.SetDestinationImage(fliDestinationImage);
operationHypotenuse.SetOperationSource(EOperationSource_Image);
operationHypotenuse.Execute();