Given a Policy file describing a CCD's bad pixels, return a vector of BadRegion::Ptr
Definition at line 57 of file defects.py.
58 """Given a Policy file describing a CCD's bad pixels, return a vector of BadRegion::Ptr""" 60 badPixelsPolicy = policy.Policy.createPolicy(policyFile)
63 if badPixelsPolicy.exists(
"Defects"):
64 d = badPixelsPolicy.getArray(
"Defects")
67 width = reg.get(
"width")
73 if reg.exists(
"height"):
74 height = reg.get(
"height")
80 badPixels.append(Defect(bbox))
def policyToBadRegionList(policyFile)
An integer coordinate rectangle.