#pragma once #include #include const int AVERAGE_MASK[9] = {1, 1, 1, 1, 1, 1, 1, 1, 1}; const int PREWITT_MASK_DX[9] = {-1, 0, 1, -1, 0, 1, -1, 0, 1}; const int PREWITT_MASK_DY[9] = {-1, -1, -1, 0, 0, 0, 1, 1, 1}; const int SOBEL_MASK_DX[9] = {-1, 0, 1, -2, 0, 2, -1, 0, 1}; const int SOBEL_MASK_DY[9] = {-1, -2, -1, 0, 0, 0, 1, 2, 1}; uint8_t medianFilter(std::array &); uint8_t averageFilter(std::array &); uint8_t prewittDXFilter(std::array &); uint8_t prewittDYFilter(std::array &); uint8_t sobelDXFilter(std::array &); uint8_t sobelDYFilter(std::array &);