centroid

Contents

centroid#

scarlet2.measure.centroid(component)[source]#

Determine spatial centroid of model

Parameters:

component (Component or array) – Component to analyze or its hyperspectral model

Returns:

Coordinates of the centroid in pixel coordinates or in the model frame (if component has a bbox)

Return type:

array