Utils
- class pado.images.utils.Point(x, y, mpp=None)[source]
a 2D point that can optionally come with a MPP for scaling
- class pado.images.utils.Size(x, y, mpp=None)[source]
a general 2D size that can optionally come with a MPP for scaling
- class pado.images.utils.MPP(x, y, rtol=0.0, atol=0.0)[source]
micrometer per pixel scaling common in pathological images
- class pado.images.utils.Bounds(x0, y0, x1, y1, mpp=None)[source]
a class for rectangular bounds
Notes
- p0 —- +
-
—- p1
p0: Point(x0, y0) p1: Point(x1, y1)
with: p0.x < p1.x and p0.y < p1.y
- class pado.images.utils.Geometry(geometry, mpp=None)[source]
A general class for dealing with BaseGeometries at various MPPs.
- pado.images.utils.match_mpp(origin, *targets, remove_tolerance=True, raise_no_match=False)[source]
returns an MPP from potential matches or the original
- Return type: