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 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Jan
el 21 de Mzo. de 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 comentarios
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!