distance_to_origin#

kikuchipy.filters.distance_to_origin(shape: tuple[int] | tuple[int, int], origin: tuple[int] | tuple[int, int] | None = 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.