Hi,
I have a problem with the extract_subimage method from imgpos.h. I'm
trying to get subimages from a larger image. Then I would like to
binarize the subimage, but I get a segmentation fault. The code looks
like this:
bytearray line, binline;
extract_subimage(line, clean, x0, y0, x1, y1);
if(line.length()!=0) binarizer->binarize(binline, line);
else printf("error in bin");
The x,y coordinates are 100% accurate ints. If I try to binarize the
whole image (substitute 'line' with the bytearray holding the whole
image), it works ok. I don't get any errors at compile time...
I would appreciate any suggestions/ideas,
Thank you in advance,
Bill
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ocropus" 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/ocropus?hl=en
-~----------~----~----~----~------~----~------~--~---