The ratio calculation in ZEN blue MeanROI/Physiology functions in the following manner:
After you have set up the ratio to your satisfaction (background correction/thresholding), you can gather/ view all the results using the export functions found on the export tab in MeanROI view. You can also view a smaller table within the MeanROI view itself by activating the appropriate layout.
How are your threshold and background values handled for intensity and ratio measurements? The threshold value will be applied prior to background subtraction if both are active. If this is this is the case, then for charts/tables the intensity values of any given ROI are handled this way: if a pixel in the ROI is under the threshold value, it will be ignored for the calculation of the mean value of the ROI. After that the background is subtracted from the mean value to get the corrected intensity value of the ROI (note if no pixel remains valid in the ROI after the application of the threshold, the corrected mean intensity is always 0 and hence the ratio is also 0). In the case of the ratio image, each pixel is "validated" based on the threshold value. If the pixel is above the threshold, then the pixel value is kept (i.e. is valid), otherwise it is set as NaN (Not a Number, which is not the same as zero) and is considered invalid). As before, background correction is done after threshold. If the pixel value is NaN, the ratio pixel value is NaN. If the pixel is still valid then use pixel value - background value in the ratio calculation. If a negative value results, it is clipped to 0.
The following example shows how a ratio value is generated based on the applied background and thresholding values:
Consider a region of interest that is 6 pixels wide by 1 pixel high. The pixels of the region in the Wavelength 1 image are as follows:
[50, 75, 100, 125, 150, 175].
For the purpose of this example, assume the threshold = 60 for wavelength 1.
ZEN thresholds Wavelength 1 to obtain:
[--, 75, 100, 125, 150, 175].
The pixels of the region in the Wavelength 2 image are as follows:
[25, 25, 25, 25, 100, 100].
For the purpose of the example, assume the threshold = 50. ZEN thresholds Wavelength 2 to obtain:
[---, ---, --- , ---, 100, 100].
ZEN computes the Ratio by only rationing the averaged values for the valid pixels in each individual wavelength. To recap, the pixels for each wavelength were:
[--, 75, 100, 125, 150, 175] (Wavelength 1)
[---, ---, --- , ---, 100, 100] (Wavelength 2)
The ratio value of this region is calculated by taking into account only the common area, which corresponds to the area of the sum of the valid pixels common to the two wavelengths (which in this example is only 2 “valid” pixels).
Using the threshold values as above, the pixels that are used to calculate the ratio average are:
150/100
175/100
which gives a ratio of 1.625.
To get an overview of all the results, including the original values not corrected for their validity in this manner, use the data table creation function in the MeanROI export tab. This opens, for example, a new document or allows you to export the results as a *.csv file. This data table/ *.csv includes for each ROI the following information/measurements:
This is repeated for the second channel, and at the very end you will find the Ratio value. Thus, the threshold corrected values are provided for each channel (mean intensity and the corresponding area from which this is derived) as well as the ratio value for the common valid pixels. Relative time, markers, focus values and parameters from the incubation (if configured) are also listed. In the embedded table in Mean ROI view you will find a summary that gives the following values: Mean intensity of pixels above the set threshold for each channel (wavelength) and the corresponding ratio values. No Area values are given here.