distance_to_origin#

kikuchipy.filters.distance_to_origin(shape: Tuple[int] | Tuple[int, int], origin: None | Tuple[int] | Tuple[int, int] = None) ndarray[source]#

Return the distance to the window origin in pixels.

Parameters:
shape

Window shape.

origin

Window origin. If not given, half the shape is used as origin for each axis.

Returns:
distance

Distance to the window origin in pixels.