> I found out that the coordinates I supply to extract subimage are ok > (x0,y0 - bottom left corner, x1,y1 - top right corner)
That doesn't look right to me. Why are you subtracting anything? Iulib and ocropus consistently use the same argument order for everything. Coordinates are consistently in mathematical order, whether used in vectors or as subscripts to images (image(x,y)). Rectangles are represented as lower and upper bounds, so x0<=x1 and y0<=y1. On display, image(0,0) is the bottom left corner and image(image.dim(0)-1,0) is the bottom right corner. Note that this is different from raster graphics conventions. Note that not all functions explicitly check validity of their arguments--many functions currently rely on array bounds checking and occasionally trapping of null pointers. We'll be adding some additional checks and better diagnostics to help people with debugging. > but for some > reason the Y dimension of the subimage is negative??? I mean the X dim > = x1 - x0, but Y = y1 - y0 has a negative value... Well, you probably passed in a negative value. Tom --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
