Conversion of Vector Image into RGB Image

3 views (last 30 days)
I convert the image into column vector i.e.
I=imread ('abc.jpg');
Vector_Img= I(:);
Now if I want to reconvert "vector_Img" into RGB image of size [34X34X3]; what should be done?

Accepted Answer

Walter Roberson
Walter Roberson on 17 May 2018
reshape(Vector_Img, 34, 34, 3)

More Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!