You should also set BitsPerSample and SamplesPerPixel. For example, if you want an 8 bit gray scale image you should write:
OCRImage->IO->Params->TIFF_Compression = ioTIFF_UNCOMPRESSED;
OCRImage->IO->Params->BitsPerSample = 8;
OCRImage->IO->Params->SamplesPerPixel = 1;
quote:
Also, do you think Lanczos3 is the best algorithm to use for upscaling an image that contains text to be OCR'd?
In my opinion (and in my knowledge developing also IEVision, our future OCR plugin) upscaling as step for an OCR doesn't enhance quality of results. It is just a interpolation, it doesn't add information to the image. It is best to acquire the once high-resolution image to upscale it later.