On 6/27/2010 12:18 PM, Kartik Thakore wrote:

This is a good idea. How do I make a piddle of bytes 4 * $width * $height ?

    At least you would have all the surface and piddle data
    in the same spot which seems to be your difficulty here

This might be easier indeed, thanks.

  PDL> $width = 640;

  PDL> $height = 480;

  PDL> $piddle = zeroes(byte,4,$width,$height);

  PDL> ?vars
  PDL variables in package main::

  Name         Type   Dimension       Flow  State          Mem
  $piddle        Byte D [4,640,480]          P            1.17Mb

Reply via email to