mirror of https://bitbucket.org/ausocean/av.git
cmd/rv: fix build issues
This commit is contained in:
parent
f6505488bb
commit
6dd32ea786
|
@ -226,7 +226,7 @@ func run(rv *revid.Revid, ns *netsender.Sender, l *logger.Logger, nl *netlogger.
|
|||
l.Log(logger.Info, "revid successfully reconfigured")
|
||||
|
||||
// Update transform matrix based on new revid variables.
|
||||
p.transform = rv.Config().TransformMatrix
|
||||
p.Update(rv.Config())
|
||||
|
||||
l.Log(logger.Debug, "checking mode")
|
||||
switch ns.Mode() {
|
||||
|
|
|
@ -32,6 +32,7 @@ package main
|
|||
import (
|
||||
"time"
|
||||
|
||||
"bitbucket.org/ausocean/av/revid/config"
|
||||
"bitbucket.org/ausocean/utils/logger"
|
||||
)
|
||||
|
||||
|
@ -50,6 +51,10 @@ func (tp *turbidityProbe) Write(p []byte) (int, error) {
|
|||
return 0, nil
|
||||
}
|
||||
|
||||
func (tp *turbidityProbe) Update(config config.Config) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (tp *turbidityProbe) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -66,7 +66,6 @@ func FindTransform(standardPath, templatePath string) (gocv.Mat, error) {
|
|||
}
|
||||
|
||||
H := gocv.FindHomography(standardCorners, &templateCorners, gocv.HomograpyMethodRANSAC, ransacThreshold, &mask, maxIter, confidence)
|
||||
fmt.Print(H.Type())
|
||||
for i := 0; i < H.Rows(); i++ {
|
||||
for j := 0; j < H.Cols(); j++ {
|
||||
fmt.Printf(" %.10f", H.GetDoubleAt(i, j))
|
||||
|
|
Loading…
Reference in New Issue