Documentation ¶
Index ¶
- type Layer
- type Pipeline
- func (p *Pipeline) AddLayer(layer Layer) error
- func (p *Pipeline) AddPipeline(pipeline Pipeline) error
- func (p *Pipeline) Build() error
- func (p *Pipeline) Cleanup()
- func (p *Pipeline) ExecuteOnImage(img *image.RGBA, timeDat ...int) (*image.RGBA, error)
- func (p *Pipeline) ExecuteOnVideo(file string, outFile string) error
- func (p *Pipeline) SetOpenCLArgs(args ...interface{}) error
- func (p *Pipeline) SetOpenCVArgs(args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layer ¶
type Layer interface { Type() string // contains filtered or unexported methods }
Layer is a layer of an OpenCVL pipeline
func NewOpenCLLayer ¶
NewOpenCLLayer creates a new OpenCL layer
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
Pipeline contains all necessary data for a opencvl pipeline
func BlurPipeline ¶
BlurPipeline performs a gaussian blur, given the magnitude of the blur on the x and y axis
func HSLCorrectPipeline ¶
HSLCorrectPipeline does an HSL color correction pipeline
func RotatePipeline ¶
RotatePipeline rotates an image
func TranslatePipeline ¶
TranslatePipeline translates an image
func (*Pipeline) AddPipeline ¶
AddPipeline allows you to add a pipeline inside of another pipeline
func (*Pipeline) Cleanup ¶
func (p *Pipeline) Cleanup()
Cleanup cleans up the arguments (only applies to OpenCL layers)
func (*Pipeline) ExecuteOnImage ¶
ExecuteOnImage executes the pipeline on an image
func (*Pipeline) ExecuteOnVideo ¶
ExecuteOnVideo executes the pipeline on every frame of a video and encodes it into a new video
func (*Pipeline) SetOpenCLArgs ¶
SetOpenCLArgs sets the arguments for all OpenCL layers
func (*Pipeline) SetOpenCVArgs ¶
func (p *Pipeline) SetOpenCVArgs(args ...interface{})
SetOpenCVArgs sets the arguments for all OpenCV layers