what is the method to retrive an image of size of 256*256 unit8 pixel which is in its one dimension with size 4096*1 unit8
1 次查看(过去 30 天)
显示 更早的评论
Sir when i'm decoding an image i'm getting the pixel values as in the form of one dimesional with size 4096*1 unit8. what is the code to convert it to its original dimension 256*256 keeping the same pixel values
0 个评论
回答(1 个)
Jan
2018-3-21
This is not possible. A [4096 x 1] vector does not have 65536 (256*256) values, such that you cannot reshape it "keeping the same pixel values".
Please explain again with more details, what you want to achieve. Maybe the problem is hidden inside "when i'm decoding an image". This should not reduce the number of pixels to 4096.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!