logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mrcal-reproject-points - Reprojects pixel observations from one model to another

Author

       Dima Kogan, "<dima@secretsauce.net>"

Description

       This tool takes a set of pixel observations of points captured by one camera model, and transforms them
       into observations of the same points captured by another model. This is similar to mrcal-reproject-image,
       but acts on discrete points, rather than on whole images. The two sets of intrinsics are always used.
       The translation component of the extrinsics is always ignored; the rotation is ignored as well if
       --intrinsics-only.

       This allows one to combine multiple image-processing techniques that expect different projections. For
       instance, planes projected using a pinhole projection have some nice properties, and we can use those
       after running this tool.

       The input data comes in on standard input, and the output data is written to standard output. Both are
       vnlog data: human-readable text with 2 columns: x and y pixel coords. Comments are allowed, and start
       with the '#' character.

Name

       mrcal-reproject-points - Reprojects pixel observations from one model to another

Options

POSITIONALARGUMENTS
         model-from         Camera model for the input points.
         model-to           Camera model for the output points.

   OPTIONALARGUMENTS
         -h, --help         show this help message and exit
         --intrinsics-only  By default, the relative camera rotation is used in the
                            transformation. If we want to use the intrinsics ONLY,
                            pass --intrinsics-only. Note that relative translation is
                            ALWAYS ignored

Repository

       <https://www.github.com/dkogan/mrcal>

Synopsis

         $ < points-in.vnl
           mrcal-reproject-points
             from.cameramodel to.cameramodel
           > points-out.vnl

See Also