voyagerpy.spatial.rotate_img90#
- voyagerpy.spatial.rotate_img90(adata: AnnData, apply: bool = True, k: int | None = None, axis: int | None = None) Dict[str, ndarray]#
Rotate the image by 90 degrees k times.
- Parameters:
adata (AnnData) – The AnnData object to transform.
apply (bool, optional) – Whether to apply the transformations or store them in a temporary object, defaults to True
k (Optional[int], optional) – The number of 90-degree rotations, defaults to None
axis (Optional[int], optional) – Mirror axis - not used, defaults to None
- Returns:
The transformed images
- Return type:
Dict[str, np.ndarray]