Kemal Zebari / Mbed 2 deprecated rgb-data-with-stats

Dependencies:   mbed Map

Revision:
5:48f476a1bc60
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/testing.cpp	Sun Dec 13 10:37:27 2020 +0000
@@ -0,0 +1,38 @@
+/**
+*
+*   Manual-testing file
+*   for stat implementations
+*
+*/
+
+/*
+#include <iostream>
+#include <vector>
+#include <cstdlib>
+
+#include "rgbhlr.h"
+#include "rgbstats.h"
+using namespace rgb_dws;
+
+int main() {
+    srand(time(NULL));
+    std::vector<RGB> d; 
+    d.resize(30);
+
+std::cout << "Red\tGreen\tBlue\n";
+
+    for(int i = 0; i < d.size(); i++) {
+        d[i].red    = rand() % 256;
+        d[i].green  = rand() % 256;
+        d[i].blue   = rand() % 256;
+        std::cout << d[i].red << "\t" << d[i].green << "\t" << d[i].blue << "\n";
+    }
+
+
+    RGBCalc test = samp_mean(d);
+    std::cout << "\n";
+    std::cout << test.red << " " << test.green << " " << test.blue << "\n";
+    return 0;
+}
+
+*/
\ No newline at end of file