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-is-within-valid-intrinsics-region - Reports which input points lie within the valid-intrinsics

Author

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

Description

       mrcal camera models may have an estimate of the region of the imager where the intrinsics are trustworthy
       (originally computed with a low-enough error and uncertainty). When using a model, we may want to process
       points that fall outside of this region differently from points that fall within this region.  This tool
       augments an incoming vnlog with a new column, indicating whether each point does or does not fall within
       the region.

       The input data comes in on standard input, and the output data is written to standard output. Both are
       vnlog data: a human-readable table of ascii text. The names of the x and y columns in the input are given
       in the required --cols-xy argument. The output contains all the columns from the input, with an extra
       column appended at the end, containing the results. The name of this column can be specified with
       --col-output, but this can be omitted if the default 'is-within-valid-intrinsics-region' is acceptable.

Name

       mrcal-is-within-valid-intrinsics-region - Reports which input points lie within the valid-intrinsics
       region

Options

POSITIONALARGUMENTS
         model                 Camera model

   OPTIONALARGUMENTS
         -h, --help            show this help message and exit
         --cols-xy COLS_XY COLS_XY
                               The names of the columns in the input containing the x
                               and y pixel coordinates respectively. This is required
         --col-output COL_OUTPUT
                               The name of the column to append in the output. This
                               is optional; a reasonable default will be used if
                               omitted

Repository

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

Synopsis

         $ < points-in.vnl
           mrcal-is-within-valid-intrinsics-region --cols-xy x y
             camera.cameramodel
           > points-annotated.vnl

See Also