Clear Filters
Clear Filters

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 view (last 30 days)
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

Answers (1)

Jan
Jan on 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.

Categories

Find more on Image Processing Toolbox 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!