Unexpected undistortion export

Hello!

During image alignment, I came across a strange export of undistorted images. The image is cropped very much after export undistort with the inner boundary option. I don’t think this is a feature, especially, since everything works fine on other cameras. Or maybe there is a way to avoid this mistake? 

Thanks.

For example:(i used a locked parameters on digital image, but it also works)

Origin image:

Inner boundary:

Keep intrinsitic

Xmp calibration: 

<x:xmpmeta xmlns:x="adobe:ns:meta/">
  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <rdf:Description xcr:Version="3" xcr:PosePrior="locked" xcr:Coordinates="absolute"
     xcr:DistortionModel="brown3t2" xcr:FocalLength35mm="74.12423512"
     xcr:Skew="0" xcr:AspectRatio="1" xcr:PrincipalPointU="0.12001431"
     xcr:PrincipalPointV="-0.4143245" xcr:CalibrationPrior="exact"
       xcr:CalibrationGroup="-1" xcr:DistortionGroup="-1" xcr:InTexturing="1"
       xcr:InMeshing="1" xmlns:xcr="http://www.capturingreality.com/ns/xcr/1.1#">
      <xcr:Rotation>0.879068234419714 -0.476695398320043 -0.000732430681477825 -0.207914778931565 -0.382029604465239 -0.900458120077759 0.428964432017441 0.791716412948872 -0.434942108252725</xcr:Rotation>
      <xcr:Position>-10.9941110949841 -20.821508411441 11.7571270313623</xcr:Position>
    <xcr:DistortionCoeficients>-0.4500987 3.0516645 100.785 0 0 0</xcr:DistortionCoeficients>
    </rdf:Description>
  </rdf:RDF>
</x:xmpmeta>

Hi UnknownTiredMan, inner boundary could be just  a small part of the image, as you can see in next explanation:

The process of creating undistorted images for export is as follows:

  1. In the first step, the application checks the Image cut-out option. With this parameter, you define which fraction of the image is considered for the undistortion.
  • 1.0 means full image
  • 0.5 means 50% of the image
  • 0 means nothing is visible

NOTE: For fish-eye lenses, we recommend using factor 0.8.

 
2. The Fit parameter, which defines the section of the undistorted image considered for output, is applied. You can choose among several options so that the image coverage is reasonable.

  • Outer boundary, Inner region and In between See the scheme below.
  • Keep intrinsics preserves the camera calibration parameters.


3. In this step the Resolution parameter, which specifies the resolution of the image from the step 2, is applied.

  • Fit keeps the resolution of the image created in the previous step.
  • Preserve The resolution of the undistorted image is the same as the resolution of the original image.
  • Custom You can define an arbitrary resolution.

NOTE: This might not be the final resolution of the exported image. The final resolution is dependent also on the parameters Downscale and Max count of pixels (see the next steps).
4. You can control the final resolution of the exported image by the Downscale factor. Factor 1 means that the resolution calculated in the previous step is used. Otherwise, you can enter a custom number (integer) by which each side of the image is downscaled.
5. In the final step, the parameter Max count of pixels is applied. Use 0 for no limit. In such case the resolution calculated in the previous steps is the final resolution of the exported image.
Alternatively, you can define the maximal resolution of the image in pixels. In such case, the aspect ratio of the image size calculated in the previous steps is preserved but the image is resampled in order to fit the desired number of pixels.
6. Using the parameter Undistort principal point, you can control the position of the center of the undistorted image. Use 1 to shift the optical center of the image into the actual center of the exported image. Use 0 for no shift (see the image below).

|

Undistort principal point = 0

 
|

Undistort principal point = 1

 
|

I think it is not possible to export cameras when they aren’t aligned. There is no its position in space, so it could be difficult.

Hi thanks for you answer. Sorry but your answer did’nt explain the result, i’ve got. 

I used next properties.

Well, according yours explanation. I should get a full undistortion image with the same resolution, without any downscaling coefficients. Result image should be only without black borders.

Something like this.

But i got this. So there is an error somewhere. In your explanation or program.

Hi, is it possible to share your data and exact repro steps?