whiteboardcleaner

package module
v0.0.0-...-c2e8e0a Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2014 License: MIT Imports: 8 Imported by: 0

README

whiteboardcleaner

Application to clean up picture taken from whiteboard / paperboard

Get

go get github.com/yml/whiteboardcleaner

Install

go install github.com/yml/whiteboardcleaner/...

Run

./bin/whtbc-server

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EdgeKernel

func EdgeKernel(size int) []float32

func LoadImage

func LoadImage(f string) image.Image

func NewFilter

func NewFilter(opts *Options) *gift.GIFT

func NewTempFile

func NewTempFile(prefix string) (*os.File, error)

func SaveImage

func SaveImage(img image.Image, f string)

Types

type Options

type Options struct {
	EdgeDetectionKernelSize        int     // Need to be an odd kernel size (default 15)
	ConvolutionMultiplicator       float32 // default 15
	GaussianBlurSigma              float32 // default 1
	SigmoidMidpoint, SigmoidFactor float32 // SigmoidMidpoint must be between 0 and 1 (default 0.75 100)
	MedianKsize                    int     // MedianKsize must be positive odd number 3, 5, 7 (default 3)
}

func NewOptions

func NewOptions() *Options

func (*Options) ValidAndUpdate

func (opts *Options) ValidAndUpdate(values map[string][]string) map[string]string

ValidAndUpdate the Options based on r.MultipartForm.Value

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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