Image Segmentation (photutils.aperture)#

This subpackage contains tools for detecting sources using image segmentation and measuring their centroids, photometry, and morphological properties.

Functions#

deblend_sources(data, segment_img, npixels, *)

Deblend overlapping sources labeled in a segmentation image.

detect_sources(data, threshold, npixels, *)

Detect sources above a specified threshold value in an image.

detect_threshold(data, nsigma, *[, ...])

Calculate a pixel-wise threshold image that can be used to detect sources.

make_2dgaussian_kernel(fwhm, size[, mode, ...])

Make a normalized 2D circular Gaussian kernel.

Classes#

Segment(segment_data, label, slices, bbox, ...)

Class for a single labeled region (segment) within a segmentation image.

SegmentationImage(data)

Class for a segmentation image.

SourceCatalog(data, segment_img, *[, ...])

Class to create a catalog of photometry and morphological properties for sources defined by a segmentation image.

SourceFinder(npixels, *[, connectivity, ...])

Class to detect sources, including deblending, in an image using segmentation.

Class Inheritance Diagram#

Inheritance diagram of photutils.segmentation.core.Segment, photutils.segmentation.core.SegmentationImage, photutils.segmentation.catalog.SourceCatalog, photutils.segmentation.finder.SourceFinder