ScreenTranslator/ImageProcessing.h

19 lines
430 B
C
Raw Normal View History

#ifndef IMAGEPROCESSING_H
#define IMAGEPROCESSING_H
#include <QImage>
class Pix;
//! Convert QImage to Leptonica's PIX.
2015-09-23 01:41:08 +07:00
Pix * convertImage (const QImage &image);
//! Convert Leptonica's PIX to QImage.
2015-09-23 01:41:08 +07:00
QImage convertImage (Pix &image);
//! Propare image for OCR.
2015-09-23 01:41:08 +07:00
Pix * prepareImage (const QImage &image, int preferredScale);
//! Free allocated resources for image.
2015-09-23 01:41:08 +07:00
void cleanupImage (Pix **image);
#endif // IMAGEPROCESSING_H