spatialdata.bounding_box_query#
- spatialdata.bounding_box_query(element, axes, min_coordinate, max_coordinate, target_coordinate_system, **kwargs)#
Perform a bounding box query on the SpatialData object.
- Parameters:
axes (
tuple
[str
,...
]) – The axesmin_coordinate
andmax_coordinate
refer to.min_coordinate (
list
[Union
[int
,float
]] |ndarray
[Any
,dtype
[float64
]]) – The minimum coordinates of the bounding box.max_coordinate (
list
[Union
[int
,float
]] |ndarray
[Any
,dtype
[float64
]]) – The maximum coordinates of the bounding box.target_coordinate_system (
str
) – The coordinate system the bounding box is defined in.filter_table – If
True
, the table is filtered to only contain rows that are annotating regions contained within the bounding box.
- Return type:
Union
[SpatialImage
,MultiscaleSpatialImage
,GeoDataFrame
,DataFrame
,SpatialData
,None
]- Returns:
: The SpatialData object containing the requested data. Elements with no valid data are omitted.