Changes

Jump to navigation Jump to search
no edit summary
Line 96: Line 96:  
|| [[Image:false2.png|thumb|300px|]]
 
|| [[Image:false2.png|thumb|300px|]]
 
|}
 
|}
The program 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 program 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 program then fits the actual intensity to the fit intensity at each pixel.  Suitable shape and amplitude parameters for the flare spots were chosen based on analysis of individual images.  Once the fit is complete, the program put the x and y location for an image in a matrix called pars, with the x location in column 1 and the y locations in column 2.  The program loops this fitting procedure until all the images have been fit.  Once the fit is complete, the mean value for the x and y positions are subtracted from their respective columns and the data points are scaled (using the data received from the camera calibration) to obtain the deflection of the glass from center.  We can also find the frequency components of this vibration by taking the Fourier transform of the amplitude plot.
 
  −
The Gaussian fit program which searches for the flare center is the following:
  −
 
  −
[[Image:Screenshot2.png|center|300px|Matlab code used for image analysis]]
  −
 
  −
The parameters p(1) and p(2) are the x and y locations for the test point, respectfully.  Suitable shape and amplitude parameters for the flare spots were chosen based on analysis of individual images.  Once the fit is complete, the program put the x and y location for an image in a matrix called pars, with the x location in column 1 and the y locations in column 2.  The program loops this fitting procedure until all the images have been fit.  Once the fit is complete, the mean value for the x and y positions are subtracted from their respective columns and the data points are scaled (using the data received from the camera calibration) to obtain the deflection of the glass from center.  We can also find the frequency components of this vibration by taking the Fourier transform of the amplitude plot.
      
{| border="0" align="center"
 
{| border="0" align="center"
196

edits

Navigation menu