mirror of https://bitbucket.org/ausocean/av.git
Updated experiment
This commit is contained in:
parent
651488fc59
commit
74355b1ba8
|
@ -7,7 +7,7 @@ type Results struct {
|
||||||
contrast []float64
|
contrast []float64
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *Results) New(n int) {
|
func (r *Results) new(n int) {
|
||||||
r.turbidity = make([]float64, n)
|
r.turbidity = make([]float64, n)
|
||||||
r.saturation = make([]float64, n)
|
r.saturation = make([]float64, n)
|
||||||
r.contrast = make([]float64, n)
|
r.contrast = make([]float64, n)
|
||||||
|
|
|
@ -33,6 +33,9 @@ func (ts TurbiditySensor) Evaluate(imgs []gocv.Mat) (Results, error) {
|
||||||
// Apply sobel filter.
|
// Apply sobel filter.
|
||||||
edge := ts.Sobel(marker)
|
edge := ts.Sobel(marker)
|
||||||
|
|
||||||
|
gocv.IMWrite("marker.jpg", marker)
|
||||||
|
gocv.IMWrite("edge.jpg", edge)
|
||||||
|
|
||||||
// Evaluate image.
|
// Evaluate image.
|
||||||
scores, err := ts.EvaluateImage(marker, edge)
|
scores, err := ts.EvaluateImage(marker, edge)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue