Solved compiling problem at Matrix, and added Referenced() call at imagehistogram constructors