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\).
- 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:
- Raises:
ValueErrorifidc not in sub_segmap- Returns:
Flux and area of the substructure.
- Return type:
(float, int)