Help on function equal_constant in module pyclesperanto_prototype._tier1._equal_constant:
equal_constant(source: Union[numpy.ndarray, pyclesperanto_prototype._tier0._pycl.OCLArray, pyopencl._cl.Image, pyclesperanto_prototype._tier0._pycl._OCLImage], destination: Union[numpy.ndarray, pyclesperanto_prototype._tier0._pycl.OCLArray, pyopencl._cl.Image, pyclesperanto_prototype._tier0._pycl._OCLImage] = None, constant: float = 0)
Determines if an image A and a constant b are equal.
<pre>f(a, b) = 1 if a == b; 0 otherwise.</pre>
Parameters
----------
source : Image
The image where every pixel is compared to the constant.
destination : Image
The resulting binary image where pixels will be 1 only if source1
and source2 equal in the given pixel.
constant : float
The constant where every pixel is compared to.
Returns
-------
destination
Examples
--------
>>> import pyclesperanto_prototype as cle
>>> cle.equal_constant(source, destination, constant)
References
----------
.. [1] https://clij.github.io/clij2-docs/reference_equalConstant