RegionAttr

class odhin.RegionAttr(area, centroid, sy, sx)[source]

Bases: object

Get region attributes from skimage region properties

Attributes Summary

area

bbox_area

centroid

dec

ra

sx

sy

Methods Summary

compute_sky_centroid(wcs)

convertToHR(imHR, imLR)

Convert the bounding box from low resolution (MUSE) to high resolution (HST).

ensureMinimalBbox(min_width, imLabel, ...)

Ensures that region respects a minimal area and contains at least min_sky_pixels sky pixels.

from_skimage(reg)

Attributes Documentation

area
bbox_area
centroid
dec
ra
sx
sy

Methods Documentation

compute_sky_centroid(wcs)[source]
convertToHR(imHR, imLR)[source]

Convert the bounding box from low resolution (MUSE) to high resolution (HST).

ensureMinimalBbox(min_width, imLabel, min_sky_pixels, margin)[source]

Ensures that region respects a minimal area and contains at least min_sky_pixels sky pixels.

classmethod from_skimage(reg)[source]