sarkit.cphd.get_extended_image_area
- get_extended_image_area(cphd_xmltree, *, use_polygon=True)
Return the vertices of the extended image area or
Noneif one is not defined.- Parameters:
- cphd_xmltree
lxml.etree.ElementTree CPHD XML
- use_polygonbool, optional
If
True, the polygon, if present, is considered. IfFalse, the polygon is ignored.
- cphd_xmltree
- Returns:
ndarrayorNoneIf an extended image area is defined, the Vertices of the extended image area in IAC coordinates with IAX, IAY components in meters in the last dimension. If
use_polygon == Trueand a polygon is present, its vertices are returned. Otherwise, the four corners of the rectangle described by X1Y1 and X2Y2 are returned. If an extended image area is not defined,Noneis returned.