Convert vector 2D of Mat type to vector 1D ?
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?? please help me ..
/// Convert mat Grad X to vector
vector< float> Vgrad_x;
Vgrad_x.assignTo(smallImages_gradx,-1);