Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: test/testing.cpp
- 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