Difference between revisions of "Assignment 4: finding and measuring things"

From Course Wiki
Jump to: navigation, search
(Overview)
 
(9 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
[[Category:Optical Microscopy Lab]]
 
[[Category:Optical Microscopy Lab]]
 
{{Template:20.309}}
 
{{Template:20.309}}
 
 
==Overview==
 
==Overview==
In this assignment, you will develop two pieces of image-processing software. The first function will measure the size of bright spots in an image. You will use this function to measure the resolution of your microscope. The second piece of software will track the positions of multiple particles through a sequence of frames. You will use assess how precise your position measurements are. In the next assignment, you will use the particle tracking software to measure the mean squared displacement of particles in fluids and inside of cells. You may choose any software development environment you like. Examples and starter code will be supplied in MATLAB.
+
Congratulations on completing assignment 3. Now you can say you built your own epifluorescence microscope and used it to image mammalian cells. How cool is that?
 
+
===Measuring resolution===
+
One of the most commonly used definitions of resolution is the distance between two point sources in the sample plane such that the peak of one source’s image falls on the first minimum of the other source’s image. This suggests a procedure for measuring resolution: image a point source; measure the peak-to-trough distance; and divide by the magnification. In this part of the lab, you will use this method to estimate the resolution of your microscope.
+
 
+
[[Image:20.309_140218_PSFbeads.png|frameless|thumb|Example image processing on PSF beads to determine microscope resolution.]]
+
[[Image:20.309_140218_GaussianFit.png|frameless|thumb|Example Gaussian fit of a PSF bead fluorescence emission profile to estimate microscope resolution.]]
+
 
+
A practical problem with this method is that true point sources are difficult to come by. If you are using a telescope, stars are readily available, reasonably bright, and an excellent approximation to a point source. Instead of stars, microscopists usually use tiny, fluorescent beads as approximate point sources. These beads are small enough to be considered point sources. You will use nonlinear regression to estimate the resolution of your microscope from an image of the tiny beads. Unfortunately, beads small enough for this purpose are not very bright. Imaging them can be challenging. Your microscope must be aligned very well to get good results.
+
  
You will use image processing functions to locate the beads in your image and fit a Gaussian function to them. Gaussians are more amenable to nonlinear regression than Bessel functions, and they are a very good approximation. It is straightforward to convert the Gaussian parameters to Rayleigh resolution. See [[Converting Gaussian fit to Rayleigh resolution]] for a discussion of the conversion.
+
The in-lab part of this assignment is straightforward. You will take a fluorescent image of tiny microspheres for measuring resolution, and then you will record short movies of larger microspheres diffusing in glycerol. Easy.  If your microscope is in shape, you ought to be able to get the lab part done in well under an hour. (The tiny microspheres do not produce very much light. Sometimes people struggle a bit to get them in focus. Hint: make sure your microscope is well-adjusted before you look at really tiny, dim things.)
  
# Make an image of a sample of 170 nm fluorescent beads with the 40X objective. (Several dozens to hundreds of PSF spheres should be captured in your image.)
+
The out-of-lab components of this assignment will involve writing some hardcore MATLAB code. You will simulate data, use nonlinear fitting to measure the size of beads in an image, and track particles through frames of a movie. Many students find that developing the code for this assignment is challenging and that it can take longer than expected. Please don't hesitate to work on your code in 16-336 during lab hours. The instructors are happy to work alongside you to help you get through MATLAB's many curiosities and frustrations.
#* Use 12-bit mode on the camera and make sure to save the image in a format that preserves all 12 bits.
+
#* Use <code>imhist</code> to ensure that the image is exposed properly.
+
#** Since there are a very small number of bright pixels, plot the histogram counts on a logarithmic scale.
+
#* '''Include the image and the histogram in your lab report.'''
+
# Use image processing functions to locate non-overlapping, single beads in the image.
+
# Use nonlinear regression to fit a Gaussian to each bead image.
+
# Convert the Gaussian parameters to resolution.
+
# '''Report the results in your lab report.'''
+
#* [[MATLAB: Estimating resolution from a PSF slide image|This page]] has example MATLAB code.
+
#* '''Discuss how the measured resolution compares with the theoretical value.'''
+
  
==Segmentation==
+
{{Template:Safety Warning|message = Warning: Assignment 5 will heavily build off of the code you write in Assignment 4. Drop at your own risk!!}}
''Segmentation'' is the process of assigning pixels in an image into groups.In most fluorescent, microscopic images, the concept is pretty simple: the bright stuff is interesting and the dull stuff is dark. There are many approaches to segmentation ... global threshold. ...
+
==Choosing a threshold==
+
<center>
+
[[File:Thresholding Animation.gif]]
+
</center>
+
  
 +
==Navigation==
 +
{{Template:Assignment 4 navigation}}
 +
Back to [[20.309 Main Page| 20.309 Main Page]]
 
{{Template:20.309 bottom}}
 
{{Template:20.309 bottom}}

Latest revision as of 14:49, 17 September 2018

20.309: Biological Instrumentation and Measurement

ImageBar 774.jpg

Overview

Congratulations on completing assignment 3. Now you can say you built your own epifluorescence microscope and used it to image mammalian cells. How cool is that?

The in-lab part of this assignment is straightforward. You will take a fluorescent image of tiny microspheres for measuring resolution, and then you will record short movies of larger microspheres diffusing in glycerol. Easy. If your microscope is in shape, you ought to be able to get the lab part done in well under an hour. (The tiny microspheres do not produce very much light. Sometimes people struggle a bit to get them in focus. Hint: make sure your microscope is well-adjusted before you look at really tiny, dim things.)

The out-of-lab components of this assignment will involve writing some hardcore MATLAB code. You will simulate data, use nonlinear fitting to measure the size of beads in an image, and track particles through frames of a movie. Many students find that developing the code for this assignment is challenging and that it can take longer than expected. Please don't hesitate to work on your code in 16-336 during lab hours. The instructors are happy to work alongside you to help you get through MATLAB's many curiosities and frustrations.


Warning.jpg Warning: Assignment 5 will heavily build off of the code you write in Assignment 4. Drop at your own risk!!


Navigation

Back to 20.309 Main Page