Versions in this module Expand all Collapse all v0 v0.2.0 Jul 11, 2026 v0.1.0 Jul 10, 2026 Changes in this version + var ErrInvalidDirection = errors.New("mojette: direction requires Q>=1 and gcd(|P|,Q)=1") + var ErrInvalidGrid = errors.New("mojette: invalid grid dimensions or block sizes") + var ErrNotReconstructible = errors.New("mojette: projections insufficient to reconstruct") + func Reconstructible(rows, cols int, dirs []Direction) bool + type Direction struct + P int + Q int + type Grid struct + BlockSize int + Cols int + Data [][]byte + Rows int + func Reconstruct(rows, cols, blockSize int, projs []Projection) (*Grid, error) + type Projection struct + Bins [][]byte + Dir Direction + func Encode(g *Grid, dirs []Direction) ([]Projection, error)