This could be very helpful for handling graphics - I could read in a 6
megapixel photo
as a useful 33.5 MB array instead of 134 MB one as I do now.

[I know these numbers don't seem right but they are:
   load 'images'
   $im1=. read_image 'D:\amisc\pix\Photos\2007Q3\20070813\DSCF6222.JPG'
2848 2136 3
   7!:5 <'im1'
134217728
   (<./,>./),im1
0 255
   im1=. im1{a.
   7!:5 <'im1'
33554432
   $im1
2848 2136 3
   */$im1
18249984
  NB. Should be 18 MB but this exceeds a power of 2 boundary so gets rounded
up.
]

On 10/3/07, Raul Miller <[EMAIL PROTECTED]> wrote:
>
> On 10/3/07, Roger Hui <[EMAIL PROTECTED]> wrote:
> > I propose to extend the bitwise operations   m b.   for   m e. 16+i.19
> > to work on character (8-bit or 16-bit) arguments.
>
> I like this idea.
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to