The 5% Solution

Stephen Barrett

Leading Member
Messages
696
Solutions
1
Reaction score
98
The Problem

I am having a recurring problem with discrepancies of approximately 5%. Most often, I notice the problem when I take a shot with a closeup lens and want to know the size of something in the picture. The steps are fairly straightforward:
  1. Measure the object of interest (a bug, say) on your computer screen and divide by the width (or height) of the full frame on your computer screen.
  2. Multiply the ratio obtained in step 1 by the width (or height) of the frame on the sensor to get the size of the bug's image on the sensor.
  3. Divide the image size from step 2 by the magnification to get the size of the bug.
Step 2
The first problem occurs in step 2 with knowing the size of the frame on the sensor.
According to Wiki, dpreview and other sources, the size of the 1/2.3" sensor in the SX30, SX40 and SX50 is:

6.17 mm x 4.55 mm [A]

But the dimensions are not in a 4:3 ratio, so the largest possible frame size that will fit on the sensor is:

6.07 mm x 4.55 mm

It is possible that the frame that you see in your picture is smaller than that because the in-camera conversion from RAW to jpeg crops away a bit of the edges. The amount may vary with focal length and with focus distance. My thinking is that the amount of cropping is not significant at the higher focal lengths where distortion should be relatively small.

Steen Bay, replying (Nov 27/12) to one of my postings in this forum, suggested that:

"If we compare the actual FL and the equivalent FL (4.3-215mm vs. 24-1200mm) we'll get a 5.58x crop-factor, and if we divide the diagonal of a 24x36mm sensor (43.27mm) by 5.58 we'll get 7.754mm, meaning that the SX50 sensor should be app. 6.20x4.65mm":

6.20 mm x 4.65 mm [C]

This suggest that Canon may be using a 1/2.3" sensor that is about 2% larger than , which is certainly possible because Canon apparently makes its own sensors and I can find no information online where Canon specifies the sensor dimensions.

Yet another possibility is to calculate sensor size from the crop factor as Steen Bay did, but to use a different definition of crop factor:

"Crop factor can be defined in either of the following two ways:
  1. Crop factor = the ratio of the diagonal dimensions of the respective formats
  2. Crop factor = the square root of the ratio of the areas of the respective formats."
http://www.seriouscompacts.com/showthread.php?t=11338

Using the second definition, the area of the full-frame sensor is 36 mm x 24 mm = 864 mm^2
The area of the sensors used in the SX30, SX40 and SX50, with a crop factor of 5.58, would then be 864 mm^2 / 5.58^2 = 27.75 mm^2, leading to dimensions:

6.08 mm x 4.56 mm [D]

This is very close to so, if Canon is using this less-usual definition of crop factor, they could still be using the usual 1/2.3" sensor with the dimensions of [A] and the 4:3 image would approximately fit on it.

Testing with Closeup Lenses
Most of my test measurements have been at full optical zoom of my SX30 (150.5 mm) with the camera set to infinite zoom. One reason for using infinite zoom is that it allows you to know what the actual focal length of the camera lens is:

"It is a little known fact that telephoto lenses can have a radically different actual focal length depending upon focus distance (Google 'focus breathing' for more info). For example, a Nikon AF-S 28-300mm f/3.5-5.6G ED VR lens set to 300mm will have the expected actual focal length near to 300mm when focused far away -- but has an actual focal length less than half that when focused at 18 inches!" http://www.panohelp.com/lensfov.html

Step 3 for a closeup lens:
The magnification of a closeup lens is given by:

m = f / f_closeup (1)

with the camera set to infinite focus,
where f is the focal length of the camera (mm)
and f_closeup is the focal length of the closeup lens (mm)

The Raynox-250 has a nominal strength of 8 diopters or a nominal focal length of 1000 / 8 = 125 mm.
I performed thorough measurements on my Raynox-250, treating it as a thick lens, to obtain its focal length and location of the principal planes. The actual focal length was 125.0 mm +/- 0.5 mm, in agreement with its nominal value.

Here is a test shot of a reticle with 0.1 mm gradations taken with the Raynox-250 closeup lens on my SX30 with focal length set to 150.5 mm and infinite focus:


FOV width = 5.32 mm with SX30 @ 150.5 mm, infinite focus + Raynox 250

From Equation 1, the magnification is:

m = 150.5 mm / 125.0 mm = 1.204 (2)

The image size, which is the width of the frame on the sensor, is m times the object size (5.32 mm in the photo):

Frame width on sensor = m x 5.32 mm = 6.40 mm (3)

This is more than 5% larger than the the width B or D.

Testing the Camera Alone
With my SX30 set to 150.5 mm and infinite focus, I measured a field of view of 2,530 mm at a distance of E = 59,863 mm from the camera's entrance pupil. http://www.panohelp.com/thinlensformula.html
(For those camera settings, I measured the entrance pupil to be 300 mm behind the camera's mounting screw.
http://www.panohelp.com/lensfov.html ) The half view angle for width is given by:

alpha = arctan ( 0.5 x 2,430 / 59,863) = 1.21 degree (4)

So the full view angle for width is 2.42 degrees.

(Frame width on Sensor) / F = 2 tan (alpha) = 2,530 / 59,863 = 0.0423 (5)

where F = (1 + m/P) f
= f at large distance and infinite focus

So
Frame width on sensor = 0.0423 f (6)

If f = 150.5 mm, Frame width on sensor = 6.37 mm
which, again, is about 5% larger than the width B or D.

Focal Lengths Shorter than Nominal Values?
Here is a possible explanation of why I am obtaining values that appear to be about 5% too high:
"Lenses are rarely exactly as marked when it comes to focal length (or aperture, though that's another issue...), especially telephoto lenses."

"As you can see, it doesn't much matter who made the lens or what the maximum focal length was, in every case the measured maximum focal length is less than the marked maximum focal length, and the average difference is about 5%. The difference is always on the short side. I didn't find any examples where the actual focal length of a telephoto was longer than marked!"
-Bob Atkins, discussing the focal lengths of SLR lenses

Bob Atkins describes the methods that he uses to measure the focal lengths, his "hard way" and his "easy way". His "easy way" is to set the focus to infinity and use:

f = Image size / [2 tan( object angle / 2)].


This is very similar to method E that I used above in Equation 5, except that, with an SLR lens, Atkins was able to make a direct measurement of image size, whereas we are unable to remove our PowerShot lenses to get a direct measurement of the image size. Nevertheless, if SLR telephoto lenses have actual focal lengths that are on average 5% smaller than specified values, it seems likely that this practice may also apply to PowerShot lenses. For example, the maximum equivalent focal length of the SX50 might be only 95% x 1200 mm = 1140 mm.

If f were to be reduced by 5% in my calculations, the magnification value in Equation 2 and the frame width in Equation 2 would also be reduced by 5% and the discrepancy for closeup lenses would vanish. Likewise, for the camera alone, the frame width calculated in equation 6 would also be reduced by 5% and that discrepancy would also vanish.

Conclusion
Use of the nominal value f = 150.5 mm at infinite focus on my SX30 leads to frame sizes on the sensor that are about 5% too large to fit on the typical 1/2.3" sensor.
  1. One possibility is that Canon uses 1/2.3" sensors that are 5% larger than typical.
  2. A second possibility is that Canon uses the typical size sensor together with the area-based definition of crop factor and also uses an actual focal length that is about 5% smaller than the nominal value.
  3. A third possibility is some combination of the first two, such as a 2% larger sensor size with the diagonal-based definition of crop factor (C above) and focal lengths that are 3% smaller than nominal values.
  4. A fourth possibility is that I have made multiple blunders.
 
Sorry, this is way over my head.

I just want to take the picture .......
 
What ????
 
Hi Stephen,

I think (but I am not sure) that you may be overthinking this issue.

Your analysis does not consider the actual sensel values (values from individual sensor elements) versus the pixels created by demosaicing the raw sensel image into a jpg.There are always more sensels than there are final pixels for several practical reasons.

Keep in mind that each pixel in that final image includes contributions from 1-2 dozen neighboring sensels. Also keep in mind that the edges of the image present special cases since you need to figure out how to deal with "edge effects." In other words, do you produce only pixels that have symmetrical contributing sensels on all sides? Note that this would immediately lead to trimming the pixel dimensions below the original sensel dimensions.

Do you make approximations to estimate pixel values all the way to the edge of the sensel geometry? My understanding is that some "demosaicing" algorithms may do this. In any event, you will generally find that the processes that produce the final image will be trimming that image to fewer pixels than the number of original sensels. You probably will find that many demosaicing processors will actually trim the final result even a bit further to eliminate edge artifacts introduced by less than perfect lenses.

What does this mean for your analysis? It means that knowing the dimensions in mm of the sensor is not particularly useful in calculating the magnification of the lens/sensor combination since there will virtually always be a reduction in the number of pixels from the original number of sensel elements.

If the above is beyond comprehension it may be the fault of my explanation or you may not yet be able to transform the concept of a sensel image of a Bayer array of filtered sensels in your mind into a pixel image.



I don't know exactly how many sensel values contribute to the raw images of my SX50. What I do know is that when I use DPP to convert or look at the JPG converted in the camera I have 4000x3000pixles. That is unsurprisingly the same values of the internally produced jpg image.

When I instead convert using RawTherapee I get an image that is 4064x3037 pixels. So DPP trimmed an extra 64 pixels horizontally and 37 pixels vertically compared to RawTherapee. How many did RawTherapee trim to get their not quite 4x3 image? I don't know. I'm sure a lot of thrashing around the Internet would give an image display program that would answer that question since I remember being able to display an unconverted raw image with some transformation of color intensities using some application long ago. I don't plan to search that out because it isn't the real answer to your question.

The real question, I think, is how to transform image size in pixel dimensions to real sizes of the original object. Taking a photo of a calibration target is the only realistic way--calculating from sensor sizes is fraught with errors. Of course there is the magnification of the lens involved--the distance to the object and more. Given the same object distance, same focal length and precise focus you should be able to compare a target with your object. Without all those I think you're spinning wheels.

Don
 
sueanne wrote: "I just want to take the picture……."

Good point, sueanne

Brian wrote: "… but did you say in what way it matters."

I guess it doesn't matter photographically but, to me, it's a matter of curiosity why the camera does not work quite the way I think it should. Also, Bob Atkins' description of the stated focal lengths of SLR telephoto lenses is bothersome:

"As you can see, it doesn't much matter who made the lens or what the maximum focal length was, in every case the measured maximum focal length is less than the marked maximum focal length, and the average difference is about 5%. The difference is always on the short side. I didn't find any examples where the actual focal length of a telephoto was longer than marked!"
-Bob Atkins, discussing the focal lengths of SLR lenses

If Bob Atkins is correct, there appears to be a deliberate policy on the part of manufacturers to overstate focal lengths. I have been trusting Canon that the full zoom of my camera is 150.5 mm as specified. Now I don't know whether it is or not. It may only be 143 mm.

When people are told that their SX50 has a maximum equivalent focal length of 1200 mm, does that mean it is only 1140 mm but that's OK because it's still equivalent because the 1200 mm SLR lens is also only 1140 mm? Or is Bob Atkins wrong and is there something wrong with my measurements and calculations too?

It is also a challenge. Here is a black box. The size of the parts inside it are deliberately kept secret. All kinds of information and misinformation is available and we don't know what is true. Is it possible to deduce what is inside just from what the black box reveals to us? Aren't you tempted to take the lens off your PowerShot camera and to remove the sensor so that you can make measurements on them? (I will probably do that if my SX30 quits working.)

That is my rant for the day.
 
sueanne wrote: "I just want to take the picture……."

Good point, sueanne

Brian wrote: "… but did you say in what way it matters."

I guess it doesn't matter photographically but, to me, it's a matter of curiosity why the camera does not work quite the way I think it should. Also, Bob Atkins' description of the stated focal lengths of SLR telephoto lenses is bothersome:
I do have quite a bit of curiousity myself, but have never pondered this question, I will be interested to see if you get to the bottom of it.

"As you can see, it doesn't much matter who made the lens or what the maximum focal length was, in every case the measured maximum focal length is less than the marked maximum focal length, and the average difference is about 5%. The difference is always on the short side. I didn't find any examples where the actual focal length of a telephoto was longer than marked!"
-Bob Atkins, discussing the focal lengths of SLR lenses
http://www.bobatkins.com/photography/technical/focus_breathing_focal_length_changes.html

If Bob Atkins is correct, there appears to be a deliberate policy on the part of manufacturers to overstate focal lengths. I have been trusting Canon that the full zoom of my camera is 150.5 mm as specified. Now I don't know whether it is or not. It may only be 143 mm.
I don't understand the reason at this time.

When people are told that their SX50 has a maximum equivalent focal length of 1200 mm, does that mean it is only 1140 mm but that's OK because it's still equivalent because the 1200 mm SLR lens is also only 1140 mm? Or is Bob Atkins wrong and is there something wrong with my measurements and calculations too?
I must admit that I thought the given focal length was always rounded so as to give a good marketing number. When I bought my IXUS it was stated at 24-240, spot on even nice rounded figures, that sold it to me, I wouldn't want it to be 24.5 it would do my sense of aesthetics in.


It is also a challenge. Here is a black box. The size of the parts inside it are deliberately kept secret. All kinds of information and misinformation is available and we don't know what is true. Is it possible to deduce what is inside just from what the black box reveals to us? Aren't you tempted to take the lens off your PowerShot camera and to remove the sensor so that you can make measurements on them? (I will probably do that if my SX30 quits working.)
I have taken the lens out of my faulty lens error SX260 and had a look at the sensor, although I did not measure it. The thing that struck me immediately was how big it was, we are used to hearing how small the 1/2.3 sensor is, but it didn't look small at all. At the time I was more interested in getting the 260 going again, but unfortunately I was sent a second hand faulty lens from ebay, and at one time tried to combine the working parts from two different lens assemblies to make one good one, but the interwoven fine ribbon cables makes that almost impossible.
That is my rant for the day.
It can help.

Brian
 
Using your 5% Solution, are you able to summarise using just 5% of the number of words ;)
 
Thank you for your thoughtful comments, Don.

In my original post, I mentioned the possibility of cropping, which would make the frame size smaller than the maximum that would fit on a sensor. You have added a lot more detail about the processing of the image from what is collected at the photosites.

I have been dealing only with optics, sensor sizes and and image sizes.
The photo taken with the closeup lens was of an object that was 5.32 mm wide. The optics calculations show that the image of that should be 6.40 mm wide, which is too large to fit onto the normal 1/2.3" sensor, which is only 6.17 mm wide. Any cropping and all of the mechanisms that you mention only make things worse. We should not be able to see an object 5.32 mm wide, and yet we do.

There are two possible reasons that we can see all 5.32 mm of the object. One possibility is that the sensor is bigger than the normal 1/2.3" sensor. So much bigger that Canon's specified crop factor of 5.58 would have to be incorrect, regardless of which of the two definitions they are using.

Another possibility is that the optics magnify less less than the specified focal length predicts. Less magnification means that the whole image could fit onto the normal 1/2.3" sensor. If there is cropping taking place and other edge effects from demosaicing of Bayer arrays etc, that means that the image has to be even less magnified for us to see the whole object. To get less magnification , the focal lengths have to be smaller than specified.

So the possibilities are:
  1. 5% bigger sensor
  2. focal length 5% smaller than specified.
  3. Some combination of 1 and 2 that adds up to 5%. For example 2% bigger sensor and 3% smaller focal length.
You are probably right that the complicated details that you mention play a part in this, probably changing the 5% to 6% or 7%.
 
Ah, Mario, another challenge!

Here is my answer to the challenge:

Telephoto shots display 5% more field of view than what should be able to fit on a normal 1/2.3" sensor (6.17 mm x 4.55 mm). Possible explanations are:
  1. Sensor is 5% larger than normal. This is so large that the specified crop factor of 5.58 cannot be correct, regardless of which of the two definitions is used.
  2. Focal lengths are 5% smaller than specified, leading to a smaller image that can fit on a normal-size sensor. Bob Atkins says that SLR telephoto lenses have, on average, 5% smaller focal lengths than specified. Maybe the same is true of PowerShot lenses.
  3. Some combination of 1 and 2, such as 2% larger sensor, which would agree with the area-based definition of crop factor, and 3% smaller focal length.
  4. I have made multiple blunders.
 
Ah, Mario, another challenge!

Here is my answer to the challenge:

Telephoto shots display 5% more field of view than what should be able to fit on a normal 1/2.3" sensor (6.17 mm x 4.55 mm). Possible explanations are:
  1. Sensor is 5% larger than normal. This is so large that the specified crop factor of 5.58 cannot be correct, regardless of which of the two definitions is used.
  2. Focal lengths are 5% smaller than specified, leading to a smaller image that can fit on a normal-size sensor. Bob Atkins says that SLR telephoto lenses have, on average, 5% smaller focal lengths than specified. Maybe the same is true of PowerShot lenses.
  3. Some combination of 1 and 2, such as 2% larger sensor, which would agree with the area-based definition of crop factor, and 3% smaller focal length.
  4. I have made multiple blunders.
Thanks. Maybe the 5% is the total amount of optical correction in the system.
 
Ah, Mario, another challenge!

Here is my answer to the challenge:

Telephoto shots display 5% more field of view than what should be able to fit on a normal 1/2.3" sensor (6.17 mm x 4.55 mm). Possible explanations are:
  1. Sensor is 5% larger than normal. This is so large that the specified crop factor of 5.58 cannot be correct, regardless of which of the two definitions is used.
  2. Focal lengths are 5% smaller than specified, leading to a smaller image that can fit on a normal-size sensor. Bob Atkins says that SLR telephoto lenses have, on average, 5% smaller focal lengths than specified. Maybe the same is true of PowerShot lenses.
  3. Some combination of 1 and 2, such as 2% larger sensor, which would agree with the area-based definition of crop factor, and 3% smaller focal length.
  4. I have made multiple blunders.
Thanks. Maybe the 5% is the total amount of optical correction in the system.
That is probably the right answer, it is said by many that the raw image will show the uncorrected difference.

Brian
 
Maybe the 5% is the total amount of optical correction in the system.
Hello Mario,
When you say optical correction, do you mean that the original RAW image is distorted? I realize that there is a lot of distortion at the wide-angle end of the zoom, but thought that it should be negligible at the telephoto end where the full horizontal view angle is only 2.4 degrees.

So is this perhaps what is going on?: At and near maximum zoom, the focal length near the lens axis (centre of the frame) is as specified but, near the edges, the focal length and magnification are, say, 10% smaller. Once the corrections are applied to the RAW image by in-camera software, an undistorted jpeg image is produced, but with an over-all magnification that is about 5% smaller than the original at the centre.

Is that sort of what you have in mind? It sounds like a good explanation but I am surprised that there could be so much distortion at the telephoto end of the zoom. Perhaps the design at the telephoto end has been compromised in order to get a large zoom range, meaning that the distortion has been deliberately made worse at the long end in order to lessen it at shorter focal lengths.

It would be interesting to compare RAW and jpeg shots at full zoom of something with straight lines, like a faraway building. Thanks for your input.
 
Maybe the 5% is the total amount of optical correction in the system.
Perhaps the design at the telephoto end has been compromised in order to get a large zoom range, meaning that the distortion has been deliberately made worse at the long end in order to lessen it at shorter focal lengths.
Who's to say. Its plausible. I've always thought the SX40 appeared to have marginally sharper telephoto optics than the SX50..

If the SX60 is following the same path, maybe thats whats caused the delay. It would need a re-design rather than continue with the same degree of corrections - which may have been too compromised.
 
I'm pretty sure that the pixel pitch and the sensor size that Canon has speced for the camera are correct.

However, large range zooms are notorious for either overstating or understating the amount of zoom, and their focal length. As you commented, the focal length is only supposed to be the stated value at infinity, however, I have seen considerable variation between stated zoom focal lengths and prime focal lengths in actual performance, although the specs were the same.

So, I would conclude that your conclusion #2 is more likely to be the culprit than either for the other alternatives.

Just my opinion... :) But nice analysis...

--
kind regards
Dale
Moderator Canon Powershot and 7D/XXD forums
 
Last edited:
Thank you for your thoughtful comments, Don.

In my original post, I mentioned the possibility of cropping, which would make the frame size smaller than the maximum that would fit on a sensor. You have added a lot more detail about the processing of the image from what is collected at the photosites.

I have been dealing only with optics, sensor sizes and and image sizes.
The photo taken with the closeup lens was of an object that was 5.32 mm wide. The optics calculations show that the image of that should be 6.40 mm wide, which is too large to fit onto the normal 1/2.3" sensor, which is only 6.17 mm wide. Any cropping and all of the mechanisms that you mention only make things worse. We should not be able to see an object 5.32 mm wide, and yet we do.

There are two possible reasons that we can see all 5.32 mm of the object. One possibility is that the sensor is bigger than the normal 1/2.3" sensor. So much bigger that Canon's specified crop factor of 5.58 would have to be incorrect, regardless of which of the two definitions they are using.

Another possibility is that the optics magnify less less than the specified focal length predicts. Less magnification means that the whole image could fit onto the normal 1/2.3" sensor. If there is cropping taking place and other edge effects from demosaicing of Bayer arrays etc, that means that the image has to be even less magnified for us to see the whole object. To get less magnification , the focal lengths have to be smaller than specified.

So the possibilities are:
  1. 5% bigger sensor
  2. focal length 5% smaller than specified.
  3. Some combination of 1 and 2 that adds up to 5%. For example 2% bigger sensor and 3% smaller focal length.
You are probably right that the complicated details that you mention play a part in this, probably changing the 5% to 6% or 7%.
I confess to not reading your original post thoroughly or carefully. I am pretty sure I missed the point of your exercise and also confess that after going back over it I'm not a lot clearer as to the point.

I brought a career's worth of time using optical microscopes of both relatively low power and quite high power in my laboratory. That biased my assumption about the intention: to use the optical system as a mechanism for careful measurements of distance. I know of no one who does that by working out the optical gain of various steps. Instead, we used precision graticules engraved on glass slides to calibrate an eyepiece graticule at each magnification and under each experimental setting (for instance water immersion vs air).

I think that there are plently of engineering and optical reasons in your setup to explain the smallish differences you've found. Not the least of these is that the engineering of a sensor chip is not actually done in the inches world and the "Vidicon sensor notation" used for digital cameras is not the actual target size a wafer designer would take as his/her primary motivation.



Don
 
I have taken the lens out of my faulty lens error SX260 and had a look at the sensor, although I did not measure it. The thing that struck me immediately was how big it was, we are used to hearing how small the 1/2.3 sensor is, but it didn't look small at all. At the time I was more interested in getting the 260 going again, but unfortunately I was sent a second hand faulty lens from ebay, and at one time tried to combine the working parts from two different lens assemblies to make one good one, but the interwoven fine ribbon cables makes that almost impossible.
Thanks for your comments, Brian.

The description of your camera innards makes me wonder whether or not you could control the focal length and focus of a PowerShot lens once you remove it from the camera.
 
I confess to not reading your original post thoroughly or carefully. I am pretty sure I missed the point of your exercise and also confess that after going back over it I'm not a lot clearer as to the point.
Hello Don,
You are right. I haven't been very clear about the point of it all. Originally, the intention was to estimate how large a subject was in shots taken with a closeup lens. But then I got interested in the optics and found that my calculated image sizes appeared to be too large to fit on on the sensor. So the point is now: What is going on? Is the sensor larger than specified or are focal lengths smaller than specified? According to Bob Atkins, SLR telephoto lenses have actual focal lengths that are, on average, about 5% smaller than specified values. Why would manufacturers do that?

So there is no very practical point to this thread - just curiosity about what is going on inside the camera.
 

Keyboard shortcuts

Back
Top