Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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??

/// Convert  mat Grad X  to vector
    vector< float> Vgrad_x;

    Vgrad_x.assignTo(smallImages_gradx,-1);

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??work?? please help me ..

/// Convert  mat Grad X  to vector
    vector< float> Vgrad_x;

    Vgrad_x.assignTo(smallImages_gradx,-1);