필터 지우기
필터 지우기

jumbling of pixels of an image

조회 수: 1 (최근 30일)
shivani
shivani 2014년 12월 31일
댓글: Image Analyst 2014년 12월 31일
I want to scramble a m*n size gray scale image.I just want to make a great disturbance between the pixels so that the image can be completely distorted.For this I need a code for this and I am a beginner and using R2010a version. I have done a code like this but its not efficient. It does not scramble the image completely. grayImage = imread(); subplot(1,2,1); imshow(grayImage); [rows, columns, numberOfColorChannels] = size(grayImage); N=rows; T=1.4938*N+40.8689; disp(T); t=0; T2=ceil(T); disp(T2); c = T imscram= grayImage; while t<T2 for i= 1 : columns for j= 1 : rows r = mod(i+j,N)+1; c = mod(i+(2*j)+1,N)+1; imscram(i,j)=imscram(r,c); end end end
t=t+1; fprintf('t = %f, T2 = %f\n', t, T2); subplot(1,2,2); imshow(imscram);

답변 (1개)

Image Analyst
Image Analyst 2014년 12월 31일
See attached demo.
  댓글 수: 2
Image Analyst
Image Analyst 2014년 12월 31일
shivani's "Answer" moved here because it's not an answer to the original question:
yeah i want like this type of scrambling but how???
Image Analyst
Image Analyst 2014년 12월 31일
Shivani, did you overlook the attached file? It's below the image and called scramble_image.m.

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

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by