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();
COperationAtan2 operationAtan2 = new COperationAtan2();
CFLImage fliSourceImage = new CFLImage();
CFLImage fliDestinationImage = new CFLImage();
CMultiVar<double> mulVarScalar = new CMultiVar<double>();
operationAtan2.SetSourceImage(ref fliSourceImage);
operationAtan2.SetDestinationImage(ref fliDestinationImage);
operationAtan2.SetOperationSource(EOperationSource.Scalar);
operationAtan2.SetScalarValue(mulVarScalar);
operationAtan2.Execute();
operationAtan2 = COperationAtan2()
fliSourceImage = CFLImage()
fliDestinationImage = CFLImage()
mulVarScalar = CMultiVar[Double]()
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();
COperationAtan2 operationAtan2 = new COperationAtan2();
CFLImage fliSourceImage = new CFLImage();
CFLImage fliOperandImage = new CFLImage();
CFLImage fliDestinationImage = new CFLImage();
operationAtan2.SetSourceImage(ref fliSourceImage);
operationAtan2.SetOperandImage(ref fliOperandImage);
operationAtan2.SetDestinationImage(ref fliDestinationImage);
operationAtan2.SetOperationSource(EOperationSource.Image);
operationAtan2.Execute();
operationAtan2 = COperationAtan2()
fliSourceImage = CFLImage()
fliOperandImage = CFLImage()
fliDestinationImage = CFLImage()
operationAtan2.SetSourceImage(fliSourceImage)
operationAtan2.SetOperandImage(fliOperandImage)
operationAtan2.SetDestinationImage(fliDestinationImage)
operationAtan2.SetOperationSource(EOperationSource.Image)
operationAtan2.Execute()