# autoarray.inversion.pixelizations.VoronoiBrightnessImage¶

class autoarray.inversion.pixelizations.VoronoiBrightnessImage(pixels=10, weight_floor=0.0, weight_power=0.0)
__init__(pixels=10, weight_floor=0.0, weight_power=0.0)

A pixelization which adapts to the magnification pattern of a lens’s mass model and uses a Voronoi pixelization to discretize the grid into pixels.

Methods

 __init__([pixels, weight_floor, weight_power]) A pixelization which adapts to the magnification pattern of a lens’s mass model and uses a Voronoi pixelization to discretize the grid into pixels. make_pixelization_grid([relocated_grid, …]) The relocated pixelization grid is now used to create the pixelization’s Voronoi grid using the scipy.spatial library. mapper_from(grid, sparse_grid, …[, settings]) Setup a Voronoi mapper from an adaptive-magnification pixelization, as follows: relocate_grid_via_border(grid, settings, …) Return all coordinates that are outside the pixelization border to the edge of the border. relocate_pixelization_grid_via_border(grid, …) Return all coordinates of the pixeliztion itself that are outside the pixelization border to the edge of the border. sparse_grid_from(grid, hyper_image[, settings]) weight_map_from(hyper_image)