Devon McCormick wrote:
Brian - when I read the array at http://schott.selfip.net/~brian/pix/B
, I get
a numeric array of length 84584.  I don't see how to make this correspond
to your array B with shape 160 237 3 since 113760=*/160 237 3 (and
37920=160*237).

Regards,

Devon

That array has no whitespace between RGB triples.

   load '~addons\media\image3\movie3.ijs'
   load '~addons\media\image3\view_m.ijs'

   NB. The data file to image
   $x=:fread '\temp\bsb.dat'
417120
   view_image b=:"."1 ]160 237 11$x
237 160

   NB. or save the jpg and read it in
   view_image B=:read_image '\temp\oktotyler.jpg'
237 160
   b-:B
1
   NB. Guess the frames are 80 by 60; Create 8 frames
   $frames=:80 60&{.&> ,{."1 (80 60,:80 60) <;.3 B
8 80 60 3
   NB. create 8 file names
   $fns=: nx_fn^:(i.8) jpath '~temp\oktotyler000.jpg'
8 31
   NB. write frames
   frames (4 : 'x write_image y')"_1 fns
2294 2488 2448 2262 2223 2424 2443 2207
   NB. create a 2 frame per sec movie
   2 fseq_to_jpeg_mov fns;fn=:jpath  '~temp\oktotyler.mov'

   open_html fn  NB. or use quicktime to load the movie
0



On 4/26/07, Brian Schott <[EMAIL PROTECTED]> wrote:

        I have pictures from a new camera like the trimmed
down copy temporarily at
http://schott.selfip.net/~brian/pix/oktotyler.jpg , and I am
trying to learn how to convert such snapshots into a
minimovie like the ones at http://www.lomohomes.com/oktopus
(click on "minimovies at the bottom right corner of the
webpage).

        I am using Cliff Reiter's image3.ijs addon and at
present am working with a copy of the file put into the noun
B with the verb read_image and $B == 160 237 3 . I am trying
to find the horizontal (and vertical) black lines in B .

        I think I remember a message on the jforum about
locating lines or edges, but I can't find it. It seems I
will have to rotate the image slightly to find the straight
lines because when such images are processed the lines may
not be quite parallel to the horizon and the vertical. I
have placed the array B at
http://schott.selfip.net/~brian/pix/B .

        Any ideas?


(B=) <----------my "sig"

Brian Schott
Atlanta, GA, USA
schott DOT bee are eye eh en AT gee em ae eye el DOT com
http://schott.selfip.net/~brian/
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm





--
Clifford A. Reiter
Mathematics Department, Lafayette College
Easton, PA 18042 USA,   610-330-5277
http://www.lafayette.edu/~reiterc
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to