Name menu sidebars as such
Cookbook}} = Image Intensity Processing =
== Brightness and Contrast ==
Contrast is the separation of the lightest and darkest parts of an image. An increase in contrast will darken shadows and lighten highlights. Increasing contrast is generally used to make objects in an image more distinguishable.
Adjust the brightness and contrast with
“''Image /Adjust /Brightness/Contrast... ''” to make visualization of the image easier.
“'' Auto”'' button to apply an intelligent contrast stretch to the ''the image display''. Brightness and contrast is adjusted by taking into account the image's histogram. If pressed repeatedly, the button increases the percentage of saturated pixels.
button makes the “maximum” 0 and the “minimum” 255 in 8-bit images and the "maximum" and "minimum" equal to the smallest and largest pixel values in the image’s histogram for 16-bit images.
''Auto'' button does not produce a desirable result, use the region-of-interest (ROI) tool to select part of the cell and some background, then hit the “''Auto'' ” button again. The stretch will then be based on the intensities of the ROI.
If you prefer the image to be displayed as
“black on white” rather than “white on black”, then use the “inverted” command: “''Image /Lookup Tables /Invert LUT ''”. The command “''Edit /Invert ''” inverts the pixel ''values themselves'' permanently.
== Getting intensity values from single ROI ==
If working with a stack, the ROI selected can be analyzed with the command:
“''Image /Stacks /Plot Z Axis Profile ''”. This generates a single column of numbers - one slice intensity per row.
The top 6 rows of the column are details of the ROI. This makes sure the same ROI is not analyzed twice and allows you to save any interesting ROIs. The details are comprised of area, x-coordinate, y-coordinate, AR, roundness, and solidity of the ROI. If the ROI is a polyline
/freehand ROI rather than a square /oval, it acts as if the ROI is an oval /square. The (oval) ROI can be restored by entering the details prompted by the “''Edit /Selection /Restore Selection ''” (hotkey: “Ctrl + Shift + E”) command.
The results are displayed in a plot-window with the ROI details in the plot window title. The plot contains the buttons
''List, Save, Copy. ''The ''Copy'' button puts the data in the clipboard so it can be pasted into an Excel sheet. The settings for the copy button can be found under “''Edit /Options /Profile Plot Options ''”. Recommended settings include: ''Do not save x-values ''(prevents slice number data being pasted into Excel) and ''Autoclose'' so that you don't have to close the analyzed plot each time.
== Dynamic intensity vs Time analysis ==
“''Plot Z Axis Profile " ''(this is the ''Z Profiler'' from Kevin (Gali) Baler (gliblr at yahoo.com) and Wayne Rasband simply renamed) will monitor the intensity of a moving ROI using a particle tracking tool. This tool can be either manual or automatic. Use the “''Image /Stacks /Plot Z Axis Profile ''” command.
== Getting intensity values from multiple ROIs ==
You can analyze multiple ROIs at once with Bob Dougherty’s
“''Multi Measure'' ” plugin. The native “ROI manager” function does a similar job except doesn't generate the results in sorted columns. Check Bob’s website for updates: [http://www.optinav.com/imagej.html http://www.optinav. com/imagej.html]
The Multi Measure plugin that comes with the installation is v3.2.
To copy ROI coordinates into the Excel spreadsheet, there needs to be an empty row above the intensity data. Use the Multi Measure dialog and click the “Copy list” button.
In Excel, click the empty cell above the first data column and paste in the ROI coordinates.Save the ROIs with the Multi Measure button “''Save'' ”. Put them in the experimental data folder. The ROIs can be opened later either individually with the button “''Open'' ” or all at once with the button “''Open All'' ”.
Oval and rectangular ROIs can be restored individually from x, y, l, h values with the
“''Plugins /ROI /SpecifyROI…''” command.
== Ratio Analysis ==
Ratiometric imaging compares the recordings of two different signals to see if there are any similarities between them. It is done by dividing one channel by another channel to produce a third ratiometric channel. This technique is useful because it corrects for dye leakage, unequal dye loading, and photo-bleaching. An example application would be measuring intracellular ion, pH, and voltage dynamics in real time.
Background subtraction is needed before analysis of dual-channel ratio images. See section
'''1.11 Background correction. '''The ''Ratio_Profiler'' plugin will perform ratiometric analysis of a single ROI on a dual-channel interleaved stack. The odd-slices are channel 1 images and the even slices are channel 2 images. If your two channels are opened as separate stacks, such as Zeiss, the two channels can be interleaved (mixed together by alternating between them) with the menu command "''Plugins /Stacks - Shuffling /Stack Interleaver ''".
The plugin will generate a green-plot of the ratio values. Ch1÷Ch2 is the default and you can get Ch2÷Ch1 if the plugin is run with the Alt
-key down. It will also generate a second plot of the intensities of the individual channels, Ch1 and Ch2, as well as a results table.
The first row of the results table contains values for the x, y, width and height of the ROI.
From the second row downward, the first column is the time
(slice number), the second column is the Ch1 mean intensity, and the third channel is the Ch2 mean intensity and the ratio value. The stack must have its frame interval calibrated in order for the "Time" value to be in seconds. Otherwise, it is "Slices". The frame interval can be set for the stack via the menu command '' "Image /Properties "'' . This table can be copied to the clipboard and pasted elsewhere with the "''Edit/Copy All''" menu command.
Ratio Analysis Using ROI manager'''''
1.Subtract the background from the image.
''ROI manager'' ( ''Analyze /Tools /ROI manager... '') and click the "Show All" button.
3. Select the cells to be analyzed and add them to the ROI manager ("Add" button or keyboard
4. Run the plugin.
The results window contains the mean
of ch1 and ch2 and their ratio. Each row is a timepoint (slice). The first row contains the ROI details.
To generate a reference image:
== Obtaining timestamp data ==
=== Zeiss LSM ===
LSM_Toolbox is a project aiming at the integration of common useful functions around the Zeiss LSM file format, that should enhance usability of confocal LSM files kept in their native format, thus preserving all available metadata.
In Fiji, corresponding commands are: "
''File /Import /Show LSMToolbox ''" which displays the toolbox, from which all commands can be called and " ''Help /About Plugins /LSMToolbox... ''" which displays information about the plugin . === Noran === Noran movies can be opened in several ways: "''File/Import/Noran movie''" opens entire movie as an image stack. "''File/Import/Noran Selection…''" allows you to specify a range of frames to be opened as a stack. The Noran SGI plugins are not bundled with the Fiji package. To receive them, please contact email@example.com or their author, Greg Joss, so he can keep track of users. Greg Joss firstname.lastname@example.org is in the Dept. of Biology, Macquarie University, Sydney, Australia.
=== Biorad ===
This reading can be found by using the menu command
“''Image /Show Info…''”. Scroll down to get the time each slice was acquired. Select this time, copy it into Excel, and find the time number obtained by using the Excel menu command “''Edit /Replace ''”. This will leave only the time data. The “elapsed” time can then be calculated by subtracting row 1 from all subsequent rows.
== Pseudo-linescan ==
A pseudo-linescan generation of a 3-D (''x, y, t'') image. It is useful for displaying 3-D data in 2 dimensions.
A line of interest is drawn followed by the command:
“''Image /Stacks /Reslice”'' or with the keyboard button “/ ”. It will ask you for the line width that you wish to be averaged. It will generate a pseudo-linescan “stack” with each slice representing the pseudo-linescan of a single-pixel wide line along the line of interest. Average the pseudo-linescan “stack” by selecting “''Image /Stacks /Z- Project…''” and use the ''Average'' command. A poly-line can be utilized, but this will only generate a single pixel slice.
== FRAP (Fluorescence Recovery After Photobleaching) Analysis ==
== Non-linear contrast stretching ==
| style="border:none;padding:0in;"| You can have more control over brightness and contrast adjustments with
the“''Process /Enhance contrast”'' menu command. With a stack, it analyzes the each slice’s histogram to make the adjustment.
“Equalize contrast” command applies a non-linear stretch of the histogram based on the square root of its intensity.
=== Gamma ===
<nowiki>Gamma performs a non-linear histogram adjustment. Faint objects become more intense while bright objects do not (gamma <1). Also, medium-intensity objects become fainter while bright objects do not (gamma > 1). The intensity of each pixel is
“raised to the power” of the gamma value and then scaled to 8-bits or the min and max of 16-bit images.</nowiki>
For 8 bit images; New intensity = 255 ×
''<nowiki>[(old intensity÷255)</nowiki> gamma'']
Gamma can be adjusted via the
“''Process /Math /Gamma”'' command. It will allow you to adjust the gamma with the scroll bar. Click on “'' Ok”'' when you are finished. You can use the Scroll-bar to determine the desired gamma value on one slice of your stack . There is also an option to preview the results .
== Filtering ==
online reference: [http:// www. dai.ed.ac.uk/ HIPR2/filtops.htm http://www.dai.ed.ac.uk/HIPR2/filtops.htm] for an explanation of digital filters and how they work.
Filters can be found using the menu command
“''Process /Filters... ''”''. ''
''Mean filter'': the pixel is replaced with the average of itself and its neighbors within the specified radius. The menu item
“''Process /Smooth ''” is a 3×3 mean filter.
''Gaussian filter'': This is similar to a smoothing filter but instead replaces the pixel value with a value proportional to a normal distribution of its neighbors.
''Median filter'': The pixel value is replaced with the median of itself and its adjacent neighbors. This removes noise and
''preserves boundaries'' better than simple average filtering. The menu item “''Process /Noise /Despeckle ''” is a 3×3 median filter.
"Convolve filter": This allows two arrays of numbers to be multiplied together. The arrays can be different sizes but must be of the same dimension. In image analysis this process is generally used to produce an output image where the pixel values are linear combinations of certain input values.
== Background correction ==
Background correction can be done in multiple ways. A simple method is to use the
“''Image /Lookup Tables /HiLo ''” LUT to display zero values as blue and white values (pixel value 255) as red.
With a background that is relatively even across the image, remove it with the ''Brightness/Contrast''
command by slowly raising the ''Minimum'' value until most of the background is displayed blue. Press the ''Apply ''button to make a permanent change.
=== Rolling-Ball background correction ===
To fix an uneven background use the menu command
“''Process /Subtract background ''”. This will use a “rolling ball” algorithm on the uneven background. The radius should be set to at least the size of the largest object that is ''not'' part of the background. It can also be used to remove background from gels where the background is white. Running the command several times may produce better results. The user can choose whether or not to have a light background, create a background with no subtraction, have a sliding paraboloid, disable smoothing, or preview the results. The default value for the rolling ball radius is 50 pixels.
'''RAW '''| style="border:none;padding:0.0194in;"| | style="border:none;padding:0.0194in;"| “'''''Process /Subtract Background…”'''''
| style="border:none;padding:0.0194in;"| [[File:raw_rolling_ball_back_corr.jpg]]
Once the background has been evened, final adjustments can be made with the
=== ROI background correction ===
The rolling-ball algorithm takes a lot of time. To speed up the process with an image that has a more even background, select a region of interest from the background and subtract the mean value of this area for each slice from each slice. Use the selection tools to select an area of background and run the menu command
“''Process /Subtract Background”''. This macro will subtract the mean of the ROI from the image plus an additional value equal to the standard deviation of the ROI multiplied by the scaling factor you enter. The default for this is 3.
This macro, because it also works with stacks, can be used on time-courses with varying backgrounds.
| style="border:none;padding:0in;"| <center>
'''Before correction '''</center>| style="border:none;padding:0in;"| <center> '''Background intensity over time '''</center>| style="border:none;padding:0in;"| <center> '''After “''ROI_BG_Correction ''”'''</center>
| style="border:none;padding:0in;"| [[File:roi_back_corr_before.gif]]
=== Proper correction ===
Use this technique on brightfield images. You can correct uneven illumination or dirt/dust on lenses by acquiring a
“flat- field” reference image ''with the same intensity illumination as the experiment''. The flat field image should be as close as possible to a field of view of the cover slip without any cells/debris. This is often not possible with the experimental cover slip, so a fresh cover slip may be used with approximately the same amount of buffer as the experiment.
# Open both the experimental image and the flat-field image.
# Click the
“''Select all'' ” button on the flat-field image and measure the average intensity. This value, the k1 value, will appear in the results window.# Use the “''Image Calculator plus'' ” plugin (Analyze /Tools /Calculator plus).# i1 = experimental image; i2 = flat-field image; k1 = mean flat-field intensity; k2 = 0. Select the "''Divide" ''operation.
This can also be done using the
“''Process /Image Calculator”''function with the “32-bit Result” option checked. Then adjust the brightness and contrast and convert the image to 8-bit.
| colspan="2" style="border:none;padding:0in;"| [[File:pseudoCorrectionImage.gif]]
Sometimes it is not possible to obtain a flat-field reference image. It is still possible to correct for illumination intensity, though not small defects like dust, by making a
“pseudo-flat field” image by performing a large-kernel filter on the image to be corrected. For those working with DIC images, this is particularly useful because they generally have an intrinsic, and distracting, gradient in illumination.
This can be accomplished simply by subtracting the Gaussian-blurred image version of the image.
=== FFT background correction ===
You can correct for uneven illumination and horizontal "scan lines" in transmitted light images acquired using confocal microscopes by using the native FFT bandpass function (
''Process /FFT /Bandpass Filter...). ''
You can experiment with the settings to optimize the filtering and also choose to filter structures down to a certain number of pixels. The default value is 40 pixels. You can filter small structures up to a certain value. The default value is 3 pixels. The user can choose from a drop down menu whether to suppress stripes with None, Horizontal, or Vertical. The tolerance of direction can be chosen. The default is 5%. Finally, the user can choose whether to allow autoscale after filtering, saturation of the image when autoscaling, whether or not to display the filter, and whether or not to process an entire stack.
=== Simple masking ===
Use one of the ROI tools to draw around the area of interest and then select:
“''Edit /Clear outside ''”''. ''This will change the area outside the selected region to the background value.
=== Complex masking ===
More sophisticated masking can be done by
“thresholding” the image and subtracting the new binary image from the original image.
# Duplicate the image, or, if it’s a stack, generate an
“average projection” of a few frames.# Threshold this image with the menu command “''Image /Adjust /Threshold ''”.
# Hit the Auto button and adjust the sliders until all the cells are highlighted red.
“''Apply'' ”. Check the following box: “black foreground, white background”. You should now have a white and black image with your cells black and background white. If you have white cells and black background, invert the image with “''Edit /Invert ''”.# This can be smoothed with the command “''Process /Smooth ''” and the black area enlarged slightly with “''Process /Binary /Dilate ''” to give a better mask.# Using the regular Image calculator “''Process /Image calculator ''” subtract this black and white “mask” image from your original image or stack.