Substrucure properties#

Code author: Wilfried Mercier - LAM <wilfried.mercier@lam.fr>

Functions useful to extract the flux and area of substructures after detection.

compute_properties_substructures(image, sub_segmap)[source]#

Code author: Wilfried Mercier - LAM <wilfried.mercier@lam.fr>

Determine the flux and area of each substructure in the given galaxy.

Note

Flux values are given in the same unit as image (i.e. sum of pixels) and areas are in \(\rm pixels\).

Parameters:
  • image (NDArray) – image used to estimate the flux in substructures

  • sub_segmap (NDArray) – segmentation map of the detected substructures

Returns:

IDs of substructures, their flux, and their area in pixels.

Return type:

(list[int], list[float], list[int])

compute_property_substructure(idc, image, sub_segmap)[source]#

Code author: Wilfried Mercier - LAM <wilfried.mercier@lam.fr>

Determine the flux and area of a given substructure in a galaxy.

Note

The flux is given in the same unit as image (i.e. sum of pixels) and the area in \(\rm pixels\).

Parameters:
  • idc (int) – ID of the substructure. It must be a value present in the substructure segmentation map.

  • image (NDArray) – residual map used to estimate the flux of the substructure

  • sub_segmap (NDArray) – segmentation map of the detected substructures

Raises:

ValueError if idc not in sub_segmap

Returns:

Flux and area of the substructure.

Return type:

(float, int)