Save as Formatted File

Save as Formatted File

This option provides the ability to write out the contents of an image as a simple formatted (ASCII) file with a variety of formats.

Save which buffer ?

Any valid buffer can be saved to a file. The selected buffer will be made the current output buffer.

Name of file to write image to ?

The name of the file (and optionally the path) to save the image to.

Write out Window or whole Screen ?

The contents of either a window within the chosen buffer or of the entire screen (in which case this option is equivalent to 'S' without any compacting) may be written out. If a Window is selected, then the normal method and considerations for specifying a window are relevant. Help with window specification is available through the H help option in the windows submenu.

Data formats
S  Simple pixel stream (nj,ni,P00,P01,P02,...)
P  Pixel position and intensity (j,i,Pij)     
W  World position and intensity (x,y,Pxy)
Select format (press <f1> for details of formats)

This entry determines the layout of the data in the formatted file. Details of each option are as follows:

S Simple pixel stream

           The first two numbers give the number of pixels across and down
           the image.

           The remaining numbers give the pixel intensities ordered from left
           to right then top to bottom through the specified window.

P Pixel position and intensity.

           Each line in the file represents one pixel.

           The first number on each line is the horizontal position, relative
           to the left-hand side of the window.

           The second number on each line is the vertical position, relative
           to the top of the window.

           The third number on each line is the pixel intensity.

W World position and intensity.

           Each line in the file represents one pixel.

           The first number on each line is the world x coordinate of the
           pixel.

           The second number on each line is the world y coordinate of the
           pixel.

           The third number on each line is the pixel intensity.

Errors, Warnings and Messages

Writing formatted image file...


Parent menu

Main Menu

DigImage User Documentation


Stuart Dalziel, last page update: 19 February 1996