lsst.afw ge15bfa9975+e3573e3735
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lsst.afw.geom._spanSetContinued.SpanSet Class Reference

Public Member Functions

def asArray (self, shape=None, xy0=None)
 

Detailed Description

Definition at line 28 of file _spanSetContinued.py.

Member Function Documentation

◆ asArray()

def lsst.afw.geom._spanSetContinued.SpanSet.asArray (   self,
  shape = None,
  xy0 = None 
)
Convert a SpanSet into a numpy boolean array

Parameters
----------
shape : `tuple` of `int`
    The final shape of the output array.
    If `shape` is `None` then the extent of the bounding box is used.
xy0 : `~lsst.geom.Box2I` or `tuple` of `int`
    The lower-left corner of the array that will contain the spans.
    If `xy0` is `None` then the origin of the bounding box is used.

Returns
-------
result : `numpy.ndarray`
    The array with pixels contained in `spans` marked as `True`.

Definition at line 29 of file _spanSetContinued.py.


The documentation for this class was generated from the following file: