i have taken a watermark image and assign -1 value to black and 1 to white to whole watermark now i want permutation of this image. whats would b the efficient method for permuation process of this image.. if anyone have matlab code for this send me and please help me...
regards siyab

댓글 수: 1

umar siyab
umar siyab 2011년 11월 24일
the watermark image only contain black and white colour

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

 채택된 답변

Walter Roberson
Walter Roberson 2011년 11월 24일

0 개 추천

reshape(Image(randperm(numel(Image))),size(Image))

댓글 수: 6

umar siyab
umar siyab 2011년 11월 24일
i didn't get it clear can u explain rhe code to me...... kindly if u hve time to explain
Walter Roberson
Walter Roberson 2011년 11월 24일
See http://www.mathworks.com/help/techdoc/ref/randperm.html
along with linear indexing, http://www.mathworks.com/help/techdoc/math/f1-85462.html#f1-85511
and reshape, http://www.mathworks.com/help/techdoc/ref/reshape.html
umar siyab
umar siyab 2011년 11월 25일
thanks for your kind reply i will work on it...... thanks once again
Sanghamitra Tripathy
Sanghamitra Tripathy 2015년 3월 2일
How to reshape the Image again to the Original Image?
arwa allubani
arwa allubani 2020년 10월 11일
How to reshape the Image again to the Original Image?
Walter Roberson
Walter Roberson 2020년 10월 11일
You cannot get back to the original image by reshaping the result of the above. The order of the pixels has been randomized. You would need to know (or be able to recreate) the random order that was used.

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

추가 답변 (0개)

질문:

2011년 11월 24일

댓글:

2020년 10월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by