cpp

Accessing data of leptonica PIX data

Posted on

This is mainly as a reference   /** * Get Pixel value at given point */ l_uint32 pixAtGet(PIX* pix, int_t x, int_t y) { l_int32 wpl = pixGetWpl(pix); l_uint32* data = pixGetData(pix); l_uint32* line = data + y * wpl; l_uint32 value = GET_DATA_BYTE(line, x); return value; } /** * Get Pixel value at given […]