From 336474c6721686c5ce5cbd72f43c2be249287b6c Mon Sep 17 00:00:00 2001 From: Markus Noga Date: Fri, 19 Jun 2020 01:26:58 +0200 Subject: [PATCH] added first tests for debayering --- internal/debayer_test.go | 86 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 internal/debayer_test.go diff --git a/internal/debayer_test.go b/internal/debayer_test.go new file mode 100644 index 0000000..4da5199 --- /dev/null +++ b/internal/debayer_test.go @@ -0,0 +1,86 @@ +// Copyright (C) 2020 Markus L. Noga +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + + +package internal + +import ( + "testing" +) + +func TestDebayerBilinearRGGBToRed(t *testing.T) { + width, height:=int32(7), int32(11) + data:=make([]float32, width*height) + sum:=0 + for i:=0; i