Re: Fractional SHIFT - Typo! [message #28347] |
Mon, 03 December 2001 15:50 |
Dick Jackson
Messages: 347 Registered: August 1998
|
Senior Member |
|
|
Sorry, folks, one little typo spoils the whole demo.
That should read:
=====
For fun, see an image scroll *very* smoothly around itself (1/10 of a pixel
per step) with:
file = FILEPATH('rose.jpg', SUBDIR=['examples', 'data'])
READ_JPEG, file, r ;<===== fixed
for i=0,100 do tv,/true,fracshift(r,[0,i*10/100.,i*10/100.])
... then for a strange spin through colour-space (which I dedicate to the
dear, late George Harrison), try:
for i=0,100 do tv,/true,fracshift(r,[i*3/100.,0,0])
(while watching this I was put in the mind of "Within You Without You" from
Sgt. Pepper)
=====
Cheers,
--
-Dick
Dick Jackson / dick@d-jackson.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
|
|
|