Documentation
¶
Overview ¶
Package layer lays an image onto the sky's triangles. Each cell of the mesh at the layer's depth takes the mean of the image's pixels whose centres fall in it. The cells are in ICRS whatever frame the image is in. The layer keeps where its image came from.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Layer ¶
type Layer struct {
// contains filtered or unexported fields
}
Layer is an image laid onto the mesh at one depth.
func Lay ¶
Lay lays an image onto the mesh at a depth. Each pixel counts in the cell its centre falls in. Pixels that are not a finite number are left out, and so are pixels whose place is off the sky.
It refuses no image, an image whose place on the sky is not read, and an image with no pixel left. Rows cut short are an error.
func (*Layer) At ¶
At is the layer's value at a cell. There is none at a cell no pixel fell in, nor at a cell of another depth.
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source is where a layer's image came from: its entry in the fetch ledger.
func NewSource ¶
NewSource is a ledger entry. It is where an image was fetched from and the terms it was published under, in the publisher's words. Then come when it was fetched, its length in bytes and its SHA-256 in hex.