next up previous 231
Next: Modifying a copy of an image
Up: Modifying images
Previous: Modifying images

Modifying an image

This snippet of Fortran shows an existing image being accessed so that it can be modified in place (that is, without creating a new copy):

*  Access an existing image.
      CALL IMG_MOD( 'IN', NX, NY, IP, ISTAT )

*  Fill the image with a value.
      CALL DOFILL( %VAL( IP ), NX, NY, ISTAT )

*  Free the image.
      CALL IMG_FREE( 'IN', ISTAT )



next up previous 231
Next: Modifying a copy of an image
Up: Modifying images
Previous: Modifying images

IMG Simple Image Data Access
Starlink User Note 160
P.W. Draper
R.F. Warren-Smith
3 March 2003
E-mail:P.W.Draper@durham.ac.uk

Copyright © 2000-2003 Council for the Central Laboratory of the Research Councils