The project is developed in C++ to count number of coloured areas in an image. The program has :
Input: a grey-scale image represented as a 2-dimensional array of unsigned bytes.
Output: array of 256 unsigned int numbers, each of them being a count of areas coloured with the corresponding shade of grey.
- Clone the app to your local computer
- navigate to the project directory
- type make // it will generate the binary file to bin folder
- type ./bin/count-areas --shape , e.g. ./bin/count-areas sample.bin --szie 255,255