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
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Jan
le 21 Mar 2018
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 commentaires
Voir également
Catégories
En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!