How to scramble specific elements within an image?

조회 수: 9 (최근 30일)
Maria Kelly
Maria Kelly 2015년 8월 26일
답변: Maria Kelly 2015년 8월 26일
Hi there,
Although I am able to successfully scramble entire images (using JigSaw.m, or RANDBLOCK.m), I cannot figure out how to scramble specific matrix elements within each image. I have attached 'before' and 'after' images showing precisely what I wish to achieve.
The first image is divided into an 8 x 7 matrix, and specific elements (i.e.,1,1;1,2;1,3;1,4;1,5;2,1;2,2;2,3;2,4;2,5;3,1;3,2;3,3;3,4;3,5;4,2;4,3;4,4;5,2;5,3;5,4;6,2;6,3;6,4) are then scrambled to produce the second image.
I would be ever so grateful for any advice, as am a novice to Matlab, and need to complete the stimuli asap!
Kindest regards
Maria

답변 (2개)

Image Analyst
Image Analyst 2015년 8월 26일
See my attached image scrambling demo.

Maria Kelly
Maria Kelly 2015년 8월 26일
Hi there,
Thanks so much for your response, however, this is not what I meant. Perhaps you are unable to view the image I attached? If so the link to images is here: http://faceresearch.org/demos/scramble
I just want to scramble specific 'blocks' within the image, I scramble the image using JigSaw.m, but need to know how to specify the particular blocks to scramble within this.
Many thanks,
Maria

Community Treasure Hunt

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

Start Hunting!

Translated by