Hyperspectral Imaging

And how can I linearly access to the Image information? I more or less understand the commands in Linear Access to the image data, but I don’t know how to apply them properly. Is there maybe somewhere a code example?