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