gray14

package
v0.0.0-...-28290d0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package gray14 implements functions specifically to manipulate image.Gray16 containing a 14 bits intensity image.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AGCLinear

func AGCLinear(i *image.Gray16) *image.Gray

AGCLinear reduces the dynamic range of a 14 bits down to 8 bits very naively without gamma.

func Diff

func Diff(a, b *image.Gray16) *image.Gray

Diff encodes the difference in the image as a 8 bit image centered at 128.

func Equal

func Equal(a, b *image.Gray16) bool

Equal returns true if the two frames are equal.

func Max

func Max(i *image.Gray16) uint16

Max returns the highest intensity pixel of the image.

func Min

func Min(i *image.Gray16) uint16

Min returns the lowest intensity pixel of the image.

Ignores pixels of less than 100 in intensity.

func PaletteGray

func PaletteGray(vertical bool) *image.Gray

PaletteGray returns a gray palette.

func PaletteRGB

func PaletteRGB(vertical bool) *image.NRGBA

PaletteRGB returns the default colorful palette.

func PseudoColor

func PseudoColor(i *image.Gray16) *image.NRGBA

PseudoColor reduces the dynamic range of a 14 bits down to RGB. It doesn't apply AGC.

func ToRGB

func ToRGB(intensity uint16) color.NRGBA

ToRGB converts the image into a RGB with pseudo-colors.

Uses 9bits long palette (512) centered around 8192 for a total range of 512. TODO(maruel): Confirm it's real. With room temperature of 20C° and precision per unit of 0.025°K, range is 512*0.025 = 12.8. (?)

Types

This section is empty.

Jump to

Keyboard shortcuts

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