Changes

Jump to navigation Jump to search
no edit summary
Line 89: Line 89:  
[[Image:Screenshot.png|center|Matlab code used for image analysis]]
 
[[Image:Screenshot.png|center|Matlab code used for image analysis]]
   −
This program imports images with the name beginning with fnameref, starting with fnameref-initial.bmp .  The program then converts the image into a matrix of intensity values and separates out the green channel.  It then fits the intensity value to a Gaussian (called as gauss2(n,m,par)) and uses this fit to find the center of the image flare.  Since it is possible for the flare spot to be located outside the frame of the image, several checks are performed to ensure that the location which the program concludes is plausible.  If not, the program notes the check failure in a vector known as badvec (originally a vector of all 1’s) by placing a 0 at the cell corresponding to number of the failed fit.   
+
This program imports images with the name beginning with fnameref, starting with fnameref-initial.bmp .  The program then converts the image into a matrix of intensity values and separates out the green channel. The plot for this channel is then images in flase color, with intensity ranging from low (blue) to high (red).  The bright center spot is the point-to-point image of the illuminated diamond wafer.  This spot remains fixed (the diamond is not really moving in space, simply rotating about fixed axes).  Since this bright spot is many times brighter than the flair spot we are trying to investigate, we artificially mast this location out, so that the fit does not consider those points.
 +
 
 +
{| border="0" align="center"
 +
|- align="center" valign="top"
 +
| [[Image:false1.png|thumb|300px|]]
 +
|| [[Image:false2.png|thumb|300px|]]
 +
|}
 +
  It then fits the intensity value to a Gaussian (called as gauss2(n,m,par)) and uses this fit to find the center of the image flare.  Since it is possible for the flare spot to be located outside the frame of the image, several checks are performed to ensure that the location which the program concludes is plausible.  If not, the program notes the check failure in a vector known as badvec (originally a vector of all 1’s) by placing a 0 at the cell corresponding to number of the failed fit.   
    
The Gaussian fit program which searches for the flare center is the following:
 
The Gaussian fit program which searches for the flare center is the following:
Line 105: Line 112:       −
{| border="0" align="center"
  −
|- align="center" valign="top"
  −
| [[Image:false1.png|thumb|300px|]]
  −
|| [[Image:false2.png|thumb|300px|]]
  −
|}
      
    
 
    
196

edits

Navigation menu