ConvolutionKernel#

class lsst.images.convolution_kernels.ConvolutionKernel#

Bases: ABC

An abstract base class for spatially-varying convolution kernels.

Attributes Summary

bounds

The region where this convolution kernel is valid (Bounds).

kernel_bbox

Bounding box of all images returned by compute_kernel_image (Box).

Methods Summary

compute_kernel_image(*, x, y)

Evaluate the kernel at a point.

serialize(archive)

Serialize the kernel to an output archive.

Attributes Documentation

bounds#

The region where this convolution kernel is valid (Bounds).

kernel_bbox#

Bounding box of all images returned by compute_kernel_image (Box).

Methods Documentation

abstract compute_kernel_image(*, x: int, y: int) Image#

Evaluate the kernel at a point.

Parameters#

x

Column position coordinate to evaluate at.

y

Row position coordinate to evaluate at.

Returns#

Image

An image of the kernel, centered on the center of the center pixel, which is defined to be (0, 0) by the image’s origin.

abstract serialize(archive: OutputArchive[Any]) ConvolutionKernelSerializationModel#

Serialize the kernel to an output archive.

Parameters#

archive

Archive to write to.