atan2_imageatan2_imageAtan2ImageAtan2Image (Operator)
Name
atan2_imageatan2_imageAtan2ImageAtan2Image
— Calculate the arctangent of two images.
Signature
Description
atan2_imageatan2_imageAtan2ImageAtan2ImageAtan2Image
calculates the arctangent
ImageYImageYImageYImageYimageY
/ImageXImageXImageXImageXimageX
of the input images
ImageYImageYImageYImageYimageY
and ImageXImageXImageXImageXimageX
, using the signs of the gray
values of the two images to determine the quadrant of the result,
and stores the result in the image ArctanImageArctanImageArctanImageArctanImagearctanImage
. The angles
in ArctanImageArctanImageArctanImageArctanImagearctanImage
are represented in radians.
Attention
atan2_imageatan2_imageAtan2ImageAtan2ImageAtan2Image
can be executed on an OpenCL device for int1,
int2, int4, and real images. Note that the results of the OpenCL
code may vary from the results produced by the CPU.
Execution Information
- Supports OpenCL compute devices.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Automatically parallelized on tuple level.
- Automatically parallelized on channel level.
- Automatically parallelized on domain level.
Parameters
ImageYImageYImageYImageYimageY
(input_object) (multichannel-)image(-array) →
objectHImageHImageHobject (int1* / int2* / int4* / int8 / real*) *allowed for compute devices
Input image 1.
ImageXImageXImageXImageXimageX
(input_object) (multichannel-)image(-array) →
objectHImageHImageHobject (int1 / int2 / int4 / int8 / real)
Input image 2.
ArctanImageArctanImageArctanImageArctanImagearctanImage
(output_object) (multichannel-)image(-array) →
objectHImageHImageHobject * (real)
Output image.
Alternatives
atan_imageatan_imageAtanImageAtanImageAtanImage
See also
acos_imageacos_imageAcosImageAcosImageAcosImage
,
asin_imageasin_imageAsinImageAsinImageAsinImage
,
tan_imagetan_imageTanImageTanImageTanImage
,
sin_imagesin_imageSinImageSinImageSinImage
,
cos_imagecos_imageCosImageCosImageCosImage
Module
Foundation