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:
shapetuple of int

The final shape of the output array. If shape is None then the extent of the bounding box is used.

xy0Box2I 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:
resultnumpy.ndarray

The array with pixels contained in spans marked as True.

clearMask(self: lsst.afw.geom.SpanSet, arg0: lsst::afw::image::Mask<int>, arg1: int) None
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.

  1. contains(self: lsst.afw.geom.SpanSet, arg0: lsst.afw.geom.SpanSet) -> bool

  2. contains(self: lsst.afw.geom.SpanSet, arg0: lsst.geom.Point2I) -> bool

copyImage(*args, **kwargs)

Overloaded function.

  1. copyImage(self: lsst.afw.geom.SpanSet, arg0: lsst::afw::image::Image<unsigned short>, arg1: lsst::afw::image::Image<unsigned short>) -> None

  2. copyImage(self: lsst.afw.geom.SpanSet, arg0: lsst::afw::image::Image<unsigned long>, arg1: lsst::afw::image::Image<unsigned long>) -> None

  3. copyImage(self: lsst.afw.geom.SpanSet, arg0: lsst::afw::image::Image<int>, arg1: lsst::afw::image::Image<int>) -> None

  4. copyImage(self: lsst.afw.geom.SpanSet, arg0: lsst::afw::image::Image<float>, arg1: lsst::afw::image::Image<float>) -> None

  5. copyImage(self: lsst.afw.geom.SpanSet, arg0: lsst::afw::image::Image<double>, arg1: lsst::afw::image::Image<double>) -> None

copyMaskedImage(*args, **kwargs)

Overloaded function.

  1. 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

  2. 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

  3. copyMaskedImage(self: lsst.afw.geom.SpanSet, arg0: lsst::afw::image::MaskedImage<int, int, float>, arg1: lsst::afw::image::MaskedImage<int, int, float>) -> None

  4. copyMaskedImage(self: lsst.afw.geom.SpanSet, arg0: lsst::afw::image::MaskedImage<float, int, float>, arg1: lsst::afw::image::MaskedImage<float, int, float>) -> None

  5. 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.

  1. dilated(self: lsst.afw.geom.SpanSet, radius: int, stencil: lsst.afw.geom.Stencil = <Stencil.CIRCLE: 0>) -> lsst.afw.geom.SpanSet

  2. dilated(self: lsst.afw.geom.SpanSet, arg0: lsst.afw.geom.SpanSet) -> lsst.afw.geom.SpanSet

eroded(*args, **kwargs)

Overloaded function.

  1. eroded(self: lsst.afw.geom.SpanSet, radius: int, stencil: lsst.afw.geom.Stencil = <Stencil.CIRCLE: 0>) -> lsst.afw.geom.SpanSet

  2. 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.

  1. flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray

  2. flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray

  3. flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  4. flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  5. flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray

  6. flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray

  7. flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  8. flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  9. flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray

  10. flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray

  11. flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  12. flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  13. flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray

  14. flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray

  15. flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  16. flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  17. flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray

  18. flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray

  19. flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  20. flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  21. flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray

  22. flatten(self: lsst.afw.geom.SpanSet, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> numpy.ndarray

  23. flatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  24. 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.

  1. fromMask(arg0: lsst::afw::image::Mask<int>) -> lsst.afw.geom.SpanSet

  2. fromMask(arg0: lsst::afw::image::Mask<int>, arg1: int) -> lsst.afw.geom.SpanSet

static fromShape(*args, **kwargs)

Overloaded function.

  1. fromShape(radius: int, stencil: lsst.afw.geom.Stencil = <Stencil.CIRCLE: 0>, offset: lsst.geom.Point2I = Point2I(0, 0)) -> lsst.afw.geom.SpanSet

  2. fromShape(radius: int, stencil: lsst.afw.geom.Stencil = <Stencil.CIRCLE: 0>, offset: tuple[int, int] = (0, 0)) -> lsst.afw.geom.SpanSet

  3. 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.

  1. intersect(self: lsst.afw.geom.SpanSet, arg0: lsst.afw.geom.SpanSet) -> lsst.afw.geom.SpanSet

  2. intersect(self: lsst.afw.geom.SpanSet, other: lsst::afw::image::Mask<int>, bitmask: int) -> lsst.afw.geom.SpanSet

  3. intersect(self: lsst.afw.geom.SpanSet, other: lsst::afw::image::Mask<int>) -> lsst.afw.geom.SpanSet

intersectNot(*args, **kwargs)

Overloaded function.

  1. intersectNot(self: lsst.afw.geom.SpanSet, arg0: lsst.afw.geom.SpanSet) -> lsst.afw.geom.SpanSet

  2. intersectNot(self: lsst.afw.geom.SpanSet, other: lsst::afw::image::Mask<int>, bitmask: int) -> lsst.afw.geom.SpanSet

  3. 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.

  1. readFits(fileName: str, hdu: int = -2147483648) -> lsst.afw.geom.SpanSet

  2. readFits(manager: lsst::afw::fits::MemFileManager, hdu: int = -2147483648) -> lsst.afw.geom.SpanSet

setImage(*args, **kwargs)

Overloaded function.

  1. 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

  2. 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

  3. 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

  4. 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

  5. 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

setMask(self: lsst.afw.geom.SpanSet, arg0: lsst::afw::image::Mask<int>, arg1: int) None
shiftedBy(*args, **kwargs)

Overloaded function.

  1. shiftedBy(self: lsst.afw.geom.SpanSet, arg0: int, arg1: int) -> lsst.afw.geom.SpanSet

  2. 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.

  1. transformedBy(self: lsst.afw.geom.SpanSet, arg0: lsst.geom.LinearTransform) -> lsst.afw.geom.SpanSet

  2. transformedBy(self: lsst.afw.geom.SpanSet, arg0: lsst.geom.AffineTransform) -> lsst.afw.geom.SpanSet

  3. transformedBy(self: lsst.afw.geom.SpanSet, arg0: lsst.afw.geom.TransformPoint2ToPoint2) -> lsst.afw.geom.SpanSet

unflatten(*args, **kwargs)

Overloaded function.

  1. unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray

  2. unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray

  3. unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  4. unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  5. unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray

  6. unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray

  7. unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  8. unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  9. unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray

  10. unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray

  11. unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  12. unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  13. unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray

  14. unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray

  15. unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  16. unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  17. unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray

  18. unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray

  19. unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  20. unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  21. unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray

  22. unflatten(self: lsst.afw.geom.SpanSet, arg0: numpy.ndarray) -> numpy.ndarray

  23. unflatten(self: lsst.afw.geom.SpanSet, output: numpy.ndarray, input: numpy.ndarray, xy0: lsst.geom.Point2I = Point2I(0, 0)) -> None

  24. 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.

  1. union(self: lsst.afw.geom.SpanSet, arg0: lsst.afw.geom.SpanSet) -> lsst.afw.geom.SpanSet

  2. union(self: lsst.afw.geom.SpanSet, other: lsst::afw::image::Mask<int>, bitmask: int) -> lsst.afw.geom.SpanSet

  3. union(self: lsst.afw.geom.SpanSet, other: lsst::afw::image::Mask<int>) -> lsst.afw.geom.SpanSet

writeFits(*args, **kwargs)

Overloaded function.

  1. writeFits(self: lsst.afw.geom.SpanSet, fileName: str, mode: str = ‘w’) -> None

  2. writeFits(self: lsst.afw.geom.SpanSet, manager: lsst::afw::fits::MemFileManager, mode: str = ‘w’) -> None