필터 지우기
필터 지우기

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

조회 수: 5 (최근 30일)
PLACEIUS NISHIGA G
PLACEIUS NISHIGA G 2018년 2월 7일
댓글: Bérenger Mpamy 2022년 11월 7일
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
Bérenger Mpamy
Bérenger Mpamy 2022년 11월 7일
A is your 1D image matrix
B= reshape(A,[size,size]); %size could be 256*256 or 512*512

댓글을 달려면 로그인하십시오.

채택된 답변

KSSV
KSSV 2018년 2월 7일
You need to reshape your 1D vector into mXn matrix. Have a look on reshape function.
  댓글 수: 3
KSSV
KSSV 2018년 2월 7일
What trouble?
PLACEIUS NISHIGA G
PLACEIUS NISHIGA G 2018년 2월 7일
I dont't know how to reconstruct the encoded share.can you please give me the code for decode.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by