This application takes a TIFF file and converts it into Priism's native file format. With the Convert menu select whether you are converting a single file or are combining a series of TIFF files into one Priism file. For a single file, enter the name in TIFF File field; combining multiple files is described below. Enter the destination file or window in the MRC File field and press DoIt to perform the conversion. The application also has a command line interface if that is more convenient for you.
Overview | File Selection | Multiple Image TIFFs | Multiple Files | Palettes | Messages | Command Line
The converter either does one file at a time (the Single File option in the Convert menu) or combines a numbered series of files (the Numbered Series option). The inputs not relevant to the option selected will be grayed out.
Overview | File Selection | Multiple Image TIFFs | Multiple Files | Palettes | Messages | Command Line
When converting a single TIFF file, you have the option of setting how to handle the case when multiple images are present in the file. The default is to only read the first image in the file. The other options are to treat the images as z-sections, separate time measurements, or wavelengths. Treating multiple images as waves does not work when each image has multiple wavelengths already (i.e. RGB data or when converting files with color tables to RGB).
When working converting a series of TIFF files, only the first image in each is read.
Overview | File Selection | Multiple Image Tiffs | Multiple Files | Palettes | Messages | Command Line
The Numbered Series option in the Convert menu allows you to combine multiple TIFF files into one Priism dataset. To select the form of the input file names use the "Name format" menu. That menu has three options for predefined file name formats and a fourth that allows for a custom format. For all of the predefined formats, the file names will start with the contents of the "Directory" field, followed by a slash, followed by the contents of the "Prefix" field. The remainder of the file name depends on which predefined format you select:
If you select the "custom template" option from the "Name format" menu, the input file names will be generated from the contents of the "Template" field. When generating file names, special conversion codes are expanded in the template. The conversion codes have the following general form: %[width]code. The recognized codes are:
width is optional and may be used with the z and t codes to specify the minimum number of digits which are used to display the index value. width may be a positive integer indicating the minimum number of digits to use or the letter a to indicate that the minimum number of digits should be the number of digits in the maximum corresponding index. If an index would have less than the minimum number of digits, leading zeros are added to fill in the missing portion.
As an example of a custom template, if you wanted to combine f0001.tif through f1000.tif from the directory /var/tmp as time points in a single MRC file. You would select "custom template" from the "Name format" menu, enter /var/tmp in the "Directory" field, make sure the "Prefix" field was empty, enter %d/f%4t.tif in the "Template" field, set the range of z indices to start at zero and end at zero with a step of one, and set the range of time points to start at one and end at one thousand with a step of one.
The "Z Start/End/Step" and "T Start/End/Step" fields set the range of z and time point indices, respectively, to use when generating file names. The first value in each field is the starting value, s, to use; the second value is the last possible value, e, to use; and the third value is the increment, i. The indices used will be s, s + i, ..., s + n * i. If i is greater than zero, n is the largest integer such that s + n * i is less than or equal to e. If i is less than zero, n is the largest integer such that s + n * i is greater than or equal to e. s and e must be greater than or equal to zero. i must not be equal to zero.
Overview | File Selection | Multiple Image TIFFs | Multiple Files | Palettes | Messages | Command Line
For pseudocolor TIFF files, which have a color table (palette) that maps the image values to full color RGB, the conversion can use the color table and create an output file with three waves (the as RGB option), or the color table can be ignored and the raw image values will be stored in a single wave (the as Grayscale or as Inverted Grayscale options). The former gives better results when the image in the TIFF file was derived from a full color image. The latter is better if you are interested in data values from an originally single color image which has had a color table applied for visualization purposes.
For images without a color table (full-color RGB or grayscales), this setting has no effect. When an image with a color table is converted, messages to that effect will be written in the log.
Overview | File Selection | Multiple Image TIFFs | Multiple Files | Palettes | Messages | Command Line
Errors that cause the conversion to fail will cause a dialog to appear telling generally in what stage of the process the error occurred. For more information about why the conversion failed or possible non-fatal problems with the conversion, the View Log button in the dialog can be used to display the messages generated. Messages that start with tiff2mrc are generated by the application itself; other messages are from the underlying conversion library.
Overview | File Selection | Multiple Image TIFFs | Multiple Files | Palettes | Messages | Command Line
The command line syntax for tiff2mrc is
tiff2mrc options output_file_name
options may be one or more of the following; you must specify either the -in or -template options to indicate which input file or files to use.
-dir=dir
-in=name or -in=name_format
-multi=option
-palette=conversion
-prefix=pref
-t=start:end[:increment]
-template=custom_template
-z=start:end[:increment]
This example creates the file fish.dat in the current directory which contains, as time points, the images from f0001.tif through f1000.tif in /var/tmp:
tiff2mrc -template=/var/tmp/f%4t.tif -t=1:1000 fish.dat
This example extracts all the images from exp1.tif and saves them as z sections in the MRC file exp1.mrc:
tiff2mrc -in=exp1.tif -multi=z exp1.mrc
Overview | File Selection | Multiple Image TIFFs | Multiple Files | Palettes | Messages | Command Line