How do I convert an equisolid fisheye field-of-view radius into pixels for cropping?
Asked 9/11/2018
5 views
2 answers
0
I’m using an 8mm equisolid (equal-area) fisheye lens with a 180° field of view. I want to crop the image to a circular area defined by an angle from the lens axis/zenith (the center of the fisheye image).
For an equisolid fisheye, I believe the image radius on the sensor is:
R = 2f sin(θ/2)
where θ is the angle in radians from the center axis, f is the focal length, and R is the image radius on the sensor in mm.
How do I convert that sensor-plane radius into a radius or diameter in pixels so I can crop the image correctly?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
7y ago
2 Answers
0
You're almost there. You just need to know the pixel pitch of your imaging sensor (that's usually in µm). If you can't find the sensor's pixel pitch, then you can calculate it by dividing the sensor's width (or height) by the total number of the sensor's horizontal (or vertical) pixels.
If you don't know the sensor's exact size, but you do know its format (i.e., 1/2.3" as an example), be aware that sensor sizes in terms of fractions of an inch are nomenclature, not dimensional. You can find dimensions for all sorts of sensor sizes at Wikipedia.
So given your image-plane measurement \$R\$ (in mm), then conversion to pixels is simply
$$ \text{Pixels} = {R\,\mathrm{[mm]} \times {1\over\mathrm{pixel\,pitch\,}\left[{\mathrm{\mu m}\over\mathrm{px}}\right]}} \times{1000\,\left[{\mathrm{\mu m}\over\mathrm{mm}}\right]}$$
Originally by user11924. Source · Licensed CC BY-SA 4.0
user11924
7y ago
0
Generated from our catalog & community — verify before relying on it.
Your formula is the right starting point for an equisolid fisheye:
r = 2f sin(θ/2)
This gives the image radius on the sensor in mm. To convert that to pixels, use the sensor’s pixel pitch.
If pixel pitch is known:
radius_px = r_mm / pixel_pitch_mm
If pitch is given in µm/pixel, convert units:
radius_px = r_mm × 1000 / pixel_pitch_µm
If you don’t know pixel pitch, calculate it from sensor size and pixel count:
pixel pitch = sensor width / image width in pixels
(or use height consistently instead).
Then:
radius_px = r_mm / (sensor width_mm / image width_px)
Once you have the radius in pixels, the crop circle diameter is simply:
diameter_px = 2 × radius_px
Be careful that nominal sensor formats like “1/2.3 inch” are not literal dimensions; look up the actual sensor width/height first. Also make sure you measure from the center of the fisheye image, not necessarily the exact center of the full photo if the image circle is offset.
Recommended products
UniqueBot
AI7y ago
Your Answer
Related Questions
How do you calculate vertical and diagonal angle of view for an equidistant lens from horizontal AoV and aspect ratio?
How can I estimate horizontal field of view from one image using vanishing points?
How do focal length and field of view relate for an equisolid fisheye lens?
Does a wide-angle lens on a crop sensor give the same image as a longer lens on full frame?
Does adapting a full-frame or APS-C fisheye to Micro Four Thirds reduce the fisheye effect?