On Wed, 20 Mar 2013, Choi wrote:
hello everyone!
It is about a function in api/baseapi.cpp.
void SetImage(const unsigned char* imagedata, int width,
int height,
int bytes_per_pixel, int bytes_per_line);
Is it possible that bytes_per_line not equal to
width*bytes_per_pixel ?
why this function needs bytes_per_line?
I'm sorry for my incorrect English.
If you understand my question and know about that, please
give me an answer.
Thanks.
Yes, it is possible that bytes_per_line does not equal
width*bytes_per_pixel. Some images must have bytes_per_line
a multiple of 4 bytes, and if, say, 2 or 3 bytes per pixel
is used, then it's possible to have extra space left over
at the end of the line. So, bytes_per_line is used to
get the position at the start of each line no matter
where the last line ended.
Cheers,
Rob Komar
--
--
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en
---
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.