{ } Raw JSON

bundles / skimage latest / skimage / filters / rank / generic / _apply_scalar_per_pixel

function

skimage.filters.rank.generic:_apply_scalar_per_pixel

source: /dev/scikit-image/src/skimage/filters/rank/generic.py :306

Signature

def   _apply_scalar_per_pixel ( func image footprint out mask shift_x shift_y out_dtype = None )

Summary

Process the specific cython function to the image.

Parameters

func : function

Cython function to apply.

image : 2-D array (integer or float)

Input image.

footprint : 2-D array (integer or float)

The neighborhood expressed as a 2-D array of 1's and 0's.

out : 2-D array (integer or float)

If None, a new array is allocated.

mask : ndarray (integer or float)

Mask array that defines (>0) area of the image included in the local neighborhood. If None, the complete image is used (default).

shift_x, shift_y : int

Offset added to the footprint center point. Shift is bounded to the footprint sizes (center must be inside the given footprint).

out_dtype : dtype-like, optional

Desired output data type. Default is None, which means we cast output in input dtype.

Aliases

  • skimage.filters.rank.generic._apply_scalar_per_pixel