www.kluid.comKluid Home | Contact Us  | FAQFAQ    | SearchSearch | DownloadAttachment Manager  | Private messagesPrivate messages  | RegisterRegister  | Log inLog in   
Kluid Forum Index
Forum for Computational Languages & Techniques
 
 Please help us to develop!

Calendar
Really clever images

 
Post new topic   Reply to topic       Kluid Forum Index -> Matlab : Fun
Author Message
mlib
Level 4
Level 4


Joined: 24 May 2006
Posts: 409
Feedback Score: 0


Medals: None

PostPosted: Thu Sep 07, 2006 8:11 pm    Post subject: Really clever images Reply with quote

MATLAB can be used for some rather incredible things. For example, several pictures can be encoded in a single MATLAB image with a clever use of floating point numbers. Execute the following MATLAB statements:

id = get(image,'CData');
id = (id-floor(id))*32;
image(id);

Repeat last two line with 64 & 128 in place of 32. I like this trick

Mlib
Back to top
crazygrey
Member
Member


Joined: 27 Nov 2006
Posts: 11
Feedback Score: 0


Medals: None

PostPosted: Mon Nov 27, 2006 6:32 am    Post subject: Reply with quote

very cool..is that a wolf or what ?
Back to top
new
Member
Member


Joined: 14 May 2006
Posts: 31
Feedback Score: 0


Medals: None

PostPosted: Tue Nov 28, 2006 7:05 pm    Post subject: Reply with quote

May be a dog wolf Hybrid. One thing I noticed that in the newer addition of Matlab we need to use "clear" to make it work after the first run.
I have modified it a little

Code:
id = get(image,'CData');
n=2;
for i=2:2:32
ide = (id-floor(id))*(n*i);
image(ide);
disp('press any key')
pause
clear ide
end

nice trick Mlib!
Back to top
mlib
Level 4
Level 4


Joined: 24 May 2006
Posts: 409
Feedback Score: 0


Medals: None

PostPosted: Tue Nov 28, 2006 9:25 pm    Post subject: Reply with quote

Actually you got it wrong, I don't want you to increment n here just repeat the last two statements and you will see different images every time. Its a way to hide images or a secret messages in your data.

Code:
id = get(image,'CData');
n=32;
for i=1:10
id = (id-floor(id))*n;
image(id);
disp('press any key')
pause
end


you don't need any 'clear'. You can also try above codes with n = 16, 64, 128.

mlib
Back to top
ForceNZ
-----
-----


Joined: 07 Sep 2006
Posts: 6
Feedback Score: 0


Medals: None

PostPosted: Fri Dec 01, 2006 2:42 am    Post subject: Reply with quote

Really clever!!

:D
Back to top
Crischelle
-----
-----


Joined: 19 Dec 2007
Posts: 6
Feedback Score: 0


Medals: None

PostPosted: Wed Dec 19, 2007 11:23 am    Post subject: Reply with quote

Wow...
No other words necessary.
Back to top
labmatt
----
----


Joined: 13 Jun 2008
Posts: 2
Feedback Score: 0


Medals: None

PostPosted: Fri Jun 13, 2008 5:44 am    Post subject: good work Reply with quote

that's really cool....but can you tell me how to decode the original picture from it?
Back to top
Display posts from previous:   
Post new topic   Reply to topic       Kluid Forum Index -> Matlab : Fun All times are GMT - 12 Hours
Page 1 of 1

 


Kluid © 2006, Kluid Management      php.B.B © 2006
www.kluid.comKluid Home | FAQFAQ    | RegisterRegister  | Log inLog in