[osg-users] Image to Array

2015-05-13 Thread Andreas Schreiber
Hi, i am searching for the functionality to store an image (for example a *.jpg image) in an array so I can analyse an explicit part of the image. I did this once in java where I used an int[][][] to get to the position of an pixel and then get his color vec. But there I used and extra class

Re: [osg-users] Image to Array

2015-05-13 Thread Robert Osfield
Hi Andreas, There isn't an OSG function to convert an osg::Image into array, there are however, various ways to access the data, and if you wanted to write your own conversion tool you could. Have a look at the template helpers in include/osg/ImageUtils. Robert. On 13 May 2015 at 13:50,