Templated version - Matrix<V>, Intensity<T,NUM>