6.2  Image Handling - Splitting Multipaged Tiff Files


The images in a Leica Confocal multipage tiff file may be split into separate tiff or bitmap files (single image pages) and an information text file with the command line program tiffsplit4.exe (see tiffsplit4.html for manual pages).  Tiffsplit4 preserves the original multipaged tiff file(s) and creates a series of standard tiff or bitmap files which have the same name stem as the original multipage tiff file followed by an underscore, channel letter and sequence number.  The standard tiff or bitmap files can be opened with general purpose image processing software such as PhotoShop or Corel Paint.

The example below shows how sim.tif, a 10 layer z-series with 2 channels at each z-level, can be split into 20 individual bitmap files.  The first 10 files called sim_a01.bmp to sim_a10.bmp are the images of the first channel at each z-level.  Files sim_b01.bmp to sim_b10.bmp are single tiff images from the second channel at each z-level.  By default the split files are created in bitmap format.  The inclusion of the command line switch -t causes tiff format files to be formed instead.  The optional command line option -g will force the generated images to be gray scale.  By default the overload and under load blue and green indicator colors are removed and replaced by photometrically correct white and black.

To convert multipaged tiff image file(s) into individual bitmap (.bmp) files:

  1. Open a DOS box (command prompt)
  2. Select the desired drive and typing the letter, a colon and pressing enter (e.g. c: enter)
  3. Change to the desired path, your directory (e.g. cd  \users\tcs_user enter)
  4. Type in the command at c:\users\tcs_user>  tiffsplit4  sim.tif  -g  enter    (-g   converts images into grayscale)
  5. sim_a01.bmp to sim_a10.bmp and sim_b01.bmp to sim_b10.bmp are now created in standard bitmap format and are in gray scale

Note that tiffsplit4.exe can operate on many multipage tiff files by using dos style wild cards ( * and ? ) e.g. tiffsplit4   s*.tif  (splits all tiff image files in the current directory starting with S)

ih_dosbox2.gif (10164 bytes)

N.B.. The command dir /w lists the files present in the directory and does not have to be run.  

Here is the 'My Computer' windows of the same directory.    wpe5.gif (26467 bytes)

Hit Counter

Last updated 10/24/06


Icon_Inverted_Laser.GIF (1500 bytes) Icon_book_white.gif (1143 bytes) 1998-2003 Michael Chua, Cell & Molecular Physiology, UNC.  All rights reserved. 
To Confocal Homepage To Operating the confocal To Booking the confocal Go back a page Comments: Dr. Michael Chua