locan.rois.roi.rasterize#
- locan.rois.roi.rasterize(locdata, support=None, n_regions=(2, 2, 2), loc_properties=())[source]#
Provide regions of interest by dividing the locdata support in equally sized rectangles.
- Parameters:
locdata (
LocData
) – The localization data from which to select localization data.support (
Optional
[tuple
[tuple
[int
],...
]]) – Coordinate intervals that are divided in n_regions subintervals. For None intervals are taken from the bounding box.n_regions (
tuple
[int
,...
]) – Number of regions in each dimension. E.g. n_regions = (2, 2) returns 4 rectangular Roi objects.loc_properties (
Iterable
[str
]) – Localization properties in LocData object on which the region selection will be applied. (Only implemented for coordinates labels)
- Returns:
A sequence of Roi objects
- Return type:
tuple[Roi, …]