Documentation ¶
Index ¶
- Constants
- Variables
- func ZhangSuen(src gocv.Mat, dst *gocv.Mat)
- type GridConfig
- func (gc *GridConfig) ColArea() float64
- func (gc *GridConfig) ColRect(col int) image.Rectangle
- func (gc *GridConfig) FieldArea() float64
- func (gc *GridConfig) FieldRect(row, col int) image.Rectangle
- func (gc GridConfig) GoString() string
- func (gc *GridConfig) RowArea() float64
- func (gc *GridConfig) RowRect(row int) image.Rectangle
- type Sample
- func (sample *Sample) Area() int
- func (sample *Sample) CenterOfMass() image.Point
- func (sample *Sample) Close()
- func (sample *Sample) Copy() *Sample
- func (sample *Sample) Crop()
- func (sample *Sample) Empty() bool
- func (sample *Sample) Enlarge(width int, height int, c *color.RGBA)
- func (sample *Sample) Foreground()
- func (sample *Sample) GoString() string
- func (sample *Sample) Height() int
- func (sample *Sample) Histogram(dir, filename string, bins int) error
- func (sample *Sample) Load(mat gocv.Mat)
- func (sample *Sample) Mat() gocv.Mat
- func (sample *Sample) MatType() gocv.MatType
- func (sample *Sample) Normalize()
- func (sample *Sample) Preprocess(ratio float64)
- func (sample *Sample) Ratio() float64
- func (sample *Sample) Resize(width int, ratio float64)
- func (sample *Sample) Save(dir, filename string, show bool) string
- func (sample *Sample) ToLines()
- func (sample *Sample) Update()
- func (sample *Sample) Width() int
- func (sample *Sample) ZhangSuen()
- type SampleGrid
- type UserSample
Constants ¶
View Source
const (
TargetWidth = 500.0
)
Variables ¶
View Source
var BlackGoCV uint8 = 0
View Source
var Debug = false
View Source
var WhiteGoCV uint8 = 255
Functions ¶
Types ¶
type GridConfig ¶
type GridConfig struct {
// contains filtered or unexported fields
}
func NewGridConfig ¶
func NewGridConfig(sample *Sample, rows, cols uint16) GridConfig
func (*GridConfig) ColArea ¶
func (gc *GridConfig) ColArea() float64
func (*GridConfig) FieldArea ¶
func (gc *GridConfig) FieldArea() float64
func (GridConfig) GoString ¶
func (gc GridConfig) GoString() string
func (*GridConfig) RowArea ¶
func (gc *GridConfig) RowArea() float64
type Sample ¶
type Sample struct {
// contains filtered or unexported fields
}
func (*Sample) CenterOfMass ¶
func (*Sample) Foreground ¶
func (sample *Sample) Foreground()
func (*Sample) Preprocess ¶
type SampleGrid ¶
type SampleGrid struct {
// contains filtered or unexported fields
}
func NewSampleGrid ¶
func NewSampleGrid(sample *Sample, rows, cols uint16) *SampleGrid
func (*SampleGrid) At ¶
func (sg *SampleGrid) At(row, col int) *Sample
func (*SampleGrid) Config ¶
func (sg *SampleGrid) Config() *GridConfig
func (SampleGrid) GoString ¶
func (sg SampleGrid) GoString() string
func (*SampleGrid) Save ¶
func (sg *SampleGrid) Save(dir, filename string, show bool)
type UserSample ¶
type UserSample struct {
// contains filtered or unexported fields
}
func NewUserSample ¶
func NewUserSample(username, filename string) (*UserSample, error)
func (*UserSample) Close ¶
func (s *UserSample) Close()
func (*UserSample) Copy ¶
func (s *UserSample) Copy() *UserSample
func (*UserSample) Preprocess ¶
func (s *UserSample) Preprocess()
func (*UserSample) Sample ¶
func (s *UserSample) Sample() *Sample
func (*UserSample) Save ¶
func (s *UserSample) Save(dir, filename string, show bool)
Click to show internal directories.
Click to hide internal directories.