I can now present a small update.
I was able to perform a bundle block adjustment and I also get values.
On the following pictures are six markers and the solution of the sparse bundle block adjustment.
However, you can see that the points do not lie perfectly on a straight line but drift partially.
According to the adjustment a good result could be generated as the console outputs:
Steps fx change |step| f-test g-test tr-ratio lambda
0 3,844E+08 0,000E+00 0,000E+00 0,000E+00 0,000E+00 0,00 1,00E-03
1 4,031E+07 -3,441E+08 1,384E+04 8,951E-01 4,442E+03 1,236 3,33E-04
...
34 3.631E-02 -3.067E-08 1.782E+05 8.448E-07 1.324E-03 -0.000 3.43E+05
Converged f-test
Error reduced by 1058759787023,6%I thus assume two sources of error:
Error source A: Incorrect input of the approximate values of the camera parameters. Here I am not sure how the focal length and the radial parameters are handled. This is how I export my proximity camera values for the import file:
Error source B:Bad approximation data, which are imported into the adjustment. Otherwise, the adjustment would not improve the parameters so immensely in percent. I generated the approximate data as you described. I take out an Aruco and look for all the pictures on which it was visible. Then I create a small local system with the corners of the aruco as coordinates as you described. With FactoryMultiView.pnp_1(EnumPNP.EPNP, -1, 1) I then calculate the positions of the images where the picked out marker can be seen. With these localized images, I set out to find more markers, whose positions I then obtain using triangulation. The newly obtained marker positions allow me to orient more camera images. Through several loop passes, I thus obtain a network of 3D markers and as many oriented images as possible. This may not be the nicest and most stable solution, but after a lot of work it gives me approximate values that I can use.
![Appro.png](https://groups.google.com/group/boofcv/attach/1831712375664/Appro.png?part=0.4&view=1)
You can see on this view that the approximate values of the markers look quite good. However, all camera positions are quite central over the markers, although (as seen above) I also captured very flat images from the side with a small vertical angle. Are the camera positions correct? If not, why do I get such good marker coordinates after triangulation? Here the result and the visualization contradict each other.
![CameraToAruco.png](https://groups.google.com/group/boofcv/attach/1831712375664/CameraToAruco.png?part=0.1&view=1)
I picked out the image from above again and did a single test with this shot. You can clearly see that even though the angle of capture is very flat to the markers, it is still displayed very centrally above the marker in the 3D visualization. I use a calibrated SLR and normalized coordinates from it. As coordinates of the marker I used its real edge length (64mm). Unfortunately, I can't think of any other sources of error for this effect.
As you have already written this has now required a lot of time and work, so I would be very happy to solve this problems. I am very grateful for every little tip! I have tried to visualize the problems as clearly as possible, but if something is still unclear, I will gladly provide more information.
I would like to thank you again for the support and greet the entire community!
Best regards
Ce