Importing Images

Image provides means for importing image files with formats different than commonly used (pict, tiff, tif, bmp). Sometimes files are obtained from other types of computers in raw format - no header information is in the file, only the pixel information row by row, but the rows are not differentiated one from another. Such files are read easily if you know the height and width of the image. Sixteen-bit tiff images must be imported, but Image will read the image dimensions from the header.

Reading TIFF File (normal procedure)

This is what the image should look like:

Importing Raw File

The file test_fibr.raw is the same image stored in Raw format - ie. without any header information. It cannot be opened with Image, but it can be imported.


The buttons on the left are for special formats. The buttons on the right are for 8 bit and 16 bt raw format images.

 This dialog appears when the set button is press (in figure on left) to set the image dimensions.

The image should appear the same as the original TIFF:

The result is slanted because the rows are the too short by one pixel, so are offset from the row before it by that amount.

The slant sometimes aids one in guessing what the image width ought to be.

If the offset is wrong, the image will be 'wrapped' horizontally. I've put in an offset here of 40 bytes to show the wrapping, but have used the correct image dimensions of 199x202:

The wrap is noticable both by the fibers going off the image to the left and by the vertical line near the red arrow. The dotted line at the bottom starting at the red arrow are 'nonsense bytes' off the end of the file.

Importing 16 bit TIFF Images

Importing 16 bit tiff images (the pixel values range from 0 - 65535, rather than 0-255) is easier than importing raw file images. It amounts to Opening the file, but using the Import menu and clicking the TIFF button.