Skip to content

atan2_imageAtan2ImageAtan2Imageatan2_imageatan2_image🔗

Short description🔗

atan2_imageAtan2ImageAtan2Imageatan2_imageatan2_image — Calculate the arctangent of two images.

Signature🔗

atan2_image( image ImageY, image ImageX, out image ArctanImage )void Atan2Image( const HObject& ImageY, const HObject& ImageX, HObject* ArctanImage )static void HOperatorSet.Atan2Image( HObject imageY, HObject imageX, out HObject arctanImage )def atan2_image( image_y: HObject, image_x: HObject ) -> HObject

Herror atan2_image( const Hobject ImageY, const Hobject ImageX, Hobject* ArctanImage )

Herror T_atan2_image( const Hobject ImageY, const Hobject ImageX, Hobject* ArctanImage )

HImage HImage::Atan2Image( const HImage& ImageX ) const

HImage HImage.Atan2Image( HImage imageX )

Description🔗

atan2_imageAtan2Image calculates the arctangent \(\textrm{ImageY}/\textrm{ImageX}\) of the input images ImageYimageYimage_y and ImageXimageXimage_x, 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 ArctanImagearctanImagearctan_image. The angles in ArctanImagearctanImagearctan_image are represented in radians.

Attention🔗

atan2_imageAtan2Image 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🔗

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🔗

ImageYimageYimage_y (input_object) (multichannel-)image(-array) → object (int1* / int2* / int4* / int8 / real*)HObject (int1* / int2* / int4* / int8 / real*)HImage (int1* / int2* / int4* / int8 / real*)HObject (int1* / int2* / int4* / int8 / real*)Hobject (int1* / int2* / int4* / int8 / real*) *allowed for compute devices

Input image 1.

ImageXimageXimage_x (input_object) (multichannel-)image(-array) → object (int1 / int2 / int4 / int8 / real)HObject (int1 / int2 / int4 / int8 / real)HImage (int1 / int2 / int4 / int8 / real)HObject (int1 / int2 / int4 / int8 / real)Hobject (int1 / int2 / int4 / int8 / real)

Input image 2.

ArctanImagearctanImagearctan_image (output_object) (multichannel-)image(-array) → object (real)HObject (real)HImage (real)HObject (real)Hobject * (real)

Output image.

Combinations with other operators🔗

Combinations

Alternatives

atan_imageAtanImage

See also

acos_imageAcosImage, asin_imageAsinImage, tan_imageTanImage, sin_imageSinImage, cos_imageCosImage

Module🔗

Foundation