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

Dependencies:   mbed Map

test/testing.cpp

Committer:
kemzebra
Date:
2020-12-13
Revision:
6:5e9b842d6085
Parent:
5:48f476a1bc60

File content as of revision 6:5e9b842d6085:

/**
*
*   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;
}

*/