Changes

Jump to navigation Jump to search
m
Line 3: Line 3:  
== Data Recording ==
 
== Data Recording ==
   −
In our lab experiments, we must measure and record a colimnated light beam. This is done by shining the beam into a camera (the Casio Exilim EX-F1) and photographing the results. In order to properly interpret the information, it is necessary to understand the effects of the lenses on the image. This is incredibly difficult because of a number of factors. Most importantly, we have no way to directly measure the camera and acquire most of the information that we need. The lens assembly on the Exilim EX-F1 cannot be removed, so we cannot replace it with a custom- built lens assembly of known dimensions. All we can measure are a limited number of lengths, and we know the ranges of F-numbers and focal lengths. In order to solve this problem, a number of significant approximations and generalizations must be made. While the actual lens assembly contains twelve disparate lenses, our approximation has only four, and unlike the actual assembly, our approximation contains only perfect, idealized spherical lenses. These approximations would certainly affect our final results, but most likely not enough to severely skew our results.
+
In our lab experiments, we must measure and record a collimated light beam. This is done by shining the beam into a camera (the Casio Exilim EX-F1) and photographing the results. In order to properly interpret the information, it is necessary to understand the effects of the lenses on the image. This is incredibly difficult because of a number of factors. Most importantly, we have no way to directly measure the camera and acquire most of the information that we need. The lens assembly on the Exilim EX-F1 cannot be removed, so we cannot replace it with a custom- built lens assembly of known dimensions. All we can measure are a limited number of lengths, and we know the ranges of F-numbers and focal lengths. In order to solve this problem, a number of significant approximations and generalizations must be made. While the actual lens assembly contains twelve disparate lenses, our approximation has only four, and unlike the actual assembly, our approximation contains only perfect, idealized spherical lenses. These approximations would certainly affect our final results, but most likely not enough to severely skew our results.
    
== Inside the Lens Assembly ==
 
== Inside the Lens Assembly ==
Line 15: Line 15:  
== First Iteration==
 
== First Iteration==
   −
[[http://upload.wikimedia.org/wikipedia/en/7/71/Lens3.svg Image of a thin lens focusing. Image taken from Wikipedia]]
+
[[Image:Thin_Lenses_002_(Lenses_Reflecting).png|thumb|The top and bottom light paths for an object (on the left), traveling through arbitrary lenses and resolving an image (on the right).]]
 +
 
 +
[[Image:Thin_Lenses_003_(Image_Height).png|thumb|Calculating the height of an image. In this diagram, the image is formed (unfocused) before the focal point because of the lens spacing. Only one light path is shown. This math, while invalid, led to more accurate calculations in the third iteration.]]
    
With this known, we were able to create a basic spreadsheet. While many details of this sheet would later be proven wrong or simply be abandoned, the concepts are valid, and it is a sufficient starting point.
 
With this known, we were able to create a basic spreadsheet. While many details of this sheet would later be proven wrong or simply be abandoned, the concepts are valid, and it is a sufficient starting point.
Line 38: Line 40:  
where <math> M _1 </math> is the size of the object and <math> M _2 </math> is the size of the image.
 
where <math> M _1 </math> is the size of the object and <math> M _2 </math> is the size of the image.
 
By repeating these calculations for all lenses in the lens assembly, a final image magnification could be calculated.
 
By repeating these calculations for all lenses in the lens assembly, a final image magnification could be calculated.
Unfortunately, there were problems with this approximation, namely that it uses the wrong type of light. This approximation assumes that the object is a physical thing, which would allow light rays to leave it from any angle, allowing the required light rays shown in the illustration to pass through the lens. However, the light used is collimnated laser light, meaning that all the light rays are parallel when they enter the lens assembly. Therefore, this approximation is invalid.
+
Unfortunately, there were problems with this approximation, namely that it uses the wrong type of light. This approximation assumes that the object is a physical thing, which would allow light rays to leave it from any angle, allowing the required light rays shown in the illustration to pass through the lens. However, the light used is collimated laser light, meaning that all the light rays are parallel when they enter the lens assembly. Therefore, this approximation is invalid.
    
== Second Iteration ==
 
== Second Iteration ==
   −
(Illustration pending)
+
[[Image:Thin_Lenses_005_(Single_Ray).png|thumb|Two light paths, from an object off the left side of the frame. The vertical lines are the lenses. Notice how the light rays cross through the focal point and continue through to the next lens.]]
   −
If the light entering the lens assembly is colimnated and enters the , then the top and bottom beams (the only two beams needed to locate the image) will travel through the first lens parallel, and both will cross through the focal point. The size of the image will then be
+
If the light entering the lens assembly is collimated and enters the , then the top and bottom beams (the only two beams needed to locate the image) will travel through the first lens parallel, and both will cross through the focal point. The size of the image will then be
    
<math> \frac{M _1}{f} = \frac{M _2}{L-F}</math>
 
<math> \frac{M _1}{f} = \frac{M _2}{L-F}</math>
Line 57: Line 59:  
== Third Iteration ==
 
== Third Iteration ==
   −
== Fourth Iteration? ==
+
[[Image:Thin_Lenses_004_(Collimnated_Rays).png|thumb|A ray entering the lens assembly at an angle such that it is normal to the lens. If we treat this ray is the topmost ray in a collimnated beam and its reflection around the center of the lenses (the horizontal line) as the lowermost ray, we can find the image height. Values are as explained in the text.]]
 +
 
 +
Still assuming that the collimnated light will enter the lens at a zero angle, any given light path will pass through the focal point of the first lens and will then pass through a particular point in the focal plane of the other lenses. This point can be calculated by tracing the trajectory of a theoretical beam of light passing through the center of the first lens at the same angle that the actual beams traced before entering the lens.
 +
 
 +
<math> \tan\theta = \frac{m}{f _1}</math>
 +
 
 +
From this and simple geometry, we find that
 +
 
 +
<math> \tan\theta = \frac{c}{f _2}</math>
 +
 
 +
and therefore
 +
 
 +
<math> \frac{m}{f _1} = \frac{c}{f _2}</math>
 +
 
 +
and therefore
 +
 
 +
<math> c = \frac{f _2}{f _1} m</math>
 +
 
 +
where c is the horizontal displacement from the focal point on the focal plane.
 +
 
 +
From this, we can use a bit of linear regression to chart the size of the image.
 +
 
 +
<math> y = \frac{l f _2 - s _1 c _1 + s _1 l + c x - l x}{f _2}</math>
 +
 
 +
By inputting
 +
 
 +
<math> x = s _2 </math>
 +
 
 +
we can calculate the magnification of the image.
 +
 
 +
This approximation is correct, accurate, and valid. It works perfectly, except that it is only correct, accurate, and valid when the collimnated light enters the lens at a zero angle.
 +
 
 +
== Fourth Iteration ==
 +
 
 +
The fourth iteration is elementary. The light is now allowed to enter the lens assembly at a selected angle <math>\theta</math> which is input by the user. Since
 +
 
 +
<math> \tan{\theta} = \frac{c}{f _2}</math>
 +
 
 +
the equation is very simple to appropriately modify to take this into account.
 +
 
 +
This equation forms the basis of the fifth iteration.
 +
 
 +
== Fifth Iteration ==
 +
 
 +
The fifth iteration must generate a proper two-dimensional image through a three-dimensional camera. This model must allow for the light to enter the camera at any angle and offset. To simplify this, the two-dimensional model is used for each axis. The user will input an entry angle in both the X and Y directions, and he will input an entry offset in the same fashion.
 +
 
 +
We know logically that the image will not be compressed or stretched by passing through the lenses, as this cannot be seen in photography. First, therefore, we will track the center of the image as it passes through the lenses. This is done by calculating the offsets using the equation
 +
 
 +
<math>O = F_p \tan{(\theta_p)}+{(S_p-F_p)}\tan{(\theta)}\,</math>
 +
 
 +
where the entry angle is defined by
 +
 
 +
<math> \theta = \arctan{(\tan({\theta_p})-\frac{O_p}{F}})</math>
 +
 
 +
where <math>\theta</math> is the entry angle at a given lens, <math>O</math> is the directional offset at the given lens, F is the focal length of the given lens, S is the spacing between the given lens and the next lens, and <math>R_p</math> is the value of any value R at the previous lens.
 +
 
 +
[[Image:Lens_arrangement.png|thumb|The lenses, as viewed by the sensor. The sensor perceives only the light that passes through every lens. The lenses appear off-center because the light is entering at some offset and angle.]]
 +
 
 +
Given these equations, we can further calculate the magnification of the image by recalculating the position of its edges. Assuming the image is symmetrical on some X and Y axis, we can find its size by tracing the position of its edges, defined as the offset plus or minus half the size of the object. Given these, we can calculate the image's size and location on each of the lenses, as well as the sensor.
 +
 
 +
== Aperture ==
 +
 
 +
[[Image:Lens_side_trim.png|thumb|A side view of the lens assembly. Notice that because of the entry angle, one of the illustrated beams is cut off before reaching the second lens. The final image will be only the remaining half of the original.]]
 +
 
 +
The above equations can generate images magnified or offset beyond what the camera can resolve, as the camera lens assembly has a radius of 3.75 cm. To compensate for this and prevent resolution of an image larger than the camera can allow, we need to superimpose over our final offset and magnified image the effects of the lens assembly. At any given lens, the image will be at either its maximum or minimum magnification counting from the previous lens. These lenses can be generated by the equation
 +
 
 +
<math>O = O_s -(M*O_c)\,</math>
 +
 
 +
where O is the O-coordinate for the given lens, <math>O_c</math> is the O-coordinate for the center of the image circle at this lens, and M is the magnification of the image at the given lens.
 +
 
 +
These coordinates are used to set the center of the lens superpositions. With this known, and with the image magnifications known, we can draw the lens superpositions and observe what of the image is cut off by the lenses.
 +
 
 +
== Future Improvements ==
 +
 
 +
* Unknown
135

edits

Navigation menu