Hello I have a picture of Mat-type so it is a 2D vector. I want to convert it into a 1D vector. how can I do it knowing that I have already used this function it does not work??
/// Convert mat Grad X to vector
vector< float> Vgrad_x;
Vgrad_x.assignTo(smallImages_gradx,-1);