lsst.afw.math

lsst.afw.math provides mathematical functions such as convolution and image statistics. Key features:

Contributing

lsst.afw.math is developed at https://github.com/lsst/afw. You can find Jira issues for this module under the afw component.

Python API reference

lsst.afw.math Package

Functions

PixelScaleBoundedField
basicConvolve(*args, **kwargs) Overloaded function.
binImage(*args, **kwargs) Overloaded function.
convolve(*args, **kwargs) Overloaded function.
convolveWithBruteForce(*args, **kwargs) Overloaded function.
flipImage(*args, **kwargs) Overloaded function.
lookupMaxInterpStyle(n)
lookupMinInterpPoints(style)
makeApproximate(x, y, im, bbox, ctrl)
makeBackground(*args, **kwargs) Overloaded function.
makeInterpolate(*args, **kwargs) Overloaded function.
makeStatistics(*args, **kwargs) Overloaded function.
minimize(*args, **kwargs) Overloaded function.
offsetImage(*args, **kwargs) Overloaded function.
randomChisqImage(*args, **kwargs) Overloaded function.
randomFlatImage(*args, **kwargs) Overloaded function.
randomGaussianImage(*args, **kwargs) Overloaded function.
randomPoissonImage(*args, **kwargs) Overloaded function.
randomUniformImage(*args, **kwargs) Overloaded function.
randomUniformIntImage(*args, **kwargs) Overloaded function.
randomUniformPosImage(*args, **kwargs) Overloaded function.
rotateImageBy90(*args, **kwargs) Overloaded function.
scaledPlus(*args, **kwargs) Overloaded function.
statisticsStack(*args, **kwargs) Overloaded function.
stringToInterpStyle(style)
stringToStatisticsProperty(arg0)
stringToUndersampleStyle(style)
warpCenteredImage(*args, **kwargs) Overloaded function.
warpExposure(*args, **kwargs) Overloaded function.
warpImage(*args, **kwargs) Overloaded function.

Classes

AnalyticKernel
ApproximateControl
ApproximateF
Background
BackgroundControl
BackgroundList(*args) A list-like class to contain a list of (lsst.afw.math.Background, lsst.afw.math.Interpolate.Style, UndersampleStyle) tuples.
BackgroundMI
BasePolynomialFunction2D
BasePolynomialFunction2F
BilinearWarpingKernel
BoundedField
CandidateVisitor
Chebyshev1Function1D
Chebyshev1Function1F
Chebyshev1Function2D
Chebyshev1Function2F
ChebyshevBoundedField
ChebyshevBoundedFieldConfig
ChebyshevBoundedFieldControl
ConvolutionControl
CovariogramD
DeltaFunctionKernel
DoubleGaussianFunction2D
DoubleGaussianFunction2F
FitResults
FixedKernel
Function1D
Function1F
Function2D
Function2F
FunctionD
FunctionF
GaussianFunction1D
GaussianFunction1F
GaussianFunction2D
GaussianFunction2F
GaussianProcessD
IntegerDeltaFunction1D
IntegerDeltaFunction1F
IntegerDeltaFunction2D
IntegerDeltaFunction2F
Interpolate
KdTreeD
Kernel
KernelImagesForRegion
LanczosFunction1D
LanczosFunction1F
LanczosFunction2D
LanczosFunction2F
LanczosWarpingKernel
LeastSquares
LinearCombinationKernel
NearestWarpingKernel
NeuralNetCovariogramD
NullFunction1D
NullFunction1F
NullFunction2D
NullFunction2F
PixelAreaBoundedField
PolynomialFunction1D
PolynomialFunction1F
PolynomialFunction2D
PolynomialFunction2F
ProductBoundedField
Property
Random
RowOfKernelImagesForRegion
SeparableKernel
SpatialCell
SpatialCellCandidate
SpatialCellCandidateIterator
SpatialCellImageCandidate
SpatialCellSet
Spline
SquaredExpCovariogramD
Statistics
StatisticsControl
TautSpline
TestCandidate
TestCandidateVisitor
TestImageCandidate
TransformBoundedField
UndersampleStyle
Warper(warpingKernelName[, interpLength, …]) Warp images.
WarperConfig
WarpingControl

Class Inheritance Diagram

Inheritance diagram of lsst.afw.math.kernel.AnalyticKernel, lsst.afw.math.approximate.ApproximateControl, lsst.afw.math.approximate.ApproximateF, lsst.afw.math.background.background.Background, lsst.afw.math.background.background.BackgroundControl, lsst.afw.math.backgroundList.BackgroundList, lsst.afw.math.background.background.BackgroundMI, lsst.afw.math.function.BasePolynomialFunction2D, lsst.afw.math.function.BasePolynomialFunction2F, lsst.afw.math.warpExposure.BilinearWarpingKernel, lsst.afw.math.boundedField.BoundedField, lsst.afw.math.spatialCell.spatialCell.CandidateVisitor, lsst.afw.math.functionLibrary.Chebyshev1Function1D, lsst.afw.math.functionLibrary.Chebyshev1Function1F, lsst.afw.math.functionLibrary.Chebyshev1Function2D, lsst.afw.math.functionLibrary.Chebyshev1Function2F, lsst.afw.math.chebyshevBoundedField.ChebyshevBoundedField, lsst.afw.math.chebyshevBoundedFieldConfig.ChebyshevBoundedFieldConfig, lsst.afw.math.chebyshevBoundedField.ChebyshevBoundedFieldControl, lsst.afw.math.convolveImage.ConvolutionControl, lsst.afw.math.gaussianProcess.CovariogramD, lsst.afw.math.kernel.DeltaFunctionKernel, lsst.afw.math.functionLibrary.DoubleGaussianFunction2D, lsst.afw.math.functionLibrary.DoubleGaussianFunction2F, lsst.afw.math.minimize.FitResults, lsst.afw.math.kernel.FixedKernel, lsst.afw.math.function.Function1D, lsst.afw.math.function.Function1F, lsst.afw.math.function.Function2D, lsst.afw.math.function.Function2F, lsst.afw.math.function.FunctionD, lsst.afw.math.function.FunctionF, lsst.afw.math.functionLibrary.GaussianFunction1D, lsst.afw.math.functionLibrary.GaussianFunction1F, lsst.afw.math.functionLibrary.GaussianFunction2D, lsst.afw.math.functionLibrary.GaussianFunction2F, lsst.afw.math.gaussianProcess.GaussianProcessD, lsst.afw.math.functionLibrary.IntegerDeltaFunction1D, lsst.afw.math.functionLibrary.IntegerDeltaFunction1F, lsst.afw.math.functionLibrary.IntegerDeltaFunction2D, lsst.afw.math.functionLibrary.IntegerDeltaFunction2F, lsst.afw.math.interpolate.Interpolate, lsst.afw.math.gaussianProcess.KdTreeD, lsst.afw.math.kernel.Kernel, lsst.afw.math.detail.convolve.KernelImagesForRegion, lsst.afw.math.functionLibrary.LanczosFunction1D, lsst.afw.math.functionLibrary.LanczosFunction1F, lsst.afw.math.functionLibrary.LanczosFunction2D, lsst.afw.math.functionLibrary.LanczosFunction2F, lsst.afw.math.warpExposure.LanczosWarpingKernel, lsst.afw.math.leastSquares.LeastSquares, lsst.afw.math.kernel.LinearCombinationKernel, lsst.afw.math.warpExposure.NearestWarpingKernel, lsst.afw.math.gaussianProcess.NeuralNetCovariogramD, lsst.afw.math.function.NullFunction1D, lsst.afw.math.function.NullFunction1F, lsst.afw.math.function.NullFunction2D, lsst.afw.math.function.NullFunction2F, lsst.afw.math.pixelAreaBoundedField.PixelAreaBoundedField, lsst.afw.math.functionLibrary.PolynomialFunction1D, lsst.afw.math.functionLibrary.PolynomialFunction1F, lsst.afw.math.functionLibrary.PolynomialFunction2D, lsst.afw.math.functionLibrary.PolynomialFunction2F, lsst.afw.math.productBoundedField.ProductBoundedField, lsst.afw.math.statistics.Property, lsst.afw.math.random.Random, lsst.afw.math.detail.convolve.RowOfKernelImagesForRegion, lsst.afw.math.kernel.SeparableKernel, lsst.afw.math.spatialCell.spatialCell.SpatialCell, lsst.afw.math.spatialCell.spatialCell.SpatialCellCandidate, lsst.afw.math.spatialCell.spatialCell.SpatialCellCandidateIterator, lsst.afw.math.spatialCell.spatialCell.SpatialCellImageCandidate, lsst.afw.math.spatialCell.spatialCell.SpatialCellSet, lsst.afw.math.detail.spline.Spline, lsst.afw.math.gaussianProcess.SquaredExpCovariogramD, lsst.afw.math.statistics.Statistics, lsst.afw.math.statistics.StatisticsControl, lsst.afw.math.detail.spline.TautSpline, lsst.afw.math.spatialCell.spatialCell.TestCandidate, lsst.afw.math.spatialCell.spatialCell.TestCandidateVisitor, lsst.afw.math.spatialCell.spatialCell.TestImageCandidate, lsst.afw.math.transformBoundedField.TransformBoundedField, lsst.afw.math.background.background.UndersampleStyle, lsst.afw.math.warper.Warper, lsst.afw.math.warper.WarperConfig, lsst.afw.math.warpExposure.WarpingControl