Atan2
1 개요
이미지를 스칼라 또는 다른 이미지와 Atan2 연산을 수행하는 알고리즘입니다.
2 알고리즘 상세 설명
이미지를 스칼라 또는 다른 이미지와 각 Channel 마다 Atan2 연산을 수행합니다.
Source Value | Operand Value | Destination Value |
---|---|---|
![]() |
![]() |
![]() |
Fig. Source, Operand and Destination values of Atan2
3 예제 코드
Scalar 연산
COperationAtan2 operationAtan2;
CFLImage fliSourceImage;
CFLImage fliDestinationImage;
CMultiVar<double> mulVarScalar;
operationAtan2.SetSourceImage(fliSourceImage);
operationAtan2.SetDestinationImage(fliDestinationImage);
operationAtan2.SetOperationSource(EOperationSource_Scalar);
operationAtan2.SetScalarValue(mulVarScalar);
operationAtan2.Execute();
Image 연산
COperationAtan2 operationAtan2;
CFLImage fliSourceImage;
CFLImage fliOperandImage;
CFLImage fliDestinationImage;
operationAtan2.SetSourceImage(fliSourceImage);
operationAtan2.SetOperandImage(fliOperandImage);
operationAtan2.SetDestinationImage(fliDestinationImage);
operationAtan2.SetOperationSource(EOperationSource_Image);
operationAtan2.Execute();