Deconvolution questions
For example, suppose you have a large featureless image with one tiny object. While the tiny object may be restored very well, the change in the featureless part is negligible. The quality factor will therefore hardly change, though the restoration is successful.
Strictly speaking Huygens does not generate TIRF Theoretical PSFs, but customers report good results with high NA confocal PSFs. Proceed by setting the Microscope type of your image to confocal and NA ~ 1.4.
The first test should be done using a Wide Field Microscope Theoretical Psf with the actual parameters used for the acquisition, maybe with a lower Numerical Aperture to enlarge the PSF a little bit.
Still, remember that deconvolution assumes that the Image Formation is linear, and transmission is not, due to possible interference effects. These effects are lesser for thicker samples, but they can create restoration artifacts if they are noticeable. These can be balanced by properly tuning the Signal To Noise Ratio and the Max Num Of Iterations.
The ideal particle to distill an Experimental Psf with the Psf Distiller is probably a sub-resolution gold particle. Note that all the images should be inverted (negative) in Huygens before distilling a PSF and deconvolution: high intensities (gray values closer to white) should describe high object density, but raw transmission images provide the opposite. In Huygens Essential, this can be done with Tools > Invert image.
However, the z-resolution in the measured image is often 4x worse than the lateral resolution. So at best you can compensate for that, but due to the lateral resolution gain the result will still be non-spherical. The gain in lateral resolution can be spoiled by applying a Gaussian filter (Operation window -> Restoration -> Gaussian filter/Quick Gaussian filter) to decrease lateral resolution again in a controlled manner. Because, in our experience, practically no one wishes to reduce resolution the restoration tools do not do that automatically.
- Microscope type: images from widefield microscopes tend to require more iterations than those from confocal or 2-photon microscopes.
- Object type: sparse objects can be restored more effectively than dense objects. The more resolution gain is possible, the more iterations are needed, even if the iterations themselves also become more effective ('bigger steps').
- Noise: low noise makes a large resolution gain possible so then more iterations are needed.
- Algorithm: our Good's Rougnness MLE (Maximum Likelihood Estimation) needs less time than our Classic MLE; see Deconvolution Algorithms.
- Hardware: the number and type of CPU processors and GPU cards influence performance. Additionally, if the memory is insufficient, the processing speed depends on the type and specifications of virtual memory, as well as I/O performance.
For more information on this, visit the GPU Benchmarks page.
This does not imply that the 4D stack image needs to be loaded in RAM memory. Provided the swap space is large enough most of it can be swapped out. In fact, paging out means that the processed data is written in raw form back to disk. This will slow down the preprocessing operations, but the deconvolution speed would hardly be impeded, paging being only necessary between frames.
- There is a problem with the measured PSF:
- bead images were saturated or undersampled.
- beads have formed aggregates.
- beads were moving while being imaged.
- insufficient signal from beads causing inaccuracies in the averaging procedure.
- strongly varying background.
- The conditions under which the PSF was measured do not match the imaging conditions.
- The most important parameter is the medium refractive index. To exclude magnification calibration problems, best record the bead images at the same sampling density as the specimen. To check whether there is a matching problem between the measured PSF and the specimen data, deconvolve the specimen with a theoretical PSF. If the result is better then there can be a matching problem.
Instead, when you correctly process the 2D-Time Series as such with the Time option the software will, after correcting for bleaching and variable background, properly deconvolve each 2D image as a 3D data set with one plane recorded and the rest missing, as explained here Is deconvolution on 2D or 2D-time images possible?.
Some File Formats having indexes in the file names are interpreted as 3D stacks by default: you may need to convert the dataset from XYZ to XYT once opened.
As an alternative you could write a Tcl script for Huygens Scripting or Huygens Professional to deconvolve the 2D-time series frame by frame. Still, your images would not be corrected for bleaching and varying background, a task automatically performed if you have the Time option.
Proper parameters
When doing 2D deconvolution of widefield images, set the Z Sample Size to the ideal Nyquist value. You can calculate this by using the Nyquist Calculator.
For versions 21.10 and higher, this can best be done in the Deconvolution Wizard in either Huygens Essential or Huygens Professional. If the microscopic parameters specify the image as "brightfield" the image will first be inverted automatically by the Deconvolution Wizard. This is done because dense objects should have high intensity vallues in our deconvolution algorithms. Automatically the Tikhonov Miller algorithm will be selected. This algorithm is strongly advised for all brightfield or equivalent images as this algorithm does not amplify the background noise.
For the other deconvolution tools, the PSF distiller and the renderers the image should first be inverted manually. In Huygens Essential this can be done by choosing the option 'invert image' from the 'Tools' menu. In Huygens Professional select the image and go to 'Deconvolution', 'Operations window', 'Arithmetic', 'One image', and then 'Invert'.
Brightfield imaging is not a 'linear imaging' process. In a linear imaging process the image formation can be described as the linear convolution of the object distribution and the point spread function (PSF), hence the name deconvolution for the reverse process. So in principle one cannot apply deconvolution based on linear imaging to non linear imaging modes like brightfield and reflection. Fortunately, in the brightfield case the detected light is to a significant degree incoherent. Because in that case there are few phase relations the image formation process is largely governed by the addition of intensities, especially if one is dealing with a high contrast image, 'linearizing' the problem. In short, a Bright Field Microscope is not exactly a linear imaging device, but can be made to behave almost like one.
Dr. Marcel Oberlaender et al. from the MPI of Neurobiology in Martinsried proved the validity of the Huygens deconvolution for brightfield data with the linear Tikhonov Miller algorithm.
If using the Devonvolution Wizard of Huygens Professional or Essential, you can choose which channel you want to process and skip those you are not interested in.
See also: MLE versus ICTM - Will one method be faster or more rigorous or give a better quality result?.
- raw bead image 790 270 265
- restored 221 116 93
- bead object function 83 83 83 (i.e. the `true' bead)
- difference 138 33 10
- Is there any validity in deconvolving this Reflected light component?
- If so what emission / excitation wavelength's would be applicable?
This is very tricky since reflected light is coherent and full of interference effects. On top of that quite some microscopes have serious trouble with interference between the signal and stray light. In short, deconvolving reflection images is not a good idea. If you still want to proceed, set the excitation and emission values to the wavelength of the reflected light.
See Restoration Methods.
- van der Voort, H.T.M and K.C. Strasters, "Restoration of confocal images for quantitative image analysis" JoMi 178, 1995, pp 165-181.
- van Kempen, G.M.P. et al, "Comparing Maximum Likelihood Estimation and Constrained Tikhonov-Miller Restoration". IEEE Eng. in Med. And Biology 15 No 1. pp 76-83, 1996.
- Excitation Fill Factor
- Saturation factor
- Wavelength
- Immunity fraction
- Shape coefficients
- You can deconvolve massive amounts of images automatically
- You can use the Batch-Processor as a file-converter for massive amounts of data (use 'skip' in the algorithm choice in the Deconvolution template)
- You can tune the optimal setting for a particular data-set very quickly
You are interested in the latter:
- Press 'Add task' and a second connected window will open up.
- Choose 'Select Files' and select the dataset you want to apply the deconvolution algorithm with different parameters settings to.
- Continue and either make a NEW MICROSCOPY TEMPLATE or select an EXISTING MICROSCOPY TEMPLATE (If that contains the correct information about the acquisition of the dataset already).
- If you are sure that the meta data are 100% correct already you can choose ANY MICROSCOPY TEMPLATE and choose in the toggle window 'Keep all meta data from file'.
- Continue and either make a NEW DECONVOLUTION TEMPLATE or select an EXISTING DECONVOLUTION TEMPLATE (If that contains the correct information about the dataset already).
- Press DONE and you will be back in the first BP window.
- Click on the little window under 'Task', go t Edit and choose duplicate one or more times depending on the number of copies you want
- You see now four identical jobs.
- As you want to change the DECONVOLUTION TEMPLATES setting simply click on it .
- The second connected window will open again and you can change the setting in the DECONVOLUTION TEMPLATE via the tabs. (e.g. different algorithms, different SNR, adding a Chromatic Aberration template etc), save it before closing.
- You will see that after the name of the DECONVOLUTION TEMPLATE ':0' is added. If you do it again for another in the list you will see ':1' added.
Consider a 300MB dataset (~25Mvoxel image): the system has to write AND read *at least* 300MB per iteration. To speed up swapping it is advantageous to count on fast disks. Additionally, the current ICTM algorithm cannot process large datasets brick by brick. The CMLE and QMLE methods both can process datasets brick by brick. We recommend to use CMLE in general and QMLE in particular for low noise widefield data.
- The script is able to launch multiple parallel jobs to make full usage of a multiple cpu system.
- These scripts use Huygens Scripting (license needed).
- Switch off the undo system (Options menu).
- Reduce the size of the image (Crop tool). In particular, widefield images often contain many slices with blur.
- A theoretical PSF will be generated on-the-fly by the MLE and QMLE restoration methods. There's no need to create a theoretical PSF by hand.
- Images are interpreted as periodic, i.e. the image has infinite size but repeats itself in each dimension with periods that are equal to the size of the original image in the corresponding dimension.
- The frequency origin (frequency space) is located at the zero voxel (bottom-left-plane) of the 3D image. The positive frequencies are located in the first octant of the image. Depending on the type of transform you selected, `complex' or `real', the negative frequencies are present in the other octants.
This means that you will find spatial frequency 0,0,0 at voxel (0,0,0) of the transform, and not at the center. For visualization purposes it is often desirable to have the zero frequency centered. Use To/from optic rep. from the Restoration menu in the Operations Window to move the zero frequency to the center.
`Real' Fourier transforms contain only the positive frequencies in the u-direction (with u, v, w , spatial frequencies corresponding with the x, y, z axis). However, they do contain negative frequencies in the other dimensions. For visualization purposes real-FFTs are therefore less suited than complex-FFTs.
As a consequence of defining the frequency origin (frequency space) at the (0,0,0) voxel, convolutions with funtions which are not centered around (0,0,0) will cause a shift in the resulting image. For example, when you convolve an image with a sphere located at the center ( xc , yc , zc ) of the second image, the result will be shifted over a vector ( xc , yc , zc ). Because images are interpreted as periodic all octants in the resulting image will appear `swapped'. You can prevent this from happening by using the following methods:
- Center the image with which you are going to convolve around (0,0,0). When this image, for instance a sphere generated with Generate sphere , is centered use To/from optic rep. to shift it to the origin. In other cases use the following method:
- (Alternative centering method) Determine the Center of Mass (CM) of the second image with Image statistics. Then use Shift image to move the CM to the origin. Since Shift image also interprets the image as periodic, this will produce the desired result. An advantage of this method is that you can shift the CM over a non-integer distance.
- When you have convolved with a function located at the center of the image, you can undo the shifting effect by applying To/from optic rep. to the convolution result.
- Csiszar, I., 1991; Why least squares and maximum entropy? An axiomatic approach to interference for linear inverse problems. Ann. Stat., 19, No. 4, pp. 2033-2066 (PDF 8 MB).
- Kempen, G.M.P., van der Voort, H.T.M., 1006; Comparing Maximum Likelihood Estimation and Contrained Tikhonov-Miller Restoration. IEEE Engineering in Medicine and Biology vol 15, No 1, pp. 76-83