CentroidDefault#

class lsst.ts.wep.centroid.CentroidDefault#

Bases: object

Default Centroid class.

Methods Summary

getCenterAndR(imgDonut, **kwargs)

Get the centroid data and effective weighting radius.

getCenterAndRfromImgBinary(imgBinary, **kwargs)

Get the centroid data and effective weighting radius from the binary image.

getImgBinary(imgDonut)

Get the binary image.

Methods Documentation

getCenterAndR(imgDonut, **kwargs)#

Get the centroid data and effective weighting radius.

Parameters:
  • imgDonut (numpy.ndarray) – Donut image.

  • **kwargs (dict[str, any]) – Dictionary of input argument: new value for that input argument.

Return type:

tuple[float, float, float]

Returns:

  • float – Centroid x.

  • float – Centroid y.

  • float – Effective weighting radius.

getCenterAndRfromImgBinary(imgBinary, **kwargs)#

Get the centroid data and effective weighting radius from the binary image.

Parameters:
  • imgBinary (numpy.ndarray [int]) – Binary image of donut.

  • **kwargs (dict[str, any]) – Dictionary of input argument: new value for that input argument.

Return type:

tuple[float, float, float]

Returns:

  • float – Centroid x.

  • float – Centroid y.

  • float – Effective weighting radius.

getImgBinary(imgDonut)#

Get the binary image.

Parameters:

imgDonut (numpy.ndarray) – Donut image to do the analysis.

Returns:

Binary image of donut.

Return type:

numpy.ndarray [int]

Raises:

NotImplementedError – Child class should implement this.