
DIFFRACTION LIMIT CALCULATOR FREE
If you cannot change the working distance, you are somewhat limited in choosing a lens.įor your Basler camera feel free to use the Basler Lens Selector tool.Previous Section Next Section The Airy Disk If your application is sensitive to image distortion, try to increase the working distance and use a lens with a higher focal length. Note: Lenses with short focal lengths (less than 12 mm) produce images with a significant amount of distortion.


Once you choose a lens whose focal length is closest to the focal length required by your imaging system, you need to adjust the working distance to get the object under inspection in focus. Common lens focal lengths include 6 mm, 8 mm, 12.5 mm, 25 mm, and 50 mm. Lenses are manufactured with a limited number of standard focal lengths. This is not a common lens focal length so either the working distance would need to be adjusted or a non-standard lens that allows the user to vary the focal length is required. Solving the equation above for focal length will be (12.7X1016)/609.6 = 21.2mm. If exact is not necessary the diagonal will do.

In order to be exact in solving for focal length, you would need to know the aspect ratio of the sensor. Example 5 (Using Fixed working distance): My FOV is 609.6mm x 609.6mm, my sensor format is 12.7mm (diagonal) and my working distance is 1016mm.Reversing the calculation gives a required working distance of about 711.2mm (28"). If the maximum working distance available is 889mm (35"), then inverting the ratio (1:45) gives the maximum focal length of 35/45 = 19.76mm (7/9") so a focal length of 16mm will do. So, if I choose a focal length of 25mm (which is about 1") then a working distance of about 1140mm (45") is required. The ratio of working distance to focal length is 381mm/8.47mm = 45:1. Example 4 (Using Flexible working distance): My FOV is 508mm x 381mm, my sensor size is 8.47mm (diagonal).These calculations are based on the following equation: Then once a lens is selected you can recalculate the exact working distance needed. This will allow you to use a range of working distance options to get a focal length range. If the working distance is limited, then, by inverting this ratio, we get the ratio of focal length to working distance. This will allow you to use specific lens focal lengths to determine the working distance needed. Also, it is common that the working distance is flexible, so for simple calculations start out with a ratio of working distance to focal length. Generally, lenses have fixed focal lengths. The equation can be modified to solve for any other variable so long as three variables are known. A sensor resolution of 1024X768 or 1280X1024 would be more appropriate in this case. The sensor of 640X480 will be not sufficient. Following the equation, the minimum sensor resolution is 500X600. It is generally assumed that the smallest feature is round with this 2mm diameter. Example 2: My FOV is 500mmX600mm and my smallest feature is 2mm.A camera with a resolution of 640x480 will work because 200 is less than the smallest dimension which is 480. Following the equation, the needed minimum sensor resolution is 200 pixel. Example 1: My FOV is 100mm and my smallest feature is 1mm.To do the calculation for the minimum sensor resolution, multiply two (pixels/smallest feature) times the size (in real-world units) of the field of view divided by the size of the smallest feature as shown in the following equation: To make an accurate measurement on the image, you need to use a minimum of two pixels per smallest feature that you want to detect. The calculations can be done for each dimension separately but, for simplicity, this is often reduced to one dimension. This is in two dimensions for example 640X480.

The resolution of an image is the number of pixels in the image.
