22 __all__ = [
"writeFootprintAsDefects"]
24 from .
import footprintToBBoxList
29 Write foot as a set of Defects to fd
31 Given a detection footprint, convert it to a BBoxList and write the output to the file object fd.
36 foot : `lsst.afw.detection.Footprint`
40 lsst.afw.detection.footprintToBBoxList
47 x0: %4d # Starting column
48 width: %4d # number of columns
49 y0: %4d # Starting row
50 height: %4d # number of rows
51 }""" % (bbox.getMinX(), bbox.getWidth(), bbox.getMinY(), bbox.getHeight()), file=fd)
def writeFootprintAsDefects(fd, foot)
std::vector< lsst::geom::Box2I > footprintToBBoxList(Footprint const &footprint)
Return a list of BBoxs, whose union contains exactly the pixels in the footprint, neither more nor le...