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, y)#

Evaluate the kernel at a point.

Parameters:
  • x (int) – Column position coordinate to evaluate at.

  • y (int) – Row position coordinate to evaluate at.

Returns:

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.

Return type:

Image

abstract serialize(archive)#

Serialize the kernel to an output archive.

Parameters:

archive (OutputArchive[Any]) – Archive to write to.

Return type:

TypeAliasType

This page was last modified on .