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

1 vue (au cours des 30 derniers jours)
PLACEIUS NISHIGA G
PLACEIUS NISHIGA G le 7 Fév 2018
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 commentaire
Bérenger Mpamy
Bérenger Mpamy le 7 Nov 2022
A is your 1D image matrix
B= reshape(A,[size,size]); %size could be 256*256 or 512*512

Connectez-vous pour commenter.

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by