Documentation ¶
Index ¶
- func Blit(src *Bitmap, dst *Bitmap, x, y int, op CombinationOperator) error
- func ClipBoxToRectangle(box *_bg.Rectangle, wi, hi int) (_fcff *_bg.Rectangle, _fagf error)
- func CombineBytes(oldByte, newByte byte, op CombinationOperator) byte
- func CorrelationScore(bm1, bm2 *Bitmap, area1, area2 int, delX, delY float32, maxDiffW, maxDiffH int, ...) (_bef float64, _efbg error)
- func CorrelationScoreSimple(bm1, bm2 *Bitmap, area1, area2 int, delX, delY float32, maxDiffW, maxDiffH int, ...) (_gefb float64, _bcgf error)
- func CorrelationScoreThresholded(bm1, bm2 *Bitmap, area1, area2 int, delX, delY float32, maxDiffW, maxDiffH int, ...) (bool, error)
- func HausTest(p1, p2, p3, p4 *Bitmap, delX, delY float32, maxDiffW, maxDiffH int) (bool, error)
- func MakePixelCentroidTab8() []int
- func MakePixelSumTab8() []int
- func RankHausTest(p1, p2, p3, p4 *Bitmap, delX, delY float32, ...) (_fgcf bool, _gbdb error)
- func RasterOperation(dest *Bitmap, dx, dy, dw, dh int, op RasterOperator, src *Bitmap, sx, sy int) error
- func Rect(x, y, w, h int) (*_bg.Rectangle, error)
- func TstAddSymbol(t *_bd.T, bms *Bitmaps, sym *Bitmap, x *int, y int, space int)
- func TstFrameBitmapData() []byte
- func TstImageBitmapData() []byte
- func TstImageBitmapInverseData() []byte
- func TstWriteSymbols(t *_bd.T, bms *Bitmaps, src *Bitmap)
- type Bitmap
- func Copy(d, s *Bitmap) (*Bitmap, error)
- func Dilate(d *Bitmap, s *Bitmap, sel *Selection) (*Bitmap, error)
- func DilateBrick(d, s *Bitmap, hSize, vSize int) (*Bitmap, error)
- func Extract(roi _bg.Rectangle, src *Bitmap) (*Bitmap, error)
- func MorphSequence(src *Bitmap, sequence ...MorphProcess) (*Bitmap, error)
- func New(width, height int) *Bitmap
- func NewWithData(width, height int, data []byte) (*Bitmap, error)
- func NewWithUnpaddedData(width, height int, data []byte) (*Bitmap, error)
- func TstASymbol(t *_bd.T) *Bitmap
- func TstCSymbol(t *_bd.T) *Bitmap
- func TstDSymbol(t *_bd.T, scale ...int) *Bitmap
- func TstESymbol(t *_bd.T, scale ...int) *Bitmap
- func TstFrameBitmap() *Bitmap
- func TstGetScaledSymbol(t *_bd.T, sm *Bitmap, scale ...int) *Bitmap
- func TstISymbol(t *_bd.T, scale ...int) *Bitmap
- func TstImageBitmap() *Bitmap
- func TstNSymbol(t *_bd.T, scale ...int) *Bitmap
- func TstOSymbol(t *_bd.T, scale ...int) *Bitmap
- func TstPSymbol(t *_bd.T) *Bitmap
- func TstRSymbol(t *_bd.T, scale ...int) *Bitmap
- func TstTSymbol(t *_bd.T, scale ...int) *Bitmap
- func TstVSymbol(t *_bd.T, scale ...int) *Bitmap
- func TstWSymbol(t *_bd.T, scale ...int) *Bitmap
- func TstWordBitmap(t *_bd.T, scale ...int) *Bitmap
- func TstWordBitmapWithSpaces(t *_bd.T, scale ...int) *Bitmap
- func (_ecd *Bitmap) AddBorder(borderSize, val int) (*Bitmap, error)
- func (_bddg *Bitmap) AddBorderGeneral(left, right, top, bot int, val int) (*Bitmap, error)
- func (_bda *Bitmap) And(s *Bitmap) (_bec *Bitmap, _bbf error)
- func (_gdgf *Bitmap) ClipRectangle(box *_bg.Rectangle) (_adb *Bitmap, _ecc *_bg.Rectangle, _edfa error)
- func (_eega *Bitmap) ConnComponents(bms *Bitmaps, connectivity int) (_bbebg *Boxes, _fce error)
- func (_eff *Bitmap) Copy() *Bitmap
- func (_fbb *Bitmap) CountPixels() int
- func (_cbd *Bitmap) CreateTemplate() *Bitmap
- func (_ebec *Bitmap) Equals(s *Bitmap) bool
- func (_feeb *Bitmap) Equivalent(s *Bitmap) bool
- func (_bbe *Bitmap) GetBitOffset(x int) int
- func (_eeg *Bitmap) GetByte(index int) (byte, error)
- func (_edff *Bitmap) GetByteIndex(x, y int) int
- func (_acf *Bitmap) GetChocolateData() []byte
- func (_gdab *Bitmap) GetComponents(components Component, maxWidth, maxHeight int) (_agbb *Bitmaps, _agf *Boxes, _dgc error)
- func (_bca *Bitmap) GetPixel(x, y int) bool
- func (_dccd *Bitmap) GetUnpaddedData() ([]byte, error)
- func (_ggb *Bitmap) GetVanillaData() []byte
- func (_ebgb *Bitmap) InverseData()
- func (_cffc *Bitmap) RasterOperation(dx, dy, dw, dh int, op RasterOperator, src *Bitmap, sx, sy int) error
- func (_gdgg *Bitmap) RemoveBorder(borderSize int) (*Bitmap, error)
- func (_ffba *Bitmap) RemoveBorderGeneral(left, right, top, bot int) (*Bitmap, error)
- func (_ggab *Bitmap) SetByte(index int, v byte) error
- func (_effd *Bitmap) SetDefaultPixel()
- func (_cdd *Bitmap) SetPadBits(value int)
- func (_cfd *Bitmap) SetPixel(x, y int, pixel byte) error
- func (_cab *Bitmap) SizesEqual(s *Bitmap) bool
- func (_cbea *Bitmap) String() string
- func (_dada *Bitmap) ThresholdPixelSum(thresh int, tab8 []int) (_ggbb bool, _ggda error)
- func (_egae *Bitmap) ToImage() _bg.Image
- func (_cc *Bitmap) Zero() bool
- type Bitmaps
- func (_daaf *Bitmaps) AddBitmap(bm *Bitmap)
- func (_cffce *Bitmaps) AddBox(box *_bg.Rectangle)
- func (_eaeg *Bitmaps) ClipToBitmap(s *Bitmap) (*Bitmaps, error)
- func (_cbcf *Bitmaps) CountPixels() *_e.NumSlice
- func (_gbcdc *Bitmaps) GetBitmap(i int) (*Bitmap, error)
- func (_ddeaa *Bitmaps) GetBox(i int) (*_bg.Rectangle, error)
- func (_cbcfe *Bitmaps) GroupByHeight() (*BitmapsArray, error)
- func (_cgggcgg *Bitmaps) GroupByWidth() (*BitmapsArray, error)
- func (_debc *Bitmaps) HeightSorter() func(_ebda, _fceec int) bool
- func (_ecdda *Bitmaps) SelectByIndexes(idx []int) (*Bitmaps, error)
- func (_ceff *Bitmaps) SelectBySize(width, height int, tp LocationFilter, relation SizeComparison) (_gfgg *Bitmaps, _befeg error)
- func (_ddae *Bitmaps) Size() int
- func (_efef *Bitmaps) SortByHeight()
- func (_bged *Bitmaps) SortByWidth()
- func (_acgd *Bitmaps) String() string
- func (_fdcff *Bitmaps) WidthSorter() func(_gbcb, _gded int) bool
- type BitmapsArray
- type BoundaryCondition
- type Boxes
- type ClassedPoints
- func (_cggge *ClassedPoints) GetIntXByClass(i int) (int, error)
- func (_bgfb *ClassedPoints) GetIntYByClass(i int) (int, error)
- func (_cace *ClassedPoints) GroupByY() ([]*ClassedPoints, error)
- func (_eabb *ClassedPoints) Len() int
- func (_caefd *ClassedPoints) Less(i, j int) bool
- func (_fcgf *ClassedPoints) SortByX()
- func (_dccb *ClassedPoints) SortByY()
- func (_eccc *ClassedPoints) Swap(i, j int)
- func (_geaf *ClassedPoints) XAtIndex(i int) float32
- func (_bbcd *ClassedPoints) YAtIndex(i int) float32
- type Color
- type CombinationOperator
- type Component
- type Getter
- type LocationFilter
- type MorphOperation
- type MorphProcess
- type Point
- type Points
- func (_dffgb *Points) Add(pt *Points) error
- func (_befe *Points) AddPoint(x, y float32)
- func (_dgaa Points) Get(i int) (Point, error)
- func (_baf Points) GetGeometry(i int) (_ceaa, _gcef float32, _gfda error)
- func (_aefb Points) GetIntX(i int) (int, error)
- func (_dbeb Points) GetIntY(i int) (int, error)
- func (_acee Points) Size() int
- func (_faaf Points) XSorter() func(_bgbe, _dgff int) bool
- func (_bfeb Points) YSorter() func(_fbfbf, _cbgf int) bool
- type RasterOperator
- type Selection
- type SelectionValue
- type SizeComparison
- type SizeSelection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClipBoxToRectangle ¶
func CombineBytes ¶
func CombineBytes(oldByte, newByte byte, op CombinationOperator) byte
func CorrelationScore ¶
func CorrelationScoreSimple ¶
func MakePixelCentroidTab8 ¶
func MakePixelCentroidTab8() []int
func MakePixelSumTab8 ¶
func MakePixelSumTab8() []int
func RankHausTest ¶
func RasterOperation ¶
func TstAddSymbol ¶
func TstFrameBitmapData ¶
func TstFrameBitmapData() []byte
func TstImageBitmapData ¶
func TstImageBitmapData() []byte
func TstImageBitmapInverseData ¶
func TstImageBitmapInverseData() []byte
Types ¶
type Bitmap ¶
type Bitmap struct {
Width, Height int
BitmapNumber int
RowStride int
Data []byte
Color Color
Special int
Text string
XResolution, YResolution int
}
func MorphSequence ¶
func MorphSequence(src *Bitmap, sequence ...MorphProcess) (*Bitmap, error)
func NewWithUnpaddedData ¶
func TstASymbol ¶
func TstCSymbol ¶
func TstFrameBitmap ¶
func TstFrameBitmap() *Bitmap
func TstImageBitmap ¶
func TstImageBitmap() *Bitmap
func TstPSymbol ¶
func (*Bitmap) AddBorderGeneral ¶
func (*Bitmap) ClipRectangle ¶
func (*Bitmap) ConnComponents ¶
func (*Bitmap) CountPixels ¶
func (*Bitmap) CreateTemplate ¶
func (*Bitmap) Equivalent ¶
func (*Bitmap) GetBitOffset ¶
func (*Bitmap) GetByteIndex ¶
func (*Bitmap) GetChocolateData ¶
func (*Bitmap) GetComponents ¶
func (*Bitmap) GetUnpaddedData ¶
func (*Bitmap) GetVanillaData ¶
func (*Bitmap) InverseData ¶
func (_ebgb *Bitmap) InverseData()
func (*Bitmap) RasterOperation ¶
func (*Bitmap) RemoveBorderGeneral ¶
func (*Bitmap) SetDefaultPixel ¶
func (_effd *Bitmap) SetDefaultPixel()
func (*Bitmap) SetPadBits ¶
func (*Bitmap) SizesEqual ¶
func (*Bitmap) ThresholdPixelSum ¶
type Bitmaps ¶
func (*Bitmaps) CountPixels ¶
func (*Bitmaps) GroupByHeight ¶
func (_cbcfe *Bitmaps) GroupByHeight() (*BitmapsArray, error)
func (*Bitmaps) GroupByWidth ¶
func (_cgggcgg *Bitmaps) GroupByWidth() (*BitmapsArray, error)
func (*Bitmaps) HeightSorter ¶
func (*Bitmaps) SelectByIndexes ¶
func (*Bitmaps) SelectBySize ¶
func (_ceff *Bitmaps) SelectBySize(width, height int, tp LocationFilter, relation SizeComparison) (_gfgg *Bitmaps, _befeg error)
func (*Bitmaps) SortByHeight ¶
func (_efef *Bitmaps) SortByHeight()
func (*Bitmaps) SortByWidth ¶
func (_bged *Bitmaps) SortByWidth()
func (*Bitmaps) WidthSorter ¶
type BitmapsArray ¶
func (*BitmapsArray) AddBitmaps ¶
func (_edbd *BitmapsArray) AddBitmaps(bm *Bitmaps)
func (*BitmapsArray) AddBox ¶
func (_acdg *BitmapsArray) AddBox(box *_bg.Rectangle)
func (*BitmapsArray) GetBitmaps ¶
func (_acbgb *BitmapsArray) GetBitmaps(i int) (*Bitmaps, error)
type BoundaryCondition ¶
type BoundaryCondition int
const ( AsymmetricMorphBC BoundaryCondition = iota SymmetricMorphBC )
var MorphBC BoundaryCondition
type Boxes ¶
func (*Boxes) SelectBySize ¶
func (_bccc *Boxes) SelectBySize(width, height int, tp LocationFilter, relation SizeComparison) (_abba *Boxes, _afeb error)
type ClassedPoints ¶
func NewClassedPoints ¶
func NewClassedPoints(points *Points, classes _e.IntSlice) (*ClassedPoints, error)
func (*ClassedPoints) GetIntXByClass ¶
func (_cggge *ClassedPoints) GetIntXByClass(i int) (int, error)
func (*ClassedPoints) GetIntYByClass ¶
func (_bgfb *ClassedPoints) GetIntYByClass(i int) (int, error)
func (*ClassedPoints) GroupByY ¶
func (_cace *ClassedPoints) GroupByY() ([]*ClassedPoints, error)
func (*ClassedPoints) Len ¶
func (_eabb *ClassedPoints) Len() int
func (*ClassedPoints) Less ¶
func (_caefd *ClassedPoints) Less(i, j int) bool
func (*ClassedPoints) SortByX ¶
func (_fcgf *ClassedPoints) SortByX()
func (*ClassedPoints) SortByY ¶
func (_dccb *ClassedPoints) SortByY()
func (*ClassedPoints) Swap ¶
func (_eccc *ClassedPoints) Swap(i, j int)
func (*ClassedPoints) XAtIndex ¶
func (_geaf *ClassedPoints) XAtIndex(i int) float32
func (*ClassedPoints) YAtIndex ¶
func (_bbcd *ClassedPoints) YAtIndex(i int) float32
type CombinationOperator ¶
type CombinationOperator int
const ( CmbOpOr CombinationOperator = iota CmbOpAnd CmbOpXor CmbOpXNor CmbOpReplace CmbOpNot )
func (CombinationOperator) String ¶
func (_bbfed CombinationOperator) String() string
type LocationFilter ¶
type LocationFilter int
const ( LocSelectWidth LocationFilter LocSelectHeight LocSelectXVal LocSelectYVal LocSelectIfEither LocSelectIfBoth )
type MorphOperation ¶
type MorphOperation int
const ( MopDilation MorphOperation = iota MopErosion MopOpening MopClosing MopRankBinaryReduction MopReplicativeBinaryExpansion MopAddBorder )
type MorphProcess ¶
type MorphProcess struct { Operation MorphOperation Arguments []int }
type RasterOperator ¶
type RasterOperator int
const ( PixSrc RasterOperator = 0xc PixDst RasterOperator = 0xa PixNotSrc RasterOperator = 0x3 PixNotDst RasterOperator = 0x5 PixClr RasterOperator = 0x0 PixSet RasterOperator = 0xf PixSrcOrDst RasterOperator = 0xe PixSrcAndDst RasterOperator = 0x8 PixSrcXorDst RasterOperator = 0x6 PixNotSrcOrDst RasterOperator = 0xb PixNotSrcAndDst RasterOperator = 0x2 PixSrcOrNotDst RasterOperator = 0xd PixSrcAndNotDst RasterOperator = 0x4 PixNotPixSrcOrDst RasterOperator = 0x1 PixNotPixSrcAndDst RasterOperator = 0x7 PixNotPixSrcXorDst RasterOperator = 0x9 PixPaint = PixSrcOrDst PixSubtract = PixNotSrcAndDst PixMask = PixSrcAndDst )
type Selection ¶
type Selection struct {
Height, Width int
Cx, Cy int
Name string
Data [][]SelectionValue
}
func SelCreateBrick ¶
func SelCreateBrick(h, w int, cy, cx int, tp SelectionValue) *Selection
type SelectionValue ¶
type SelectionValue int
const ( SelDontCare SelectionValue = iota SelHit SelMiss )
type SizeComparison ¶
type SizeComparison int
const ( SizeSelectIfLT SizeComparison SizeSelectIfGT SizeSelectIfLTE SizeSelectIfGTE SizeSelectIfEQ )
type SizeSelection ¶
type SizeSelection int
const ( SizeSelectByWidth SizeSelection SizeSelectByHeight SizeSelectByMaxDimension SizeSelectByArea SizeSelectByPerimeter )
Click to show internal directories.
Click to hide internal directories.