Given a Int array, an Argb32 image, how can i load this into Eigen Matrixes the best way?
The goal is to create a small image processing library. And as the first part i want to convert from RGB to Gray scale.
Are there any way to load the int[] into 3 eigen matrixes wihthout any memory copying ?
(when refering to eigen, its the Linear Algebra Library).
Yes, using the Map<> class with an appropriate inner-stride, for example:
Then you can start playing with them, e.g., construct a gray level floating point version: