Using Eigen Array-of-Arrays for RGB images

前端 未结 3 752
耶瑟儿~
耶瑟儿~ 2021-01-05 05:47

I\'m trying to use the Eigen library for some simple image processing. I\'d use Array3f for an RGB triple and an Array to hold an RGB image. This seems to work partially, an

3条回答
  •  悲哀的现实
    2021-01-05 06:13

    I think Eigen was not meant to be used in this way (with vectors as "scalar" types). I don't know what causes some of the expressions to compile, but for the ones that don't, it's because Eigen sees a + operation on two Arrays, with the left Array's scalar = Array3f, right Array's scalar = float and flags it incompatible.

提交回复
热议问题