Versions in this module Expand all Collapse all v0 v0.1.2 Jul 25, 2021 v0.1.1 Jul 25, 2021 Changes in this version + func PixelDecode(p Pixel) error + func PixelDist(p1, p2 Pixel) (float64, error) + func PixelEncode(p Pixel) error + type Aspect struct + Columns int + Id int64 + Rows int + func NewAspect(columns int, rows int) *Aspect + func (a *Aspect) Ratio() float64 + func (a *Aspect) RoundHeight(width int) int + func (a *Aspect) RoundWidth(height int) int + func (a *Aspect) Scale(width, height int) (int, int) + func (a *Aspect) ScaleRound(width, height int) (int, int) + type Cover struct + AspectId int64 + Height int + Id int64 + Width int + type CoverPartial struct + AspectId int64 + CoverId int64 + Id int64 + X1 int + X2 int + Y1 int + Y2 int + func (cp *CoverPartial) Area() int + func (cp *CoverPartial) Height() int + func (cp *CoverPartial) Pt() image.Point + func (cp *CoverPartial) Rectangle() image.Rectangle + func (cp *CoverPartial) Width() int + type CoverPartialQuadView struct + CoverPartial *CoverPartial + QuadDist *QuadDist + type Gidx struct + AspectId int64 + Height int + Id int64 + Md5sum string + Orientation int + Path string + Width int + func (g *Gidx) GetHeight() int + func (g *Gidx) GetMd5sum() string + func (g *Gidx) GetOrientation() int + func (g *Gidx) GetPath() string + func (g *Gidx) GetWidth() int + func (g *Gidx) SetHeight(height int) + func (g *Gidx) SetMd5sum(md5sum string) + func (g *Gidx) SetOrientation(orientation int) + func (g *Gidx) SetPath(path string) + func (g *Gidx) SetWidth(width int) + func (gidx *Gidx) Within(threashold float64, aspect *Aspect) bool + type GidxPartial struct + AspectId int64 + Data []byte + GidxId int64 + Id int64 + Pixels []*Lab + func (p *GidxPartial) DecodeData() error + func (p *GidxPartial) EncodePixels() error + func (p *GidxPartial) GetData() []byte + func (p *GidxPartial) GetPixels() []*Lab + func (p *GidxPartial) SetData(data []byte) + func (p *GidxPartial) SetPixels(pixels []*Lab) + type Image interface + GetHeight func() int + GetMd5sum func() string + GetOrientation func() int + GetPath func() string + GetWidth func() int + SetHeight func(int) + SetMd5sum func(string) + SetOrientation func(int) + SetPath func(string) + SetWidth func(int) + type Lab struct + A float64 + Alpha float64 + B float64 + L float64 + func RgbaToLab(color color.Color) *Lab + func (lab1 *Lab) Dist(lab2 *Lab) float64 + type Macro struct + AspectId int64 + CoverId int64 + Height int + Id int64 + Md5sum string + Orientation int + Path string + Width int + func (g *Macro) GetHeight() int + func (g *Macro) GetMd5sum() string + func (g *Macro) GetOrientation() int + func (g *Macro) GetPath() string + func (g *Macro) GetWidth() int + func (g *Macro) SetHeight(height int) + func (g *Macro) SetMd5sum(md5sum string) + func (g *Macro) SetOrientation(orientation int) + func (g *Macro) SetPath(path string) + func (g *Macro) SetWidth(width int) + type MacroGidxView struct + GidxPartial *GidxPartial + MacroPartial *MacroPartial + func (macroGidxView *MacroGidxView) PartialComparison() (*PartialComparison, error) + type MacroPartial struct + AspectId int64 + CoverPartialId int64 + Data []byte + Id int64 + MacroId int64 + Pixels []*Lab + func (p *MacroPartial) DecodeData() error + func (p *MacroPartial) EncodePixels() error + func (p *MacroPartial) GetData() []byte + func (p *MacroPartial) GetPixels() []*Lab + func (p *MacroPartial) SetData(data []byte) + func (p *MacroPartial) SetPixels(pixels []*Lab) + type Mosaic struct + Id int64 + MacroId int64 + type MosaicPartial struct + GidxPartialId int64 + Id int64 + MacroPartialId int64 + MosaicId int64 + type MosaicPartialView struct + CoverPartial *CoverPartial + Gidx *Gidx + MosaicPartialId int64 + type PartialComparison struct + Dist float64 + GidxPartialId int64 + Id int64 + MacroPartialId int64 + type Pixel interface + GetData func() []byte + GetPixels func() []*Lab + SetData func([]byte) + SetPixels func([]*Lab) + type Project struct + CoverId int64 + CoverPath string + CreatedAt time.Time + Id int64 + IsComplete bool + MacroId int64 + MacroPath string + MosaicId int64 + MosaicPath string + Name string + Path string + type QuadDist struct + Area int + Depth int + Dist float64 + Id int64 + MacroPartialId int64