rok commented on issue #43831: URL: https://github.com/apache/arrow/issues/43831#issuecomment-2310688433
> Is there a preferred array representation of Image raster data? There are a few possible, but I'd like to provide something that looks vaguely like a standard. FWIW, at the moment, the numpy array interface does return a shaped array, so the dimensions of the image are available. > > * Flat array `arr[(y*(width)+x)*4 + channel]` > * or Fixed Pixel array `arr[y*(width)+x][channel]`? > * Would it make sense to embed this into a set of FixedArrays that are a line length, `arr[y][x][channel]`? [FixedShapeTensorArray](https://arrow.apache.org/docs/python/generated/pyarrow.FixedShapeTensorArray.html) would probably fit your usecase best, it comes with shape and zero copy to/from numpy conversions. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
