pow_image pow_image PowImage PowImage pow_image (Operator)
Name
pow_image pow_image PowImage PowImage pow_image
— Raise an image to a power.
Signature
def pow_image (image : HObject, exponent : Union[int, float]) -> HObject
Description
pow_image pow_image PowImage PowImage PowImage pow_image
raises the gray values of the input image
Image Image Image Image image image
to the power Exponent Exponent Exponent Exponent exponent exponent
and stores the result
in the image PowImage PowImage PowImage PowImage powImage pow_image
. If Image Image Image Image image image
contains gray
values that would overflow the range of PowImage PowImage PowImage PowImage powImage pow_image
, e.g., >
7131.55017 for Exponent Exponent Exponent Exponent exponent exponent
= 10 , the corresponding
gray values in PowImage PowImage PowImage PowImage powImage pow_image
are set to the largest value
representable in PowImage PowImage PowImage PowImage powImage pow_image
(i.e.,
). If Image Image Image Image image image
contains gray
values that cannot be raised to the power Exponent Exponent Exponent Exponent exponent exponent
, i.e.,
if the gray values are negative and Exponent Exponent Exponent Exponent exponent exponent
is not an
integer, the corresponding gray values in PowImage PowImage PowImage PowImage powImage pow_image
are set
to 0.
Attention
pow_image pow_image PowImage PowImage PowImage pow_image
can be executed on an OpenCL device for byte,
int1, int2, uint2, 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
Image Image Image Image image image
(input_object) (multichannel-)image(-array) →
object HImage HObject HImage Hobject (byte* / int1* / uint2* / int2* / int4* / int8 / real*) *allowed for compute devices
Input image.
PowImage PowImage PowImage PowImage powImage pow_image
(output_object) (multichannel-)image(-array) →
object HImage HObject HImage Hobject * (real)
Output image.
Exponent Exponent Exponent Exponent exponent exponent
(input_control) number →
HTuple Union[int, float] HTuple Htuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Power to which the gray values are raised.
Default:
2
Suggested values:
0.25, 0.5, 2, 3, 4
Alternatives
gamma_image gamma_image GammaImage GammaImage GammaImage gamma_image
See also
sqrt_image sqrt_image SqrtImage SqrtImage SqrtImage sqrt_image
,
exp_image exp_image ExpImage ExpImage ExpImage exp_image
,
log_image log_image LogImage LogImage LogImage log_image
Module
Foundation