|
|
| Author |
Message |
mlib Level 4


Joined: 24 May 2006 Posts: 409 Feedback Score: 0
Medals: None
|
Posted: Thu Sep 07, 2006 8:11 pm Post subject: Really clever images
|
|
|
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

Joined: 27 Nov 2006 Posts: 11 Feedback Score: 0
Medals: None
|
Posted: Mon Nov 27, 2006 6:32 am Post subject:
|
|
|
| very cool..is that a wolf or what ? |
|
| Back to top |
|
 |
new Member

Joined: 14 May 2006 Posts: 31 Feedback Score: 0
Medals: None
|
Posted: Tue Nov 28, 2006 7:05 pm Post subject:
|
|
|
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


Joined: 24 May 2006 Posts: 409 Feedback Score: 0
Medals: None
|
Posted: Tue Nov 28, 2006 9:25 pm Post subject:
|
|
|
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
|
Posted: Fri Dec 01, 2006 2:42 am Post subject:
|
|
|
Really clever!!
:D |
|
| Back to top |
|
 |
Crischelle -----

Joined: 19 Dec 2007 Posts: 6 Feedback Score: 0
Medals: None
|
Posted: Wed Dec 19, 2007 11:23 am Post subject:
|
|
|
Wow...
No other words necessary. |
|
| Back to top |
|
 |
labmatt ----

Joined: 13 Jun 2008 Posts: 2 Feedback Score: 0
Medals: None
|
Posted: Fri Jun 13, 2008 5:44 am Post subject: good work
|
|
|
| that's really cool....but can you tell me how to decode the original picture from it? |
|
| Back to top |
|
 |
|