Convert imread output to vector

Thanks for your reply!
Forgot to mention that i use C++…