Memory usage optimization

This commit is contained in:
nuknal
2024-06-15 13:05:42 +08:00
parent 0c17fee9c7
commit 35bf364e97
7 changed files with 84 additions and 22 deletions

14
pkg/rrc/histogram_test.go Normal file
View File

@@ -0,0 +1,14 @@
package rrc
import "testing"
func TestHistogram(t *testing.T) {
lut, err := LoadLUT("../../data/rrc/B0.LUT", PANCameraProbeNum)
if err != nil {
t.Error(err)
}
if lut[CheckPointProbe][CheckPointGray] != 32767 {
t.Fail()
}
}