|
SensorPixelDensity
How do I calculate pixel density, or focal length in pixels?
A common problem when calculating ranges from stereo vision is how do I know, or how can I find out the pixel density (pixels per mm) of the sensor chip or the focal length in pixels. Especially for webcams these figures are usually unknown, and inquiring with the camera manufacturer is usually a waste of time (they either don't know, or won't tell you). Below is a table of typical sensor sizes for CCD chips. Most webcams are based upon CMOS, but I assume that the sensors come in the same physical sizes. If you know the maximum resolution of the camera in pixels, and assume one of the smallest sensor sizes (smaller sensors are cheaper, but noisier), then you can figure out possible values for the number of pixels per millimetre. By observing objects at known distances you can then make a good estimate of what the sensor pixel density or focal length in pixels is (assuming that your cameras are aligned in parallel with reasonable accuracy). focal_length_pixels = distance_mm * disparity_pixels / baseline_mm; sensor_pixels_per_mm = focal_length_pixels / focal_length_mm; The other method is to disassemble the camera and physically measure the sensor. I wouldn't recommend this unless you really know what you're doing, since it could result in the camera becoming unusable.
|
Sign in to add a comment