alanrockwood
Member
- Joined
- Oct 11, 2006
- Messages
- 2,185
- Format
- Multi Format
Don't let the "digital camera" in the topic description fool you. This is not a discussion of digital imaging. It is a discussion of how to use a digital camera as a densitometer, i.e. an instrument used to measure film densities for conventional analog photography.
This is kind of an adjunct to my discussion of how I measured the characteristic curve and film speed of Fomapan 200 developed in HC-110 dilution H, but it would apply to any application where one wants to do densitometry of a transparent medium, like a film negative.
Here's how I used a digital camera as a densitometer. Warning: This procedure is laborious and time consuming. Please forgive my somewhat sloppy writing style, such as inconsistent use of tenses, etc.
Equipment:
I turned on the light table and let it warm up.
Then I balanced the camera (with microscope objective attached) on its nose on the light table. Note: the microscope objective is touching the light table, so it is not at the right distance to image what's on the light table. In fact, I definitely don't want it to form an image. It's just there to gather light for the digital camera.
I put the camera on manual exposure and adjusted the shutter speed to produce a correctly exposed shot of the light table. Actually, the shutter speed increments would not match up to perfect exposure, so I bracketed it with two exposures, 0.04 and 0.05 seconds, i.e. 1/25 and 1/20 seconds respectively. The midpoint was 0.045 seconds, and this is a value that is used as a reference value for later calculations. (I believe it isn't actually important to get this exposure just right. For reasons I won't discuss right now, I could probably have used 1/25 seconds, 1/20 seconds, or anything in between.)
I read the two images into ImageJ and extracted histogram lists for the two images. I used jpeg images, partly because ImageJ couldn't import raw images. The jpeg images have a non-linear response to the exposure value, but this doesn't actually matter.
I copied the histograms into Psi-Plot and calculated the centroids of the two peaks. This gives an average value of what the sensor sees for each image. (Maybe I should say non-image, because we aren't actually forming a true image.) Since I picked my reference time for the light source (i.e. the “image” produced by the bare light table) to be midway between 0.04 and 0.05 seconds, I took the average of the centroids of the two histograms as a reference sensor value. It is a kind of target value that will be used in subsequent processes. In other words, the reference shutter speed in the digital camera was 0.045 seconds, and the reference centroid was the average of the centroids at 0.045 and 0.050 seconds.
I then laid the film onto the light table, stood the camera on its nose onto a frame of the film, and took two or three shots. One was unerexposed (barely unerexposed), one was overexposed (barely overexposed, and if I could get one that was nominally correctly exposed I took that one as well. I adjusted the exposure by changing shutter speed.
I read the two (or three) images of a film frame into ImageJ and extracted the centroids of the two (or three) histograms. I did this by fitting a Gaussian function to the histogram, and took the center of the Gaussian fit to be the centroid of the histogram. It might have been a little better to calculate the centroids by quadrature, but in this application it's not really going to matter. Here's where some of the magic happens. I interpolated between the two bracketed exposures to determine what shutter speed would produce a centroid of exactly the same value as the reference centroid taken from the bare light table. It doesn't have to match any shutter speed that the camera actually produces. For example, when I did this for a base+fog frame I got 1/8 and 1/10 seconds as bracketing a “correct” exposure. When I interpolated between them I calculated that a shutter speed of 0.1016 seconds would give the exact same centroid as the my light table reference centroid discussed previously.
For the base+fog frame I then calculated the ratio of 0.1016/0.045=2.25777..., and density= log(2.25777...)=0.353, where I rounded density to three decimal points. (This might be more precision than justified by the experimental uncertainty, but it's free to carry an extra significant figure, so why not?)
I did the same for the other film frames. For example, the frame exposed at 1/2000 seconds (that's exposure given to the film, not the exposure used in the digital camera-based densitometer) gave an interpolated shutter speed of 0.1029 which gave a density of log(0.1029/0.045) = 0.359, and the frame in which the film was exposed at 1/125 seconds gave a density of 0.817.
That's pretty much it for the densitometry measurements.
I haven't discussed above how I decided how much to expose the film frames for the characteristic curve determination. Theoretically, exposing the film through a step table would be a good idea, but for various reasons it was actually not a good idea in this case. Briefly, I picked a convenient combination of f-stop and shutter speeds in my film camera, a Canon T2 in this case. During all film exposures I held the f-stop constant and varied the shutter speed. I did this because I figured that the shutter speeds are more precise than the f-stops, so I just relied on shutter speeds to vary the amount of light the film is exposed to. In picking the right f-stop to use one kind of juggles the available values of f-stop so as to give a convenient range of shutter speeds that will cover the range of exposures I want to produce, such as (for example if I am using the zone system) how many stops above and below zone V I want to test. If I am doing a film speed test I might not know what the E.I. is, so I don't actually know where zone V is in the exposure range, but I probably have a rough guess, so I just make sure that I have plenty of stops above and below that range in the table of shutter speeds I am going to use for exposing the film. I tried to be avoid extremes of shutter speed at the fast and slow ends so as to avoid reciprocity failure. However, I might have stuck my toe in the reciprocity failure pond at the fast shutter speed end of the experiment. In some cases maybe I should have varied the f-stop as well, to avoid approaching the reciprocity failure regions.
This is kind of an adjunct to my discussion of how I measured the characteristic curve and film speed of Fomapan 200 developed in HC-110 dilution H, but it would apply to any application where one wants to do densitometry of a transparent medium, like a film negative.
Here's how I used a digital camera as a densitometer. Warning: This procedure is laborious and time consuming. Please forgive my somewhat sloppy writing style, such as inconsistent use of tenses, etc.
Equipment:
- A digitial SLR or mirrorless camera. I used a Canon Xti.
- A microscope objective. (I used an inexpensive 4X plana-achro objective corrected for 160 tube length, but this will be a non-imaging application, so almost none of this description actually matters.)
- An extension tube and adapter for attaching the microscope to the camera.
- A light table, preferably oriented horizontally.
- A computer
- Software. I used software packages called ImageJ and Psi-Plot to do various parts of the calculations. One software package was used to extract histogram lists from the images produced by the camera, and the other was to calculate centroids of the histogram and to do some interpolations as described later.
I turned on the light table and let it warm up.
Then I balanced the camera (with microscope objective attached) on its nose on the light table. Note: the microscope objective is touching the light table, so it is not at the right distance to image what's on the light table. In fact, I definitely don't want it to form an image. It's just there to gather light for the digital camera.
I put the camera on manual exposure and adjusted the shutter speed to produce a correctly exposed shot of the light table. Actually, the shutter speed increments would not match up to perfect exposure, so I bracketed it with two exposures, 0.04 and 0.05 seconds, i.e. 1/25 and 1/20 seconds respectively. The midpoint was 0.045 seconds, and this is a value that is used as a reference value for later calculations. (I believe it isn't actually important to get this exposure just right. For reasons I won't discuss right now, I could probably have used 1/25 seconds, 1/20 seconds, or anything in between.)
I read the two images into ImageJ and extracted histogram lists for the two images. I used jpeg images, partly because ImageJ couldn't import raw images. The jpeg images have a non-linear response to the exposure value, but this doesn't actually matter.
I copied the histograms into Psi-Plot and calculated the centroids of the two peaks. This gives an average value of what the sensor sees for each image. (Maybe I should say non-image, because we aren't actually forming a true image.) Since I picked my reference time for the light source (i.e. the “image” produced by the bare light table) to be midway between 0.04 and 0.05 seconds, I took the average of the centroids of the two histograms as a reference sensor value. It is a kind of target value that will be used in subsequent processes. In other words, the reference shutter speed in the digital camera was 0.045 seconds, and the reference centroid was the average of the centroids at 0.045 and 0.050 seconds.
I then laid the film onto the light table, stood the camera on its nose onto a frame of the film, and took two or three shots. One was unerexposed (barely unerexposed), one was overexposed (barely overexposed, and if I could get one that was nominally correctly exposed I took that one as well. I adjusted the exposure by changing shutter speed.
I read the two (or three) images of a film frame into ImageJ and extracted the centroids of the two (or three) histograms. I did this by fitting a Gaussian function to the histogram, and took the center of the Gaussian fit to be the centroid of the histogram. It might have been a little better to calculate the centroids by quadrature, but in this application it's not really going to matter. Here's where some of the magic happens. I interpolated between the two bracketed exposures to determine what shutter speed would produce a centroid of exactly the same value as the reference centroid taken from the bare light table. It doesn't have to match any shutter speed that the camera actually produces. For example, when I did this for a base+fog frame I got 1/8 and 1/10 seconds as bracketing a “correct” exposure. When I interpolated between them I calculated that a shutter speed of 0.1016 seconds would give the exact same centroid as the my light table reference centroid discussed previously.
For the base+fog frame I then calculated the ratio of 0.1016/0.045=2.25777..., and density= log(2.25777...)=0.353, where I rounded density to three decimal points. (This might be more precision than justified by the experimental uncertainty, but it's free to carry an extra significant figure, so why not?)
I did the same for the other film frames. For example, the frame exposed at 1/2000 seconds (that's exposure given to the film, not the exposure used in the digital camera-based densitometer) gave an interpolated shutter speed of 0.1029 which gave a density of log(0.1029/0.045) = 0.359, and the frame in which the film was exposed at 1/125 seconds gave a density of 0.817.
That's pretty much it for the densitometry measurements.
I haven't discussed above how I decided how much to expose the film frames for the characteristic curve determination. Theoretically, exposing the film through a step table would be a good idea, but for various reasons it was actually not a good idea in this case. Briefly, I picked a convenient combination of f-stop and shutter speeds in my film camera, a Canon T2 in this case. During all film exposures I held the f-stop constant and varied the shutter speed. I did this because I figured that the shutter speeds are more precise than the f-stops, so I just relied on shutter speeds to vary the amount of light the film is exposed to. In picking the right f-stop to use one kind of juggles the available values of f-stop so as to give a convenient range of shutter speeds that will cover the range of exposures I want to produce, such as (for example if I am using the zone system) how many stops above and below zone V I want to test. If I am doing a film speed test I might not know what the E.I. is, so I don't actually know where zone V is in the exposure range, but I probably have a rough guess, so I just make sure that I have plenty of stops above and below that range in the table of shutter speeds I am going to use for exposing the film. I tried to be avoid extremes of shutter speed at the fast and slow ends so as to avoid reciprocity failure. However, I might have stuck my toe in the reciprocity failure pond at the fast shutter speed end of the experiment. In some cases maybe I should have varied the f-stop as well, to avoid approaching the reciprocity failure regions.