Difference between revisions of "Sandbox"

From Course Wiki
Jump to: navigation, search
Line 1: Line 1:
 
 
====Set up the scene and adjust the exposure time====
 
====Set up the scene and adjust the exposure time====
 
Since we are interested in how noise depends on intensity, we want to collect noise data for the largest possible range of intensities. It would also be nice to have about the same number of pixels at each intensity. The intensity histogram is a useful tool to diagnose these two criteria.  
 
Since we are interested in how noise depends on intensity, we want to collect noise data for the largest possible range of intensities. It would also be nice to have about the same number of pixels at each intensity. The intensity histogram is a useful tool to diagnose these two criteria.  
Line 22: Line 21:
 
title( 'Image Intensity Histogram' )
 
title( 'Image Intensity Histogram' )
 
</pre>
 
</pre>
 +
 +
If you're curious, the <tt>hist</tt> MATLAB command takes in the intensities you measured in <tt>exposureTest</tt>, divides the range of intensities into 100 intervals or 'bins', then counts the number of pixels which fall into each bin.
  
  

Revision as of 15:42, 9 August 2016

Set up the scene and adjust the exposure time

Since we are interested in how noise depends on intensity, we want to collect noise data for the largest possible range of intensities. It would also be nice to have about the same number of pixels at each intensity. The intensity histogram is a useful tool to diagnose these two criteria.

For this part of the lab, you will change your experimental set up to get an image with a approximately uniform intensity histogram. We have left it up to you to decide how to get such an image, but here are a few guidelines:

Figure 1: Example intensity histogram with approximately uniform distribution of pixel values over the range 10-2000 ADU.
  • In the Device Properties tab, set the Exposure Time Abs property to 100.
  • Start running the live histogram utility.
  • Adjust your experiment until your histogram is a reasonably uniform distribution of pixel values between about 10 and 2000. Figure 1 shows a reasonably nice histogram. You might want to try some combination of sliding the optical components around, and adjusting the exposure time and LED current (remember not to exceed 0.5A!).


MATLAB code for plotting a histogram:

[ counts, bins ] = hist( double( squeeze( exposureTest(:) ) ), 100);
loglog( bins, counts, 'LineWidth', 3 )
xlabel( 'Intensity (ADU)' )
ylabel( 'Counts' )
title( 'Image Intensity Histogram' )

If you're curious, the hist MATLAB command takes in the intensities you measured in exposureTest, divides the range of intensities into 100 intervals or 'bins', then counts the number of pixels which fall into each bin.




Global Tree.gif flump



Warning.jpg blort


<dpl>category=Fictitious country</dpl> {{#dpl:

|category=Lab Manuals

}}


$ \frac{1}{2} = 0.5 $
ImageBar.jpg


Somewhere else on the page, you can put the following to reference the elements


 Please refer to Equation 1, and Fig 2