Pixelizations#

Pixelization#

Groups all of the individual components used to reconstruct a galaxy via a pixelization (an ImageMesh, Mesh and Regularization)

The Pixelization API documentation provides a comprehensive description of how pixelizaiton objects work and their associated API.

It is recommended you read this documentation before using pixelizations.

Pixelization

Pairs a 2D grid of (y,x) coordinates with a 2D mesh, which can be combined with a Regularization scheme in order to reconstruct data via an Inversion.

Image Mesh [ag.image_mesh]#

Overlay

Computes an image-mesh by overlaying a uniform grid of (y,x) coordinates over the masked image that the pixelization is fitting.

Hilbert

Computes an image-mesh by computing the Hilbert curve of the adapt data and drawing points from it.

HilbertBalanced

Computes a balanced image-mesh by computing the Hilbert curve of the adapt data and drawing points from it.

KMeans

Computes an image-mesh by running a weighted KMeans clustering algorithm.

Mesh [ag.mesh]#

Rectangular

A uniform mesh of rectangular pixels, which without interpolation are paired with a 2D grid of (y,x) coordinates.

Delaunay

An irregular mesh of Delaunay triangle pixels, which using linear barycentric interpolation are paired with a 2D grid of (y,x) coordinates.

Voronoi

An irregular mesh of Voronoi pixels, which using no interpolation are paired with a 2D grid of (y,x) coordinates.

VoronoiNN

An irregular mesh of Voronoi pixels, which using no interpolation are paired with a 2D grid of (y,x) coordinates.

Regularization [ag.reg]#

Constant

Regularization which uses the neighbors of the mesh (e.g.

ConstantSplit

Regularization which uses the derivatives at a cross of four points around each pixel centre and a single value to smooth an inversion's solution.

AdaptiveBrightness

Regularization which uses the neighbors of the mesh (e.g.

AdaptiveBrightnessSplit

Regularization which uses the derivatives at a cross of four points around each pixel centre and values adapted to the data being fitted to smooth an inversion's solution.

Settings#

SettingsInversion

The settings of an Inversion, customizing how a linear set of equations are solved for.

Mapper#

Mapper(mapper_grids, regularization[, ...])

Factory which given input MapperGrids and Regularization objects creates a Mapper.