Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Width of the LoG Kernel to be applied before focus stacking. LoGKernelWidth = 13 // Sigma of the Log Kernel to be applied before focus stacking. LogKernelSigma = 1.6 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DepthLUT ¶
DepthLUT is a lookup table between an image index and color. Black is nearer to the camera.
type Extender ¶
type Extender[T any] struct { // contains filtered or unexported fields }
Extender extends the image pixel space indefintely by picking the nearest pixel to the point.
func NewExtender ¶
type FilteredImage ¶
type FilteredImage[K, E Number] struct { // contains filtered or unexported fields }
FilteredImage applies a filter to an extended image
func NewFilteredImage ¶
func NewFilteredImage[K, E Number](kernel *Matrix[K], backend Plane[E]) *FilteredImage[K, E]
func (*FilteredImage[K, E]) At ¶
func (img *FilteredImage[K, E]) At(x, y int) K
func (*FilteredImage[K, E]) Bounds ¶
func (img *FilteredImage[K, E]) Bounds() image.Rectangle
type FocusStack ¶
type FocusStack struct {
// contains filtered or unexported fields
}
FocusStack creates a stack and depth map from a set of images.
func NewFocusStack ¶
func NewFocusStack(rect image.Rectangle) (*FocusStack, error)
func (*FocusStack) AddImage ¶
func (stack *FocusStack) AddImage(inputImage image.Image)
func (*FocusStack) OrderedDepths ¶
func (stack *FocusStack) OrderedDepths() DepthLUT
Gives a strict depthmap back to front assuming images were processed in order.
func (*FocusStack) StackedImage ¶
func (stack *FocusStack) StackedImage() image.Image
type Matrix ¶
func MatrixFromPlane ¶
MatrixFromPlane creates a matrix from a plane using the projection function converter.
type Number ¶
type Number interface { constraints.Float | constraints.Integer }
Click to show internal directories.
Click to hide internal directories.