Clear Filters
Clear Filters

How to reconstruct a original 2D image from the 1D matrix?

5 views (last 30 days)
upto now I convert 2D image into 1D image matrix.I want to reconstruct into 2D image.I have a struggle on this.can you please help me?
  1 Comment
Bérenger Mpamy
Bérenger Mpamy on 7 Nov 2022
A is your 1D image matrix
B= reshape(A,[size,size]); %size could be 256*256 or 512*512

Sign in to comment.

Accepted Answer

KSSV
KSSV on 7 Feb 2018
You need to reshape your 1D vector into mXn matrix. Have a look on reshape function.
  3 Comments
PLACEIUS NISHIGA G
PLACEIUS NISHIGA G on 7 Feb 2018
I dont't know how to reconstruct the encoded share.can you please give me the code for decode.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!