Quick question:
If I take a photo of a butterfly with a prime lens (fixed focal length) and then focus on a butterfly and take a shot, is it possible to calculate the size of the butterfly based on its size within the overall frame? I don't know if the EXIF information includes enough information to achieve this, hence my question. But it would be awesome if this could be achieved! Thx!
Cheers,
- Pete
Butterfly size from a photo?
- Pete Eeles
- Administrator & Stock Contributor
- Posts: 6809
- Joined: Tue Jan 17, 2006 6:10 pm
- Location: Thatcham, Berkshire
- Contact:
Butterfly size from a photo?
Life Cycles of British & Irish Butterflies: http://www.butterflylifecycles.com
British & Irish Butterflies Rarities: http://www.butterflyrarities.com
British & Irish Butterflies Rarities: http://www.butterflyrarities.com
- Rogerdodge
- Posts: 1177
- Joined: Tue Jan 31, 2006 6:06 pm
- Location: North Devon
Re: Butterfly size from a photo?
Pete
The EXIF information does not include the focus distance. Therefore I don't think it is calculable.
However - if this question is related to your other post (Colour Calibration), then I would suggest that for each series of specimens, use manual focus and lock it off. Photograph a scale (on a colour board and grey scale also?) with the first shot and maintain that same focus distance with all future shots in that series.
If you change to larger/smaller specimens, then repeat the process.
HTH
Roger
The EXIF information does not include the focus distance. Therefore I don't think it is calculable.
However - if this question is related to your other post (Colour Calibration), then I would suggest that for each series of specimens, use manual focus and lock it off. Photograph a scale (on a colour board and grey scale also?) with the first shot and maintain that same focus distance with all future shots in that series.
If you change to larger/smaller specimens, then repeat the process.
HTH
Roger
Cheers
Roger
Roger
- Pete Eeles
- Administrator & Stock Contributor
- Posts: 6809
- Joined: Tue Jan 17, 2006 6:10 pm
- Location: Thatcham, Berkshire
- Contact:
Re: Butterfly size from a photo?
Indeed - and a real shame this information isn't included, since the camera must know what focus setting is being used!Rogerdodge wrote:The EXIF information does not include the focus distance. Therefore I don't think it is calculable.
Not really - the first question (in this thread) is to allow me to use the EXIF data, and the image itself, to calculate the size of a butterfly (assuming its wings are perpendicular to the plan of the camera).Rogerdodge wrote:If this question is related to your other post (Colour Calibration)
Definitely helps Rog - and thx!
Cheers,
- Pete
Life Cycles of British & Irish Butterflies: http://www.butterflylifecycles.com
British & Irish Butterflies Rarities: http://www.butterflyrarities.com
British & Irish Butterflies Rarities: http://www.butterflyrarities.com
- dilettante
- Posts: 564
- Joined: Sun May 01, 2011 11:03 am
- Location: Cambridge area
Re: Butterfly size from a photo?
I'm not sure the camera necessarily does know. Thinking for instance of SLR lenses, I think they just adjust focus back and forth until the AF detectors say focus has been achieved, but I'm not sure the camera or even the lens has a way of measuring or reporting where this is.Pete Eeles wrote:Indeed - and a real shame this information isn't included, since the camera must know what focus setting is being used!Rogerdodge wrote:The EXIF information does not include the focus distance. Therefore I don't think it is calculable.
--
dilettante's butterfly photos at pbase.com
dilettante's butterfly photos at pbase.com
Re: Butterfly size from a photo?
Actually several cameras do record distance information, since it is used in some of the in-built image correction functions. (for example, Nikon cameras automatically remove chromatic aberrations from most lenses). Many image processing applications do not show all the data that are available but ExifTool shows much more than most - download from http://www.sno.phy.queensu.ca/~phil/exiftool/
For Nikon, both 'D' and 'G' type lenses transmit distance information to the camera. This applies to some independent lenses as well, such as my Tamron 90mm macro, which is a 'D' type lens. I don't have experience of other makes but believe some Canon cameras also use distance information.
As an example, here's an edited extract of EXIF data from a macro shot taken with my Nikon D300s:
ExifTool Version Number : 9.33
File Name : DSC_30612.NEF
---------------edited-----------------------
Lens Type : D
Lens : 90mm f/2.8
---------------edited----------------------
Lens Data Version : 0204
Exit Pupil Position : 85.3 mm
AF Aperture : 3.3
Focus Position : 0x22
Focus Distance : 0.71 m
Lens ID Number : 50
Lens F Stops : 6.92
Min Focal Length : 89.8 mm
Max Focal Length : 89.8 mm
Max Aperture At Min Focal : 2.8
Max Aperture At Max Focal : 2.8
MCU Version : 53
Effective Max Aperture : 3.2
Raw Image Center : 2176 1434
In this example, you can see the focus distance recorded as 0.71m. I've edited out reams of additional information, which even includes how many times the shutter has been fired since the camera was new!
So, if your camera provides this information, you should be able to calculate the original image size from basic optical formulae.
Mike
For Nikon, both 'D' and 'G' type lenses transmit distance information to the camera. This applies to some independent lenses as well, such as my Tamron 90mm macro, which is a 'D' type lens. I don't have experience of other makes but believe some Canon cameras also use distance information.
As an example, here's an edited extract of EXIF data from a macro shot taken with my Nikon D300s:
ExifTool Version Number : 9.33
File Name : DSC_30612.NEF
---------------edited-----------------------
Lens Type : D
Lens : 90mm f/2.8
---------------edited----------------------
Lens Data Version : 0204
Exit Pupil Position : 85.3 mm
AF Aperture : 3.3
Focus Position : 0x22
Focus Distance : 0.71 m
Lens ID Number : 50
Lens F Stops : 6.92
Min Focal Length : 89.8 mm
Max Focal Length : 89.8 mm
Max Aperture At Min Focal : 2.8
Max Aperture At Max Focal : 2.8
MCU Version : 53
Effective Max Aperture : 3.2
Raw Image Center : 2176 1434
In this example, you can see the focus distance recorded as 0.71m. I've edited out reams of additional information, which even includes how many times the shutter has been fired since the camera was new!
So, if your camera provides this information, you should be able to calculate the original image size from basic optical formulae.
Mike
Re: Butterfly size from a photo?
My Canon 10D used to show the focus distance in the Exif info but latter models didn't include it it seems ![Sad :(](./images/smilies/icon_sad.gif)
Have to say I was sometimes a little sceptical of what the figure was sometimes though. Maybe that was just for the badly out of focus ones!![Laughing :lol:](./images/smilies/icon_lol.gif)
![Sad :(](./images/smilies/icon_sad.gif)
Have to say I was sometimes a little sceptical of what the figure was sometimes though. Maybe that was just for the badly out of focus ones!
![Laughing :lol:](./images/smilies/icon_lol.gif)
Re: Butterfly size from a photo?
I wonder if that shown focal length is the actual (which depends on the focus distance) or the infinity one. Easy to test...
- Pete Eeles
- Administrator & Stock Contributor
- Posts: 6809
- Joined: Tue Jan 17, 2006 6:10 pm
- Location: Thatcham, Berkshire
- Contact:
Re: Butterfly size from a photo?
Thx for all the replies, which have pretty much confirmed what I thought was the case, but it was good to get confirmation that this is in the "too hard" category at best!
Cheers,
- Pete
Cheers,
- Pete
Life Cycles of British & Irish Butterflies: http://www.butterflylifecycles.com
British & Irish Butterflies Rarities: http://www.butterflyrarities.com
British & Irish Butterflies Rarities: http://www.butterflyrarities.com