02/24/2009
|
Blob Tool | Blob Statistics | Preprocessing images before blobbing
|
|
The Batch Button is for obtaining particle statistics from a folder of images.
Most other functions for processing a folder of images are in the Process Folder Tool. If a file named process-images.txt is put in a companion folder to the folder with the images (a folder named <image folder name>-lx) then Lispix will perform the processing steps in each line of this file, just as the Process Folder Tool would do, before each image is blobbed.
|
These commands are for collecting measurements of particles in a folder of images. This is done in two or three stages: 1) selecting thresholds for the images, 2) collecting the statistics for the images, and 3) making a summary spreadsheet file, if desired, for the statistics for each image. This last file is used by the Fields in Circle Tool, to colorize a mosaic of fields by number of particles, greatest particle, etc. The thresholds are saved in a tab delimited text file, one image per line (or row). The blob statistics (particle measurements) are saved in a similar text file, one blob per line. The summary statistics are saved in a text file, one image per line. These text files are saved in a folder named <image folder name>-lx, which follows the folder of images in a directory listing, for example, if the images are in a folder called "Fields", then the directory structure looks like this:

The threshold files and statistics files are named by the thresholding method, such as "fixed-thresholds.txt" and "fixed-stats.txt" for the one-threhold-fits-all method, and "manual-thresholds.txt" and "manual-stats.txt" for the manually-chosen-threshold-for-each-image method. These text files can be edited with a text editor, and imported into a spreadsheet. The blob stats and summary files are easier to read when imported into Excel. The order of the images listed in the threshold file is not important.
Sample output: Image T1 T2 1PCounts
Class
|
Image - image file name less extension. T1 - Threshold found by auto1 method. All pixels with this value or brighter are candidates for single pixel blobs. T2 is the maximum pixel intensity for the image, and is included here just for your information. 1PCounts - number of single pixel blobs for threshold T1. All of these pixels are isolated, and have pixel values between T1 and T2 inclusive. Class - either normal or dip. The method starts with a threshold that is too low (too many single pixel blobs) and increases the threshold until the number is equal to or less than the number in the image for which you selected the threshold. Dip means that the number of single pixel blobs has increased for this new threshold, rather than decreasing as expected. This may be caused by large particles or large areas of brighter background -- the image is probably anomalous. |
The steps to find the threshold are:
Diagnostic
(Menu items below are diagnostic tools, and not necessarily needed to analyze your data.)