Image convert to vector and vector convert to image
2 次查看(过去 30 天)
显示 更早的评论
Hi how i convert an image to vector and convert the vector to first image. If possible, do not use the reshape command. i will apply this your code for image converting of each 400 images database. if i use reshape command in converting loop of 400 images i get an error. Thanks.
1 个评论
回答(1 个)
Jakob Sørensen
2012-3-29
Have you tried using vec2mat to convert from vector to matrix? And the other way you can just use vector = matrix(:)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!