The aperture had to be increased with the paper hole punch to make more light available because for the larger image. There were some thin clouds near the Sun at the time the photo was taken which complicated matters somewhat but this shows how one can create a larger image. The combination of the two lenses forms a small Galilean telescope.
Tuesday, April 17, 2012
Magnifying the Sun's Image
One can magnify the Sun's image by adding a diverging lens to the optical bench. The lens used was -6 diopters and was placed near the focal length of the reading glasses. The screen was moved further away from the lens to where the image was approximately in focus.

The aperture had to be increased with the paper hole punch to make more light available because for the larger image. There were some thin clouds near the Sun at the time the photo was taken which complicated matters somewhat but this shows how one can create a larger image. The combination of the two lenses forms a small Galilean telescope.
The aperture had to be increased with the paper hole punch to make more light available because for the larger image. There were some thin clouds near the Sun at the time the photo was taken which complicated matters somewhat but this shows how one can create a larger image. The combination of the two lenses forms a small Galilean telescope.
Imaging the Sun with Reading Glasses
This morning a pair of clip-on reading glasses arrived at my home from amazon.cm and I was able to make a simple device for imaging the Sun. The lenses are +1.50 diopters and I mounted them on an optical bench to illustrate the relation between the diopter power and the focal length which is 2/3 of a meter.

The small aperture in the index card reduces the brightness of the projected image and improves the sharpness of the image since the lenses were designed to work near the eye and so not all the rays from the glasses will focus correctly on the image card.

The reading glasses do help with working at the computer since I wear bifocals and have some presbyopia. The Visby lenses are evidence that some of my distant ancestors may also have suffered from this condition. These lenses were quite sophisticated for their time.
The small aperture in the index card reduces the brightness of the projected image and improves the sharpness of the image since the lenses were designed to work near the eye and so not all the rays from the glasses will focus correctly on the image card.
The reading glasses do help with working at the computer since I wear bifocals and have some presbyopia. The Visby lenses are evidence that some of my distant ancestors may also have suffered from this condition. These lenses were quite sophisticated for their time.
Friday, April 13, 2012
Problems With Reconstructing Pinhole Images
It can be difficult to see fine details in a B&W image and another way of viewing the simulated pinhole image is by looking at the changes instead. In the images below the changes between neighboring pixels were computed and stretch in the grey scale to fit between 0 and 255. The zero point was chosen to be 50% grey. White indicates a positive difference and black a negative difference.

The two contrast images show how the small dark point at the center of the test object affects the pinhole image. There is a slight decrease when the aperture includes these points.
I also noticed a lot of round off errors in the aperture sums. The sums ranged from 0 to 317 (the number of aperture pixels) which were adjusted to fit between 0 and 255 for the image. Converting back to the original range produced the round off errors of ±1.

The errors occurred where the changes took place mainly within a range of ro±ra from the center of the disk where ro was the radius of the disk and ra was the radius of the aperture. The errors make it more difficult to reconstruct an image.

The two contrast images show how the small dark point at the center of the test object affects the pinhole image. There is a slight decrease when the aperture includes these points.
I also noticed a lot of round off errors in the aperture sums. The sums ranged from 0 to 317 (the number of aperture pixels) which were adjusted to fit between 0 and 255 for the image. Converting back to the original range produced the round off errors of ±1.

The errors occurred where the changes took place mainly within a range of ro±ra from the center of the disk where ro was the radius of the disk and ra was the radius of the aperture. The errors make it more difficult to reconstruct an image.
Wednesday, April 11, 2012
Correcting Pinhole Camera Images
The pinhole camera images may contain more image content than the number of aperture sized pixels would indicate. If one has an array of numbers which represent a test object one can generate the equivalent of a pinhole image by summing over a test aperture. In the example below the x values represent the object and x' an image obtained by using a 2x2 aperture.

The calculations for a few of the image points, x'j,k, are shown. If rows and columns of buffer points with value zero are included about the test object points then only one object point contributes to the sum for each point in the first row of image points.

If we start out with a new array, x''j,k, in which the points are all zero we can substitute the sums over the aperture using the new array instead of the test object. Starting at the top left we can solve one step at a time for the unknown image points in the new array using values from the pinhole image.

We get back the original pattern in the test image by doing one row at a time from top to bottom. In each case the new point is just the difference between the corresponding point in the pinhole image and a sum over known values in the partially completed reconstructed image.
To illustrate the process for more complicated images a test object was generated which contained a disk 101 lines in diameter. The simulated pinhole image was generated using a circular aperture 21 lines in diameter. While scanning from left to right and top to bottom if a nonzero point was encountered in the pinhole image the unknown image point was taken to be the position of the point of the aperture which was closest to the center of the disk in the pinhole image.

The extracted image shows a disk of the same diameter as the original but it did not contain the small dark spot in the center of the original image and also contained a few errors near the edge of the disk. The errors may be due to the scanning process or to the use of rounded values in the pinhole image.

The calculations for a few of the image points, x'j,k, are shown. If rows and columns of buffer points with value zero are included about the test object points then only one object point contributes to the sum for each point in the first row of image points.

If we start out with a new array, x''j,k, in which the points are all zero we can substitute the sums over the aperture using the new array instead of the test object. Starting at the top left we can solve one step at a time for the unknown image points in the new array using values from the pinhole image.

We get back the original pattern in the test image by doing one row at a time from top to bottom. In each case the new point is just the difference between the corresponding point in the pinhole image and a sum over known values in the partially completed reconstructed image.
To illustrate the process for more complicated images a test object was generated which contained a disk 101 lines in diameter. The simulated pinhole image was generated using a circular aperture 21 lines in diameter. While scanning from left to right and top to bottom if a nonzero point was encountered in the pinhole image the unknown image point was taken to be the position of the point of the aperture which was closest to the center of the disk in the pinhole image.

The extracted image shows a disk of the same diameter as the original but it did not contain the small dark spot in the center of the original image and also contained a few errors near the edge of the disk. The errors may be due to the scanning process or to the use of rounded values in the pinhole image.
Friday, April 6, 2012
The Sun's Image for an Aperture in the Shape of a Pythagorean Star
The shape of the aperture is quite arbitrary as said before and the Pythagorean star gives a result similar to those of the n-gons.

In the radial curves for the image the deviations for different values of the angle θ vary from a mean value and appear to be affected by the symmetry of the aperture. Both the Pythagorean star and the pentagon have five peak deviations.

In the radial curves for the image the deviations for different values of the angle θ vary from a mean value and appear to be affected by the symmetry of the aperture. Both the Pythagorean star and the pentagon have five peak deviations.
Wednesday, April 4, 2012
"Triangular" Coordinates
The coordinates used for a position in the aperture for the Sun image calculations are not readily found so it might be good to say a few words about them. I think of them as "triangular" coordinates and they are related to barycentric coordinates. They are defined with respect to the vertices of a triangle, ak, as illustrated in the image below. One starts projecting the position of an arbitrary point, q, from point the a2 onto the line connecting the first two points meeting it at q'. λ is then the fraction of the distance that q' makes from a0 to a1. Similarly μ is the fraction of the distance that q makes from q' to a2. So both λ and μ vary from 0 to 1.

The properties of triangular coordinates are rather interesting. They are fairly easily transformed back and forth from ordinary Cartesian coordinates.

The fundamental forms for the line element and area are not very complicated.

Also the distance between two triangular coordinates can be computed exactly using finite differences.

One can also extend the system to triangular pyramids as can be seen by the projection of a line from an image point through an aperture point. The projection of an arbitrary point in the pyramid onto a plane is unique as is the projection of a point onto a line.
The properties of triangular coordinates are rather interesting. They are fairly easily transformed back and forth from ordinary Cartesian coordinates.

The fundamental forms for the line element and area are not very complicated.

Also the distance between two triangular coordinates can be computed exactly using finite differences.

One can also extend the system to triangular pyramids as can be seen by the projection of a line from an image point through an aperture point. The projection of an arbitrary point in the pyramid onto a plane is unique as is the projection of a point onto a line.
Monday, April 2, 2012
The Relative Illuminance of Inscribed Polygons
One can compute the functions for the projected images of the Sun produced by light passing through known apertures. For the case of regular polygons (n-gons) some of the equations needed in Mathcad are shown in the image below. One can start by defining a point, p, in the image plane. The vertices of the n-gon aperture are designated by letter "a" and a point within the aperture is given by q. Δq' gives the distance of the projected image of q in the image plane onto an illuminating disk which represents the Sun. The integral, I, computes the sum of all the flux tubes illuminating a given spot on the screen. A''dλdμ is an element of area in the aperature and to see if its projection from the point on the screen contributes to the sum we have to add the condition that it be within an angular distance θS, the Sun's angular radius, from the center of the disk. Using a logic function is convenient since it is either 1 or 0 depending on whether or not the projected point contributes.

To simplify form of I(r,θ) the n-gon was divided up into n-1 triangles designated by k1. The entire area of the polygon is the sum, Σ, of n-1 such integrals. This allows one to compute a set of radial curves for various values of θ. One such set for an inscribed triangle is shown below with θ varying from 0° to 90°. The curves are constant when the projection is near the center of the disk but as one crosses its edges fewer points contribute and the curve is sloped as a result. As the number of sides in the aperture increases the resulting curves converge to those of a the circle.

One can also compare the illumination from a number of n-gons inscribed in a circle of radius ra. In each case the integral for the aperture was divided by the area of the circle which is also found in the formula for the area of the inscribed n-gon, An.

The maximum heights of the n-gon integral curves are in agreement with sin(Δθn)/Δθn. The total area under each of the integral curves is that of the n-gon used for the aperture. Note also that the width of the sloping sides of the illuminated image is equal to the width of the aperture or, in other words, the width of a "line."

To simplify form of I(r,θ) the n-gon was divided up into n-1 triangles designated by k1. The entire area of the polygon is the sum, Σ, of n-1 such integrals. This allows one to compute a set of radial curves for various values of θ. One such set for an inscribed triangle is shown below with θ varying from 0° to 90°. The curves are constant when the projection is near the center of the disk but as one crosses its edges fewer points contribute and the curve is sloped as a result. As the number of sides in the aperture increases the resulting curves converge to those of a the circle.

One can also compare the illumination from a number of n-gons inscribed in a circle of radius ra. In each case the integral for the aperture was divided by the area of the circle which is also found in the formula for the area of the inscribed n-gon, An.

The maximum heights of the n-gon integral curves are in agreement with sin(Δθn)/Δθn. The total area under each of the integral curves is that of the n-gon used for the aperture. Note also that the width of the sloping sides of the illuminated image is equal to the width of the aperture or, in other words, the width of a "line."
Subscribe to:
Posts (Atom)