samuelpowell / Spinnaker.jl

A Julia interface to the FLIR/PointGrey Spinnaker SDK
MIT License
16 stars 7 forks source link

Images require transposition #15

Closed samuelpowell closed 5 years ago

samuelpowell commented 5 years ago

Raw images are returned from the camera in row-major format, e.g. such that in memory they appear as image[x + y * height]. In Julia the natural reshaping to form an array leads to a matrix of dimension (width, height), which is transposed relative to the normal expectation that an image be of dimension (height, width). Transposition will not be implemented as this adds extra overhead, but this will be noted in documentation.