Routines for writing TIFF images


Functions

void IPGZ::writeFloat2Tiff2D (char *outFilename, PixelArray2D< float > *data, int R, int G, int B, int compress)
 Routine to write floating point information stored in the PixelArray2D class to a TIFF file.
void IPGZ::writeFloat2Tiff2D (char *outFilename, PixelArray2D< float > *data1, int R1, int G1, int B1, PixelArray2D< float > *data2, int R2, int G2, int B2, int compress)
 Routine to merge floating point information stored in two instances of the PixelArray2D class and write to a TIFF file.
void IPGZ::writeOverlay2Tiff (char *inFilename, char *outFilename, PixelArray2D< bool > *data, int R, int G, int B, int compress, int outputStyle)
 Routine to read in a TIFF file and selectively overwrite certain information corresponding to particle positions and then write to a tiff file.
void IPGZ::writeOverlay2Tiff3D (char *inFilenamePattern, int min, int max, char *outFilenamePattern, PixelArray3D< bool > *data, int R, int G, int B, int compress, int outputStyle)
 Routine to read in a series of TIFF images and selectively overwrite certain information corresponding to particle positions and then write out corresponding tiff file.
void IPGZ::writeIntensity2Tiff (char *outFilename, PixelArray2D< bool > *data, int R, int G, int B, int compress, int outputStyle)
 Routine to write a TIFF file using intensity data to selectively overwrite certain pixels.


Function Documentation

void IPGZ::writeFloat2Tiff2D ( char *  outFilename,
PixelArray2D< float > *  data1,
int  R1,
int  G1,
int  B1,
PixelArray2D< float > *  data2,
int  R2,
int  G2,
int  B2,
int  compress 
)

Routine to merge floating point information stored in two instances of the PixelArray2D class and write to a TIFF file.

Parameters:
outFilename Correpsonds to the name of the TIFF file to write to disk.
data1 The instance ofthe PixelArray2D class that stores the first set of intensity data.
R1 Corresponds to the how much the red channel expresses the intensity information saved in data1. This number should range from 0 to 255.
G1 Corresponds to the how much the green channel expresses the intensity information saved in data1. This number should range from 0 to 255.
B1 Corresponds to the how much the blue channel expresses the intensity information saved in data1. This number should range from 0 to 255.
data2 The instance ofthe PixelArray2D class that stores the second set of intensity data.
R2 Corresponds to the how much the red channel expresses the intensity information saved in data2. This number should range from 0 to 255.
G2 Corresponds to the how much the green channel expresses the intensity information saved in data2. This number should range from 0 to 255.
B2 Corresponds to the how much the blue channel expresses the intensity information saved in data2. This number should range from 0 to 255.
compress Toggles the application of compression to the resulting tiff file. The available options are IP_NONE and IP_COMPRESS (no compression, apply compression respectively).

void IPGZ::writeFloat2Tiff2D ( char *  outFilename,
PixelArray2D< float > *  data,
int  R,
int  G,
int  B,
int  compress 
)

Routine to write floating point information stored in the PixelArray2D class to a TIFF file.

Parameters:
outFilename Correpsonds to the name of the TIFF file to write to disk.
data The instance ofthe PixelArray2D class that stores the intensity data.
R Corresponds to the how much the red channel expresses the intensity information saved in data. This number should range from 0 to 255.
G Corresponds to the how much the green channel expresses the intensity information saved in data. This number should range from 0 to 255.
B Corresponds to the how much the blue channel expresses the intensity information saved in data. This number should range from 0 to 255.
compress Toggles the application of compression to the resulting tiff file. The available options are IP_NONE and IP_COMPRESS (no compression, apply compression respectively).

void IPGZ::writeIntensity2Tiff ( char *  outFilename,
PixelArray2D< bool > *  data,
int  R,
int  G,
int  B,
int  compress,
int  outputStyle 
)

Routine to write a TIFF file using intensity data to selectively overwrite certain pixels.

Parameters:
outFilename Corresponds to the name of the TIFF file to write to disk.
data The instance of the PixelArray2D class that stores the boolean information that tells the routine whether to overwrite a specific pixel.
R Corresponds to the how much the red channel is expressed at each overwritten pixel. This number should range from 0 to 255.
G Corresponds to the how much the green channel is expressed at each overwritten pixel. This number should range from 0 to 255.
B Corresponds to the how much the blue channel is expressed at each overwritten pixel. This number should range from 0 to 255.
compress Toggles the application of compression to the resulting tiff file. The available options are IP_NONE and IP_COMPRESS (no compression, apply compression respectively).
outputStyle Toggles how the overlay is written. Options are IP_DOT and IP_PLUS corresponding to the individual pixel being overwritten or a plus sign being drawn.

void IPGZ::writeOverlay2Tiff ( char *  inFilename,
char *  outFilename,
PixelArray2D< bool > *  data,
int  R,
int  G,
int  B,
int  compress,
int  outputStyle 
)

Routine to read in a TIFF file and selectively overwrite certain information corresponding to particle positions and then write to a tiff file.

Parameters:
inFilename Corresponds to the name of the original TIFF file.
outFilename Corresponds to the name of the TIFF file to write to disk.
data The instance of the PixelArray2D class that stores the boolean information that tells the routine whether to overwrite a specific pixel.
R Corresponds to the how much the red channel is expressed at each overwritten pixel. This number should range from 0 to 255.
G Corresponds to the how much the green channel is expressed at each overwritten pixel. This number should range from 0 to 255.
B Corresponds to the how much the blue channel is expressed at each overwritten pixel. This number should range from 0 to 255.
compress Toggles the application of compression to the resulting tiff file. The available options are IP_NONE and IP_COMPRESS (no compression, apply compression respectively).
outputStyle Toggles how the overlay is written. Options are IP_DOT and IP_PLUS corresponding to the individual pixel being overwritten or a plus sign being drawn.

void IPGZ::writeOverlay2Tiff3D ( char *  inFilenamePattern,
int  min,
int  max,
char *  outFilenamePattern,
PixelArray3D< bool > *  data,
int  R,
int  G,
int  B,
int  compress,
int  outputStyle 
)

Routine to read in a series of TIFF images and selectively overwrite certain information corresponding to particle positions and then write out corresponding tiff file.

Parameters:
inFilenamePattern General pattern of the filenames that will be read into the array. This must contain a C-style format specifier for an integer (%d). For example, "stack_%d.tiff" for filenames {"stack_1.tiff", "stack_2.tiff", etc), or stack_%.3d.tiff for filenames {"stack_001.tiff", "stack_002.tiff"}. Note the overall range must match the data stored in PixelArray3D.
min Corresponds to the number to start with for substitution into the filenamePattern.
max Corresponds to the number to end with for substitution into the filenamePattern.
outFilenamePattern General pattern of the filenames that will be written out. This must contain a C-style format specifier for an integer (%d). For example, "overlay_%d.tiff" for filenames {"overlay_1.tiff", "overlay_2.tiff", etc), or overlay_%.3d.tiff for filenames {"overlay_001.tiff", "overlay_002.tiff"}.
data The instance of the PixelArray3D class that stores the boolean information that tells the routine whether to overwrite a specific pixel.
R Corresponds to the how much the red channel is expressed at each overwritten pixel. This number should range from 0 to 255.
G Corresponds to the how much the green channel is expressed at each overwritten pixel. This number should range from 0 to 255.
B Corresponds to the how much the blue channel is expressed at each overwritten pixel. This number should range from 0 to 255.
compress Toggles the application of compression to the resulting tiff file. The available options are IP_NONE and IP_COMPRESS (no compression, apply compression respectively).
outputStyle Toggles how the overlay is written. Options are IP_DOT and IP_PLUS corresponding to the individual pixel being overwritten or a plus sign being drawn.


Generated on Mon Aug 27 13:39:31 2007 for IPAnalysis by  doxygen 1.5.3