SpanSet¶
- class lsst.afw.geom.SpanSet¶
Bases:
pybind11_object
Methods Summary
asArray
([shape, xy0])Convert a SpanSet into a numpy boolean array
clearMask
(self, arg0, arg1)clippedTo
(self, arg0)computeCentroid
(self)computeShape
(self)contains
(*args, **kwargs)Overloaded function.
copyImage
(*args, **kwargs)Overloaded function.
copyMaskedImage
(*args, **kwargs)Overloaded function.
dilated
(*args, **kwargs)Overloaded function.
eroded
(*args, **kwargs)Overloaded function.
findEdgePixels
(self)flatten
(*args, **kwargs)Overloaded function.
fromMask
(*args, **kwargs)Overloaded function.
fromShape
(*args, **kwargs)Overloaded function.
getArea
(self)getBBox
(self)indices
(self)intersect
(*args, **kwargs)Overloaded function.
intersectNot
(*args, **kwargs)Overloaded function.
isContiguous
(self)isPersistable
(self)overlaps
(self, arg0)readFits
(*args, **kwargs)Overloaded function.
setImage
(*args, **kwargs)Overloaded function.
setMask
(self, arg0, arg1)shiftedBy
(*args, **kwargs)Overloaded function.
split
(self)transformedBy
(*args, **kwargs)Overloaded function.
unflatten
(*args, **kwargs)Overloaded function.
union
(*args, **kwargs)Overloaded function.
writeFits
(*args, **kwargs)Overloaded function.
Methods Documentation
- asArray(shape=None, xy0=None)¶
Convert a SpanSet into a numpy boolean array
- Parameters:
- Returns:
- result
numpy.ndarray
The array with pixels contained in
spans
marked asTrue
.
- result
- clippedTo(self: lsst.afw.geom.SpanSet, arg0: lsst.geom.Box2I) lsst.afw.geom.SpanSet ¶
- computeCentroid(self: lsst.afw.geom.SpanSet) lsst.geom.Point2D ¶
- computeShape(self: lsst.afw.geom.SpanSet) lsst.afw.geom.ellipses.Quadrupole ¶
- contains(*args, **kwargs)¶
Overloaded function.
contains(self: lsst.afw.geom.SpanSet, arg0: lsst.afw.geom.SpanSet) -> bool
contains(self: lsst.afw.geom.SpanSet, arg0: lsst.geom.Point2I) -> bool
- copyImage(*args, **kwargs)¶
Overloaded function.
copyImage(self: lsst.afw.geom.SpanSet, arg0: lsst::afw::image::Image<unsigned short>, arg1: lsst::afw::image::Image<unsigned short>) -> None
copyImage(self: lsst.afw.geom.SpanSet, arg0: lsst::afw::image::Image<unsigned long>, arg1: lsst::afw::image::Image<unsigned long>) -> None
copyImage(self: lsst.afw.geom.SpanSet, arg0: lsst::afw::image::Image<int>, arg1: lsst::afw::image::Image<int>) -> None
copyImage(self: lsst.afw.geom.SpanSet, arg0: lsst::afw::image::Image<float>, arg1: lsst::afw::image::Image<float>) -> None
copyImage(self: lsst.afw.geom.SpanSet, arg0: lsst::afw::image::Image<double>, arg1: lsst::afw::image::Image<double>) -> None
- copyMaskedImage(*args, **kwargs)¶
Overloaded function.
copyMaskedImage(self: lsst.afw.geom.SpanSet, arg0: lsst::afw::image::MaskedImage<unsigned short, int, float>, arg1: lsst::afw::image::MaskedImage<unsigned short, int, float>) -> None
copyMaskedImage(self: lsst.afw.geom.SpanSet, arg0: lsst::afw::image::MaskedImage<unsigned long, int, float>, arg1: lsst::afw::image::MaskedImage<unsigned long, int, float>) -> None
copyMaskedImage(self: lsst.afw.geom.SpanSet, arg0: lsst::afw::image::MaskedImage<int, int, float>, arg1: lsst::afw::image::MaskedImage<int, int, float>) -> None
copyMaskedImage(self: lsst.afw.geom.SpanSet, arg0: lsst::afw::image::MaskedImage<float, int, float>, arg1: lsst::afw::image::MaskedImage<float, int, float>) -> None
copyMaskedImage(self: lsst.afw.geom.SpanSet, arg0: lsst::afw::image::MaskedImage<double, int, float>, arg1: lsst::afw::image::MaskedImage<double, int, float>) -> None
- dilated(*args, **kwargs)¶
Overloaded function.
dilated(self: lsst.afw.geom.SpanSet, radius: int, stencil: lsst.afw.geom.Stencil = <Stencil.CIRCLE: 0>) -> lsst.afw.geom.SpanSet
dilated(self: lsst.afw.geom.SpanSet, arg0: lsst.afw.geom.SpanSet) -> lsst.afw.geom.SpanSet
- eroded(*args, **kwargs)¶
Overloaded function.
eroded(self: lsst.afw.geom.SpanSet, radius: int, stencil: lsst.afw.geom.Stencil = <Stencil.CIRCLE: 0>) -> lsst.afw.geom.SpanSet
eroded(self: lsst.afw.geom.SpanSet, arg0: lsst.afw.geom.SpanSet) -> lsst.afw.geom.SpanSet
- findEdgePixels(self: lsst.afw.geom.SpanSet) lsst.afw.geom.SpanSet ¶
- flatten(*args, **kwargs)¶
Overloaded function.
flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray
flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray
flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray
flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray
flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray
flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray
flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray
flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray
flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray
flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray
flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray
flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray
flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
- static fromMask(*args, **kwargs)¶
Overloaded function.
fromMask(arg0: lsst::afw::image::Mask<int>) -> lsst.afw.geom.SpanSet
fromMask(arg0: lsst::afw::image::Mask<int>, arg1: int) -> lsst.afw.geom.SpanSet
- static fromShape(*args, **kwargs)¶
Overloaded function.
fromShape(radius: int, stencil: lsst.afw.geom.Stencil = <Stencil.CIRCLE: 0>, offset: lsst.geom.Point2I = Point2I(0, 0)) -> lsst.afw.geom.SpanSet
fromShape(radius: int, stencil: lsst.afw.geom.Stencil = <Stencil.CIRCLE: 0>, offset: tuple[int, int] = (0, 0)) -> lsst.afw.geom.SpanSet
fromShape(arg0: lsst.afw.geom.ellipses.Ellipse) -> lsst.afw.geom.SpanSet
- getArea(self: lsst.afw.geom.SpanSet) int ¶
- getBBox(self: lsst.afw.geom.SpanSet) lsst.geom.Box2I ¶
- indices(self: lsst.afw.geom.SpanSet) numpy.ndarray ¶
- intersect(*args, **kwargs)¶
Overloaded function.
intersect(self: lsst.afw.geom.SpanSet, arg0: lsst.afw.geom.SpanSet) -> lsst.afw.geom.SpanSet
intersect(self: lsst.afw.geom.SpanSet, other: lsst::afw::image::Mask<int>, bitmask: int) -> lsst.afw.geom.SpanSet
intersect(self: lsst.afw.geom.SpanSet, other: lsst::afw::image::Mask<int>) -> lsst.afw.geom.SpanSet
- intersectNot(*args, **kwargs)¶
Overloaded function.
intersectNot(self: lsst.afw.geom.SpanSet, arg0: lsst.afw.geom.SpanSet) -> lsst.afw.geom.SpanSet
intersectNot(self: lsst.afw.geom.SpanSet, other: lsst::afw::image::Mask<int>, bitmask: int) -> lsst.afw.geom.SpanSet
intersectNot(self: lsst.afw.geom.SpanSet, other: lsst::afw::image::Mask<int>) -> lsst.afw.geom.SpanSet
- isContiguous(self: lsst.afw.geom.SpanSet) bool ¶
- isPersistable(self: lsst.afw.geom.SpanSet) bool ¶
- overlaps(self: lsst.afw.geom.SpanSet, arg0: lsst.afw.geom.SpanSet) bool ¶
- static readFits(*args, **kwargs)¶
Overloaded function.
readFits(fileName: str, hdu: int = -2147483648) -> lsst.afw.geom.SpanSet
readFits(manager: lsst::afw::fits::MemFileManager, hdu: int = -2147483648) -> lsst.afw.geom.SpanSet
- setImage(*args, **kwargs)¶
Overloaded function.
setImage(self: lsst.afw.geom.SpanSet, image: lsst::afw::image::Image<unsigned short>, val: int, region: lsst.geom.Box2I = Box2I(corner=Point2I(0, 0), dimensions=Extent2I(0, 0)), doClip: bool = False) -> None
setImage(self: lsst.afw.geom.SpanSet, image: lsst::afw::image::Image<unsigned long>, val: int, region: lsst.geom.Box2I = Box2I(corner=Point2I(0, 0), dimensions=Extent2I(0, 0)), doClip: bool = False) -> None
setImage(self: lsst.afw.geom.SpanSet, image: lsst::afw::image::Image<int>, val: int, region: lsst.geom.Box2I = Box2I(corner=Point2I(0, 0), dimensions=Extent2I(0, 0)), doClip: bool = False) -> None
setImage(self: lsst.afw.geom.SpanSet, image: lsst::afw::image::Image<float>, val: float, region: lsst.geom.Box2I = Box2I(corner=Point2I(0, 0), dimensions=Extent2I(0, 0)), doClip: bool = False) -> None
setImage(self: lsst.afw.geom.SpanSet, image: lsst::afw::image::Image<double>, val: float, region: lsst.geom.Box2I = Box2I(corner=Point2I(0, 0), dimensions=Extent2I(0, 0)), doClip: bool = False) -> None
- shiftedBy(*args, **kwargs)¶
Overloaded function.
shiftedBy(self: lsst.afw.geom.SpanSet, arg0: int, arg1: int) -> lsst.afw.geom.SpanSet
shiftedBy(self: lsst.afw.geom.SpanSet, arg0: lsst.geom.Extent2I) -> lsst.afw.geom.SpanSet
- split(self: lsst.afw.geom.SpanSet) list[lsst.afw.geom.SpanSet] ¶
- transformedBy(*args, **kwargs)¶
Overloaded function.
transformedBy(self: lsst.afw.geom.SpanSet, arg0: lsst.geom.LinearTransform) -> lsst.afw.geom.SpanSet
transformedBy(self: lsst.afw.geom.SpanSet, arg0: lsst.geom.AffineTransform) -> lsst.afw.geom.SpanSet
transformedBy(self: lsst.afw.geom.SpanSet, arg0: lsst.afw.geom.TransformPoint2ToPoint2) -> lsst.afw.geom.SpanSet
- unflatten(*args, **kwargs)¶
Overloaded function.
unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray
unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray
unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray
unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray
unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray
unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray
unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray
unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray
unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray
unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray
unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray
unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray
unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None
- union(*args, **kwargs)¶
Overloaded function.
union(self: lsst.afw.geom.SpanSet, arg0: lsst.afw.geom.SpanSet) -> lsst.afw.geom.SpanSet
union(self: lsst.afw.geom.SpanSet, other: lsst::afw::image::Mask<int>, bitmask: int) -> lsst.afw.geom.SpanSet
union(self: lsst.afw.geom.SpanSet, other: lsst::afw::image::Mask<int>) -> lsst.afw.geom.SpanSet
- writeFits(*args, **kwargs)¶
Overloaded function.
writeFits(self: lsst.afw.geom.SpanSet, fileName: str, mode: str = ‘w’) -> None
writeFits(self: lsst.afw.geom.SpanSet, manager: lsst::afw::fits::MemFileManager, mode: str = ‘w’) -> None