Image

class lsst.ts.wep.cwfs.Image(centroidFindType=CentroidFindType.RandomWalk)

Bases: object

Image class for wavefront estimation.

Parameters:
centroidFindTypeenum ‘CentroidFindType’, optional

Algorithm to find the centroid of donut. (the default is CentroidFindType.RandomWalk.)

Methods Summary

getCenterAndR([image])

Get the centroid data.

getCentroidFind()

Get the centroid find object.

getImg()

Get the image.

getImgFilePath()

Get the image file path.

getSNR()

Get the signal to noise ratio of donut.

setImg([image, imageFile])

Set the wavefront image.

updateImage(image)

Update the image of donut.

Methods Documentation

getCenterAndR(image=None)

Get the centroid data.

Parameters:
imagenumpy.ndarray, optional

Image to do the analysis. (the default is None.)

Returns:
float

Centroid x.

float

Centroid y.

float

Effective weighting radius.

getCentroidFind()

Get the centroid find object.

Returns:
CentroidRandomWalk, CentroidOtsu

Centroid find object.

getImg()

Get the image.

Returns:
numpy.ndarray

Image.

getImgFilePath()

Get the image file path.

Returns:
str

Image file path.

getSNR()

Get the signal to noise ratio of donut.

Returns:
float

Signal to noise ratio.

setImg(image=None, imageFile=None)

Set the wavefront image.

Parameters:
imagenumpy.ndarray, optional

Array of image. (the default is None.)

imageFilestr, optional

Path of image file. (the default is None.)

updateImage(image)

Update the image of donut.

Parameters:
imagenumpy.ndarray

Donut image.