microglia_analyzer.tiles.patch module

class microglia_analyzer.tiles.patch.Patch2D(patch_size, overlap, indices, shape, grid)[source]

Bases: object

as_napari_rectangle()[source]

Returns this bounding-box as a Napari rectangle, which is a numpy array: [

[yMin, xMin], [yMin, xMax], [xMax, yMin], [xMax, yMax]

]