示例#1
0
文件: multi.go 项目: jvlmdr/go-cv
// Plus computes the sum of two images.
// Does not modify either input.
func (f *Multi) Plus(g *Multi) *Multi {
	dst := NewMulti(f.Width, f.Height, f.Channels)
	floats.AddTo(dst.Elems, f.Elems, g.Elems)
	return dst
}
示例#2
0
文件: image.go 项目: jvlmdr/go-cv
// Plus computes the sum of two images.
// Does not modify either input.
func (f *Image) Plus(g *Image) *Image {
	dst := New(f.Width, f.Height)
	floats.AddTo(dst.Elems, f.Elems, g.Elems)
	return dst
}