DeblendAdapt#

class lsst.ts.wep.deblend.DeblendAdapt#

Bases: DeblendDefault

DeblendDefault child class to do the deblending by the adaptive threshold method.

Methods Summary

deblendDonut(imgToDeblend, iniGuessXY)

Deblend the donut image.

Methods Documentation

deblendDonut(imgToDeblend, iniGuessXY)#

Deblend the donut image.

Parameters:
  • imgToDeblend (numpy.ndarray) – Image to deblend.

  • iniGuessXY (list[tuple]) – The list contains the initial guess of (x, y) positions of neighboring stars as [star 1, star 2, etc.].

Return type:

tuple[ndarray, float, float]

Returns:

  • numpy.ndarray – Deblended donut image.

  • float – Position x of donut in pixel.

  • float – Position y of donut in pixel.

Raises:

ValueError – Only support to deblend single neighboring star.