Difference between revisions of "BigStitcher BrightnessContrastAdjustment"
Latest revision as of 11:07, 14 January 2019
Even after correcting for fixed-pattern noise (see here), differences in brightness and contrast between images, e.g. due to bleaching, might persist and be visible in the fused images. To correct for this, we estimate optimal linear transforms of pixel intensities in adjacent images to achieve uniform brightness and contrast in the whole dataset. We minimize the intensity difference of all pixels in the overlapping volume of two images according to the current registrations via a linear transform for each image: I′(x) = I(x) * α + β
The brightness and contrast adjustment is available in Multiview mode under . ▶
Clicking Compute... in the Intensity adjustment menu brings up the following dialog:
First, since the adjustment is calculates for pixel intensities in overlapping areas of the images, you can select how to load the pixels:
- Bounding Box specifies the area to load for the calculation. We will automatically determine overlapping areas in it. Note that the intensity adjustment can not be calculated for images not in the bounding box.
- Downsampling By how much to downsample the images for the calculation. Since in this step we are only interested in larger-scale intensity variations, we recommend to downsample a lot.
- Max inliers How much pixels to consider at most for each image pair.
Below, you can set various regularization parameters for the intensity adjustment function that is fitted to the data. In detail, we will fit a weighted average of the original image intensity I(x) and a weighted average of a linear transformation I(x) * α + β1 and an additive offset I(x) + β2 with weights λ1 and λ2:
λ2 * I(x) + (1-λ2) * (λ1 * (I(x) + β2) + (1 - λ1) * (I(x) * α + β1) )
The options at the bottom of the dialog set the values for λ1 and λ2:
- Affine intensity mapping (Scale & Offset) enables a linear transform of the intensities instead of just an additive offset.
- Offset only intensity regularization corresponds to λ1. Higher values give more weight to an offset-correction vs. a scale and offset correction. Note that if Affine intensity mapping is deselected, λ1 =1 automatically, so only an offset transform will be calculated.
- Unmodified intensity regularization corresponds to λ2. Higher values give more weight to an identiy transformation, i.e. leaving the corrected intensity values as close to the original as possible.
Clicking List all in the intensity adjustment sub-menu will list the current intensity adjustment for each image in the dataset.
Clicking Remove in the sub-menu will remove the intensity adjustment from the currently selected image(s).
Go back to the main page