development

Leptonica Tutorial – Cropping

Posted on

Common use is to crop to certain area of an image, this can be quite easily accomplished with following code. BOX* box = boxCreate(x, y, w, h); PIX* dpix= pixClipRectangle(spix, box, NULL);BOX* box = boxCreate(x, y, w, h); PIX* dpix= pixClipRectangle(spix, box, NULL);

development

Leptonica Tutorial – Environment setup

Posted on

Leptonica Development with Eclipse This is the first one of few tutorials that I am writring on using Leptonica image processing library Before we start let’s give credit where the credit is due, and this is goes out to Jay W.(need link) on which this instructions are largely based on. Environment Eclipse MinGW Leptonica I […]