I have a thorlabs DCC1545M camera. https://www.thorlabs.com/newgrouppage9.cfm?objectgroup_id=4024&pn=DCC1545M
e.g. it has a 1/2 inch format, a sensor size of 6.66mm*5.32mm, with 1280*1024 resolution.
I want a close up of the human eye when the eye is between 80cm and 120cm from the camera. I want the pupil in the eye image to have a minimum diameter of 25 pixels when the real-world pupil diameter is 3mm. I used the pin-hole camera model to estimate that at 120cm distance, I would need a lens with focal length of 52mm.
However, I use the following depth of field calculator: http://www.dofmaster.com/dofjs.html
when I set focal length to 52 and subject distance to 100cm, I need to select an f-stop of 32 to get the approximate depth of field I wanted: it gives 37.1cm depth of field.
when i look for lenses with focal length around 50mm, they usually have much lower f-stop numbers which would give a very small depth of field...
am i on the right track so should look for a 52mm lens with f32 or am i missing something important.
I am a computer programmer and have little experience with lenses. Any pointers would be welcome....
I have a thorlabs DCC1545M camera. https://www.thorlabs.com/newgrouppage9.cfm?objectgroup_id=4024&pn=DCC1545M
e.g. it has a 1/2 inch format, a sensor size of 6.66mm*5.32mm, with 1280*1024 resolution.
I want a close up of the human eye when the eye is between 80cm and 120cm from the camera. I want the pupil in the eye image to have a minimum diameter of 25 pixels when the real-world pupil diameter is 3mm. I used the pin-hole camera model to estimate that at 120cm distance, I would need a lens with focal length of 52mm.
However, I use the following depth of field calculator: http://www.dofmaster.com/dofjs.html
when I set focal length to 52 and subject distance to 100cm, I need to select an f-stop of 32 to get the approximate depth of field I wanted: it gives 37.1cm depth of field.
when i look for lenses with focal length around 50mm, they usually have much lower f-stop numbers which would give a very small depth of field...
am i on the right track so should look for a 52mm lens with f32 or am i missing something important.
I am a computer programmer and have little experience with lenses. Any pointers would be welcome....
EDIT
Thank you for your responses. I am working my way through the content.
I want to use a fixed focal length lens. In fact, I would like the aperture size and focus to be fixed (the camera is used by software to capture images and I don't want to manually change camera/lens properties). The idea is to ensure the pupil (3mm in diameter) is 25 pixels or more and is in-focus (sharp) as the pupil moves between 80cm and 120cm along the camera's line of sight.
I calculated the required focal length for a 25 pixel pupil at 120cm distance. This would mean that as the head moved forward the pupil would be greater than 25 pixels.
With a depth of field of 40cm (e.g. 80cm to 120cm pupil movement), I seem to need a large f-stop value. Actually, the need for illumination and long exposure times is problematic for me.
I envisaged using a manual focus lens. However, I would not want to change the focus on the lens while taking the images e.g. as the head moves. So what I am really looking for is a lens with fixed focal length, fixed aperture and fixed focus. However, I am confused now as to the relationship between f-stop and focus for a fixed focal length lens. Suppose the lens is 52mm (provided I calculated it correctly), if I want a sharp image of the pupil as it moves between 80cm and 120cm then can this be done with fixed focus and what is the impact of f-stop?
I am sorry if I seem confused.
I would just like to run my focal length calculations by you. If the focal length of the lens is F then we can define:
f_x=(F*HORIZONTAL_PIXELS)/(SENSOR_WIDTH )
If we substitute the properties of the Thorlabs DCC1545M camera we get
f_x=(F*1280 )/6.66
now if pixel coordinates are (u,v)
u=(f_x*x)/z
suppose that we locate two points on the left and right of the pupil in the camera image where u1,v1 is the leftmost pupil pixel coordinate and u2,v2 is the rightmost pupil pixel coordinate
∆u=u_2-u_1
∆u=(f_xx_2)/z-(f_xx_1)/z
∆u=(1280*F*∆x)/(6.66*z)
We can rearrange as follows,
F=(∆u*6.66*z)/(1280*∆x)
Now as ∆u = 25 pixels and ∆x = 3mm
F = 52.03125mm