Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Source Models

The source model is entirely separate from the lens and simulation models. It implements a single function getImage() which returns the source image as an OpenCV Mat object.

The Source class is the superclass of all source modesls. The constructor takes an integer argument σ\sigma, giving the size which is interpreted somewhat differently for the different subclasses. The subclasses may take additional parameters to the constructor, in addition to the integer size.