image

package
v0.0.0-...-81698c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bit

type Bit string

type Observation

type Observation struct {
	// contains filtered or unexported fields
}

Observation represents the pixel data of an observatory image. "." represents empty space, and "#" represents a galaxy.

func ParseImage

func ParseImage(r io.Reader) (Observation, error)

func (Observation) Expand

func (o Observation) Expand() Observation

Expand creates a new observation image where any rows or columns in the original image that contain no galaxies are doubled in size.

func (Observation) Height

func (o Observation) Height() int

func (Observation) String

func (o Observation) String() string

func (Observation) Width

func (o Observation) Width() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL