Add new comment

Got it - is the data in the

Got it - is the data in the ushort arrays in "network byte order" or do I need to do a byte-swap?

Thank you.

AFAICT, the image at (e.g.) raw_image is raw_width*raw_height.

How to actually skip the image frame/border - do I need to offset by top_margin/left margin? Do you have a neat bit of code to iterate through the rows and skip the margins (I don't want to reinvent the wheel) so I only extract the rectangle that is width*height and (I assume) centred in the frame?

Thanks again

David Partridge