# Using Fisheye lens clipped onto mobile phone camera for terrestrial mapping

**URL:** <https://community.pix4d.com/t/using-fisheye-lens-clipped-onto-mobile-phone-camera-for-terrestrial-mapping/4724>\
**Category:** PIX4Dmapper Questions/Troubleshooting\
**Created:** [October 6, 2015, 11:30am UTC](https://community.pix4d.com/t/using-fisheye-lens-clipped-onto-mobile-phone-camera-for-terrestrial-mapping/4724 "2015-10-06T11:30:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bernard\_Travers](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@Bernard\_Travers](https://community.pix4d.com/u/Bernard_Travers)\
**Post date:** [October 6, 2015, 11:30am UTC](https://community.pix4d.com/t/using-fisheye-lens-clipped-onto-mobile-phone-camera-for-terrestrial-mapping/4724/1 "2015-10-06T11:30:56Z")

</div>

I am experimenting with using Pix4D for indoor mapping (capturing rooms) using a mobile phone camera and have had good results so far.

To capture a wider field of view I have bought a clip-on fish eye lens, which seems to capture reasonable quality images. &nbsp;However, I do not seem to be able to get Pix4D to process them, and always get a camera calibration error. &nbsp;I suspect I need to manually edit the camera model, but I do not know what settings to change.

I have created a new camera model type, changed the lens type to fisheye and set the Affine transformation C and F to the image width.

The images are currently rectangular from the phone, though the captured image is a circle: is this contributing to the problem?

---

<div class="post-metadata">

**Author:** ![Christina](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/christina/32/303_2.png) [@Christina](https://community.pix4d.com/u/Christina)\
**Post date:** [October 22, 2015, 7:11am UTC](https://community.pix4d.com/t/using-fisheye-lens-clipped-onto-mobile-phone-camera-for-terrestrial-mapping/4724/2 "2015-10-22T07:11:40Z")

</div>

Hi Bernard,

&nbsp;

What do you mean by ¨The images are currently rectangular from the phone, though the captured image is a circle¨. Does this mean that your mobile phone automatically corrects the distortions of the images? This is something that you should avoid. You should import the distorted images into Pix4Dmapper.

&nbsp;

To calibrate a fisheye camera:

&nbsp;

1. Open the _Image Properties Editor_ and click Edit on the _Select Camera Model_ tab.&nbsp;
2. Click Edit on the _Camera Model_ tab.&nbsp;
3. Select _Fish Eye Lens_ and input these values:

- _Sensor Width [mm]_: The sensor width in millimeters.
- _Sensor Height [mm]_: The sensor height in millimeters.
- _Polynomial coefficients_: 0, 1, 0, 0, 0
- _Affine transformation C_ = image width in pixels
- _Affine transformation D_ = 0
- _Affine transformation E_ = 0
- _Affine transformation F_ = image width in pixel

1. Run Step 1.
2. Check the reconstruction of the model by assessing the Quality Report and by selecting automatic tie points around the model and checking the reprojection on the input&nbsp;images in the rayCloud.
3. If the reconstruction is not good enough, then add Manual Tie Points in the areas that are not well reconstructed and Reoptimize:&nbsp;[https://support.pix4d.com/hc/en-us/articles/202560349](https://support.pix4d.com/hc/en-us/articles/202560349-How-to-Add-Import-and-Mark-Manual-Tie-Points-with-the-rayCloud)
4. Regenerate the Quality Report and repeat Steps 5 and 6 until the reconstruction is satisfying.
5. When the reconstruction is good:

&nbsp; &nbsp; 1. Open the Image Properties Editor and click Edit on the Select Camera Model tab.&nbsp;  
&nbsp; &nbsp; 2. Click Edit on the Camera Model tab.&nbsp;  
&nbsp; &nbsp; 3. Click Load Optimized Parameters, then OK and Yes.&nbsp;  
&nbsp; &nbsp; 4. Remove the Manual Tie Points.  
&nbsp; &nbsp; 5. Re process Step 1.

The reconstruction should be good and the camera parameters can be used as initial values for other projects.  
9. If the reconstruction is not good, then repeat steps 6-8.

&nbsp;

Let us know if you need further help.

Best regards,

---

<div class="post-metadata">

**Author:** ![Daniel\_Rico\_Cordero](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/daniel_rico_cordero/32/187_2.png) [@Daniel\_Rico\_Cordero](https://community.pix4d.com/u/Daniel_Rico_Cordero)\
**Post date:** [February 7, 2019, 3:34pm UTC](https://community.pix4d.com/t/using-fisheye-lens-clipped-onto-mobile-phone-camera-for-terrestrial-mapping/4724/4 "2019-02-07T15:34:42Z")

</div>

Hello Tony,

I do not understand exactly. Are you importing the Nikon images into Pix4D or the stitched images?

Would it be possible to get some images from your Nikkon camera?

Thank you very much.

---

<div class="post-metadata">

**Author:** ![Daniel\_Rico\_Cordero](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/daniel_rico_cordero/32/187_2.png) [@Daniel\_Rico\_Cordero](https://community.pix4d.com/u/Daniel_Rico_Cordero)\
**Post date:** [February 15, 2019, 8:27am UTC](https://community.pix4d.com/t/using-fisheye-lens-clipped-onto-mobile-phone-camera-for-terrestrial-mapping/4724/6 "2019-02-15T08:27:53Z")

</div>

Hello again,

As you say, I do not think the stitched images will be accepted. I would use the original ones as fisheye. There is one Nikon fisheye camera in our database but I am not sure it is yours.

Regards.

&nbsp;

&nbsp;
