Skip to content

cos_imageCosImageCosImagecos_imagecos_image🔗

Short description🔗

cos_imageCosImageCosImagecos_imagecos_image — Calculate the cosine of an image.

Signature🔗

cos_image( image Image, out image CosImage )void CosImage( const HObject& Image, HObject* CosImage )static void HOperatorSet.CosImage( HObject image, out HObject cosImage )def cos_image( image: HObject ) -> HObject

Herror cos_image( const Hobject Image, Hobject* CosImage )

Herror T_cos_image( const Hobject Image, Hobject* CosImage )

HImage HImage::CosImage( ) const

HImage HImage.CosImage( )

Description🔗

cos_imageCosImage calculates the cosine of an input image Imageimageimage and stores the result in the image CosImagecosImagecos_image of type real. If Imageimageimage is of type direction or cyclic, the angles in Imageimageimage are converted to radians internally. If Imageimageimage is of type real, the angles in Imageimageimage are assumed to be represented in radians. For direction images, the value of 255 will result in a value of 0 in the output image.

Attention🔗

cos_imageCosImage can be executed on OpenCL devices.

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🔗

Imageimageimage (input_object) (multichannel-)image(-array) → object (direction* / cyclic* / real*)HObject (direction* / cyclic* / real*)HImage (direction* / cyclic* / real*)HObject (direction* / cyclic* / real*)Hobject (direction* / cyclic* / real*) *allowed for compute devices

Input image.

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

Output image.

Combinations with other operators🔗

Combinations

See also

sin_imageSinImage, tan_imageTanImage, asin_imageAsinImage, acos_imageAcosImage, atan_imageAtanImage, atan2_imageAtan2Image

Module🔗

Foundation