• Welcome to Focus on Photography Forum!
    Come join the fun, make new friends and get access to hidden forums, resources, galleries and more.
    We encourage you to sign up and join our community.

Getting magnification information from the R7 and RF 100mm macro

Archibald

Travel Guide
Joined
20 Nov 2023
Posts
1,530
Likes
10,255
Location
Ottawa
Name
Ed
Image Editing
Yes
We often want to know what the magnification was of a macro shot we have taken. The Canon R7/RF 100mm macro combination shows distance and magnification information in the viewfinder when we are shooting. But back at home on the computer, that information isn't readily available. How to get that information?

While we can't directly learn the magnification, we can look up the Focus Distance that is recorded in the EXIF data in the raw and JPG files. The Focus Distance is measured from the sensor to the focused subject. Both Upper and Lower focus distances are recorded - not sure why there is a difference. Maybe it indicates uncertainty in the measurement. The two values are usually similar. The distance information can be recovered with software like ExifTool. It is also optionally reported by Lightroom Classic under Metadata. (Irfanview reports a "Subject Distance" but it is not reliable.)

With a simple lens, it is possible to calculate the magnification using the formula m = F/(u-F), where F is the focal length and u is the lens to subject distance. That formula doesn't work with a modern lens like the RF 100 because the focal length isn't known. That's because the lens is internal-focusing and the focal length becomes shorter with increasing magnification. We also don't know the value of u because it is measured from the front principle plane whose position varies.

But an empirical approach provides answers! We can determine magnification (by photographing a ruler) and distance (also using that ruler). Remarkably, the data gives a beautiful linear relationship between the reciprocal of the magnification and the recorded focal distance.

1777385513289.png

From this, I came up with the following simple equation to calculate magnification:

m = 1 / (11.319 * FocusDistance - 2.1438)

FocusDistance is the value reported by the EXIF or Lightroom Classic.

This works for the R7 and RF 100mm macro. I haven't investigated other combos (for now).
 
We often want to know what the magnification was of a macro shot we have taken. The Canon R7/RF 100mm macro combination shows distance and magnification information in the viewfinder when we are shooting. But back at home on the computer, that information isn't readily available. How to get that information?

While we can't directly learn the magnification, we can look up the Focus Distance that is recorded in the EXIF data in the raw and JPG files. The Focus Distance is measured from the sensor to the focused subject. Both Upper and Lower focus distances are recorded - not sure why there is a difference. Maybe it indicates uncertainty in the measurement. The two values are usually similar. The distance information can be recovered with software like ExifTool. It is also optionally reported by Lightroom Classic under Metadata. (Irfanview reports a "Subject Distance" but it is not reliable.)

With a simple lens, it is possible to calculate the magnification using the formula m = F/(u-F), where F is the focal length and u is the lens to subject distance. That formula doesn't work with a modern lens like the RF 100 because the focal length isn't known. That's because the lens is internal-focusing and the focal length becomes shorter with increasing magnification. We also don't know the value of u because it is measured from the front principle plane whose position varies.

But an empirical approach provides answers! We can determine magnification (by photographing a ruler) and distance (also using that ruler). Remarkably, the data gives a beautiful linear relationship between the reciprocal of the magnification and the recorded focal distance.

View attachment 214994

From this, I came up with the following simple equation to calculate magnification:

m = 1 / (11.319 * FocusDistance - 2.1438)

FocusDistance is the value reported by the EXIF or Lightroom Classic.

This works for the R7 and RF 100mm macro. I haven't investigated other combos (for now).

Yes I have been through this route with a Matlab tool that inspects the RAW makers mark for CR2 files in a directory, I had it working for the last generation of DSLRs and MP-E, 100 mm USM and 180L, it used text calibration info for each lens to convert distance to magnification.

I have not got around to updating the calibration files for mirrorless bodies and the RF 100L. CR3 files may need a recompile and unfortunately I no longer have access to a compiler version of MATLAB. Like many things on the "to do" list!
 
Back
Top Bottom