PentaxForums.com

Go Back PentaxForums.com > Lenses and Accessories > Everything Else > EXIF Info Question

Everything Else Use this forum to talk about Pentax-related topics not covered in other sections, or if you are unsure where else to post.

Reply
 
Thread Tools Search this Thread Display Modes
06-20-2009, 07:40 AM   #1
Loyal Member
 
Location: Minnesota USA
Gallery Photos: 11
Posts: 754
EXIF Info Question

Is there any place in a file's EXIF data where the focus distance would be stored? Not the focal length of the lens, but actual distance the lens was focused at when the photo was taken, such as 20 ft, etc.?
navcom is offline  
06-20-2009, 09:53 AM   #2
Member
 
Location: Los Angeles
Gallery Photos: 0
Posts: 51
There is a metadata field for subject distance. See below as the last entry under "image specific properties."

jimby is offline  
06-23-2009, 01:28 PM   #3
Site Supporter
 
Location: Canada eh!
Gallery Photos: 7
Posts: 526
How about the lens used?

I'm constantly taking notes of the lens I use for photos, but it's tedious and I'll admit sometimes I don't do it until a few days later and I try to go from memory - which seems to be fading...
Leaf Fan is offline  
06-23-2009, 02:58 PM   #4
Pentaxian
 
Location: Quincy, MA
Gallery Photos: 3
Posts: 1,004
Check out PhotoME. It will show you all of the EXIF fields.

I use Lightroom, and it reads the focal length from the EXIF information.

It's in the Camera tab, under Focal Length. It also shows in the Overview when you open the file.
alohadave is offline  
06-25-2009, 07:58 AM   #5
Loyal Member
 
Location: Minnesota USA
Gallery Photos: 11
Posts: 754
I use Lightroom and I also have PhotoMe. I guess my question might be a bit confusing. I'm trying to figure out if there is EXIF data recorded that tells the distance of focus... or maybe more specifically where the focus ring is set to (infinity, 12 feet, 7, feet, etc.).

I'm not sure if it's even recorded or if there is a means to record it.
navcom is offline  
06-25-2009, 03:29 PM   #6
Pentaxian
 
Location: Quincy, MA
Gallery Photos: 3
Posts: 1,004
Originally Posted by navcom View Post
I use Lightroom and I also have PhotoMe. I guess my question might be a bit confusing. I'm trying to figure out if there is EXIF data recorded that tells the distance of focus... or maybe more specifically where the focus ring is set to (infinity, 12 feet, 7, feet, etc.).

I'm not sure if it's even recorded or if there is a means to record it.
I don't think so, at least not directly.

In the Lens Info section of the Camera tab, there is a field called Distance Code Data (LC2). You might be able to figure out what the code means.
alohadave is offline  
06-25-2009, 11:07 PM   #7
Pentaxian
 
Location: Melb. Aust
Gallery Photos: 0
Posts: 487
In PhotoMe there is a field called "subject distance range" (last field of Camera section) that seems to report a couple of very broad settings (Macro, Close View, Distant view & Unknown). Seems to be appropiate based upon looking at various images but is very general. The field Dave mentions (Distance Code Data) seems to be more detailed but is not a direct measurement and needs to be interpreted.

It would be nice to see accurately what the camera decided was the focus distance.
HGMonaro is offline  
06-26-2009, 06:55 AM   #8
Pentaxian
 
Location: The Netherlands
Gallery Photos: 28
Posts: 802
Originally Posted by navcom View Post
I use Lightroom and I also have PhotoMe. I guess my question might be a bit confusing. I'm trying to figure out if there is EXIF data recorded that tells the distance of focus... or maybe more specifically where the focus ring is set to (infinity, 12 feet, 7, feet, etc.).

I'm not sure if it's even recorded or if there is a means to record it.
It can be recorded in the EXIF header, if the camera is capable of recording it.
According to the EXIF specifications, there is a field called SubjectDistance.
Here is the original text:

SubjectDistance
The distance to the subject, given in meters. Note that if the numerator of the recorded value is FFFFFFFF.H,
Infinity shall be indicated; and if the numerator is 0, Distance unknown shall be indicated.
Tag = 37382 (9206.H)
Type = RATIONAL
Count = 1
Default = none

SubjectLocation is something different, it is a vector that points to the subject relative witin the picture. See the original text:

SubjectLocation
Indicates the location of the main subject in the scene. The value of this tag represents the pixel at the center of the
main subject relative to the left edge, prior to rotation processing as per the Rotation tag. The first value indicates
the X column number and second indicates the Y row number.
Tag = 41492 (A214.H)
Type = SHORT
Count = 2
Default = none
When a camera records the main subject location, it is recommended that the SubjectArea tag be used instead of this tag.

- Bert
bymy141 is offline  
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


All times are GMT -7. The time now is 09:16 AM.