Experiment with Different Intrinsics Models
# Run an initial calibration [slower]
metrical init -m *cam*:opencv_radtan $INIT_PLEX
metrical calibrate -o $OPENCV_RES $DATA $INIT_PLEX $OBJ
# Modify our init plex to use EUCM for all cameras, and recalibrate [fast]
metrical init -y -m *cam*:eucm $INIT_PLEX
metrical calibrate -o $EUCM_RES $DATA $INIT_PLEX $OBJ
# The same operation, except we create a new init plex from the first one [fast]
metrical init -m *cam*:eucm -p $INIT_PLEX $SECOND_INIT_PLEX
metrical calibrate -o $EUCM_RES $DATA $SECOND_INIT_PLEX $OBJ
This workflow demonstrates how effortless it can be to play around with models using the same dataset. Note that the second and third runs of the Init command will result in the same plex, but in two different ways:
- The second run tells MetriCal to overwrite (
-y
) the plex at$INIT_PLEX
. MetriCal will use this$INIT_PLEX
as a seed plex for the operation. It will modify the file in place. - The third run explicitly tells MetriCal to use
$INIT_PLEX
as a seed. It will output the resulting init plex to$SECOND_INIT_PLEX
.
Since the Calibrate command caches detections between runs, the second and third runs of this data will process much faster than the first. This all results in a pain-free way to rapidly test several different models for your components.