C++14 mini project

Job ID: 33125214

Budget: $30 – $250 USD

A data structure in various computer vision and graphics work.
The code is highly performance critical: it is called millions of times per
image, often with very large kernels (thousands of pixels).

A header will be provided showing the interface that needs to be implemented.

The constructor receives an 8-bit two-dimensional pixel buffer.
The input buffers are guaranteed to be < 4096 x 4096 pixels.

The input buffer pixels are organized linearly with (0,0) at the beginning.

The required class should be able to provide efficient
implementations of the following operations:

unsigned int getPixelSum (int x0, int y0, int x1, int y1) const;
double getPixelAverage (int x0, int y0, int x1, int y1) const;

More details can be provided

The code must be properly commented

Unit testing using Google Tests must be provided