Ask Your Question

Revision history [back]

Convert grayscale cv::Mat to PIX

How should I convert opencv grayscale Mat to leptonica's PIX format.

Also elaborate on converting an cv::Mat image.data to leptonica's PIX* p; p->data;

How should I use bitwise operations along with for loop to map the 8bit grayscale image to 32 bit grayscale image.