I have a 384*256 gray scale image which I partitioned into 24 equal size block. Now from these 24 blocks I want to reconstruct an image which is of same size as of input image but in which sequence of the blocks are different from the original block.

조회 수: 1 (최근 30일)
I have a 384*256 gray scale image which I partitioned into 24 equal size block. Now from these 24 blocks I want to reconstruct an image which is of same size as of input image but in which sequence of the blocks are different from the original block sequence i.e. for original block sequence are 1,2,3....24 but that sequence will not be same as this.
  댓글 수: 2
Jan
Jan 2017년 3월 22일
편집: Jan 2017년 3월 22일
Okay. What have you tried and which problems occur? Or in other words: What is the problem?
How are the blocks stored?
sumit kumar
sumit kumar 2017년 3월 22일
i have divided 384*256 image into 24 blocks each of size 64*64 so i have a 3-D array of size 64*64*24 where 24 denotes the block no. My question is I need to reconstruct a new image of size 384*256 in which these 24 blocks positions are shuffled according to a predefined sequence.

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

답변 (1개)

Jan
Jan 2017년 3월 22일
x = rand(64, 64, 24); % Example data
y = x(:, :, randperm(24));
Now the blocks are shuffled. How did you split the image into blocks? The reverse method creates an image again.
  댓글 수: 2
sumit kumar
sumit kumar 2017년 3월 23일
Thanks Jan Simon But it will create matrix y of size same as x but I want the sequence of those blocks according to me. Can you provide me your email-id I can send you my code. It might help you more to understand the problem more clearly.
sumit kumar
sumit kumar 2017년 3월 23일
one more thing it will create a 3-D image but i want to recreate the image of size 384*256.

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

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by