Difference between revisions of "Assignment 9, Part 1: Analyze two-color yeast images"

From Course Wiki
Jump to: navigation, search
(Created page with " <ol> <li> Download the twoColorYeastTest.mat data. This is an example of the data you will be collecting in assignment 10 with an 8 minute oscillation period. </li> <li> In ...")
 
Line 1: Line 1:
 +
==Getting Started==
  
<ol>
+
Start by downloading Assignment9TestData.mat. This is an example of the data you will be collecting in assignment 10 with an 8 minute valve oscillation period. The movie was collected using the same 20.309 microscope that you built in Assignment 8. During an oscillation experiment, the microscope first records an image with blue illumination followed by one with green illumination. It had a 40x objective and a 125 mm tube lens - remember that results in a 25X magnification.
<li> Download the twoColorYeastTest.mat data. This is an example of the data you will be collecting in assignment 10 with an 8 minute oscillation period.  
+
 
</li>
+
In MATLAB, display the contents of the structure in this data file:  
<li> In MATLAB, display the contents of the structure in this data file:  
+
 
<pre>twoColorYeastTest =  
 
<pre>twoColorYeastTest =  
  
Line 15: Line 15:
 
                     ValveState: [16×1 logical]
 
                     ValveState: [16×1 logical]
 
</pre>
 
</pre>
</li>
+
 
<li> The data structure contains all the important information from the experiment:
+
The data structure contains all the important information from the experiment:
* A two-color movie. (Notice that <tt>twoColorYeastTest.Movie</tt> has already converted to a double, but it is not yet normalized by 4095. )
+
* A two-color movie, where the 3d dimension is the color (1 = Blue, 2 = Green), and the fourth is the frame number. Notice that <tt>twoColorYeastTest.Movie</tt> has already converted to a double, but it is not yet normalized by 4095.  
 
* The time stamp of each frame recorded, in seconds since the start of the experiment. Column 1 contains the timestamps of the Blue images, column 2 is for the green images.
 
* The time stamp of each frame recorded, in seconds since the start of the experiment. Column 1 contains the timestamps of the Blue images, column 2 is for the green images.
 
* The oscillation valve period, in seconds.
 
* The oscillation valve period, in seconds.
 
* The blue and green image camera settings in the format <tt>[gain, exposure]</tt>, where <tt>exposure</tt> is in microseconds.
 
* The blue and green image camera settings in the format <tt>[gain, exposure]</tt>, where <tt>exposure</tt> is in microseconds.
 
* The valve state (0 for low salt, 1 for high salt) at the time of each image. If you need to know the valve state more precisely, it can be calculated with the following conditional statement: <math> sin(2 \pi t/T) \ge 0 </math>, where ''T'' is the valve oscillation period, and ''t'' is the time since the start of the experiment (this is how the state is determined in the software).
 
* The valve state (0 for low salt, 1 for high salt) at the time of each image. If you need to know the valve state more precisely, it can be calculated with the following conditional statement: <math> sin(2 \pi t/T) \ge 0 </math>, where ''T'' is the valve oscillation period, and ''t'' is the time since the start of the experiment (this is how the state is determined in the software).
</li>
+
 
</ol>
+
{{Template:Assignment Turn In|message = Choose a single frame of the movie. Make a four panel figure and display: the blue image, the green image (both with a scale bar), and their corresponding image histograms. Include an appropriate title for each panel. }}
The movie has 4 dimensions, the first two representing the image size, as usual, the fourth representing the color (1 = Blue, 2 = Green), the fifth being the frame number.
+

Revision as of 14:44, 12 November 2018

Getting Started

Start by downloading Assignment9TestData.mat. This is an example of the data you will be collecting in assignment 10 with an 8 minute valve oscillation period. The movie was collected using the same 20.309 microscope that you built in Assignment 8. During an oscillation experiment, the microscope first records an image with blue illumination followed by one with green illumination. It had a 40x objective and a 125 mm tube lens - remember that results in a 25X magnification.

In MATLAB, display the contents of the structure in this data file:

twoColorYeastTest = 

  struct with fields:

                         Movie: [544×728×2×16 double]
                          Time: [16×2 double]
        ValveOscillationPeriod: 480
     BlueCameraGainAndExposure: [5 5000000]
    GreenCameraGainAndExposure: [15 5000000]
                    ValveState: [16×1 logical]

The data structure contains all the important information from the experiment:

  • A two-color movie, where the 3d dimension is the color (1 = Blue, 2 = Green), and the fourth is the frame number. Notice that twoColorYeastTest.Movie has already converted to a double, but it is not yet normalized by 4095.
  • The time stamp of each frame recorded, in seconds since the start of the experiment. Column 1 contains the timestamps of the Blue images, column 2 is for the green images.
  • The oscillation valve period, in seconds.
  • The blue and green image camera settings in the format [gain, exposure], where exposure is in microseconds.
  • The valve state (0 for low salt, 1 for high salt) at the time of each image. If you need to know the valve state more precisely, it can be calculated with the following conditional statement: $ sin(2 \pi t/T) \ge 0 $, where T is the valve oscillation period, and t is the time since the start of the experiment (this is how the state is determined in the software).


Pencil.png

Choose a single frame of the movie. Make a four panel figure and display: the blue image, the green image (both with a scale bar), and their corresponding image histograms. Include an appropriate title for each panel.