/** @file * @author Edouard DUPIN * @copyright 2016, Edouard DUPIN, all right reserved * @license MPL v2.0 (see license file) */ #include #include #include static void usage(int _retValue = 0) { APPL_PRINT("Help : "); APPL_PRINT(" ./xxx [options]"); APPL_PRINT(" -h/--help: Display this help"); APPL_PRINT(" -i/--input: Input of the calculator"); APPL_PRINT(" -o/--output: Output of the calculator"); exit(_retValue); } int main(int argc, const char *argv[]) { // the only one init for etk: etk::init(argc, argv); etk::String input; etk::String output; for (int32_t iii=0; iii an error occured..."); return -2; } APPL_INFO("read [STOP ]"); ivec2 middle = image.getSize() / 2; APPL_INFO("Source Image Size:" << image.getSize()); uint8_t baseValue = 0x40; // top: uint_t posTop = 0; uint_t posBottom = image.getSize().y(); uint_t posLeft = 0; uint_t posRight = image.getSize().x(); uint_t maxOutOfRange = 3; for (uint_t yyy=0; yyy=middle.y()+maxOutOfRange; --yyy) { bool found = false; //APPL_DEBUG("Check position:" << yyy); for (uint_t iii=0; iii=middle.x()+maxOutOfRange; --xxx) { bool found = false; //APPL_DEBUG("Check position:" << yyy); for (uint_t iii=0; iii an error occured..."); return -3; } APPL_INFO("write [STOP ]"); return 0; }