<commit_before># rectilinear_undistort

Undistort photo taken by rectilinear lens.

## Description

rectilinear_undistort is command line tool that remove distortion of photograph caused by rectilinear lens characteristics.
This program is based on lensprofile_creator_cameramodel.pdf document provided by Adobe. You can find this pdf by googling.
So you can use the same parameters of lens profile (lcp) used by Camera Raw or Photoshop LR.

Before

<img src="https://" style="width: 600px;"/>

After

<img src="https://" style="width: 600px;"/>

## Features

- Remove rectilinear lens distortion.
- Lens profile parameters can be specified by arguments.

## Requirement

- OpenCV 3.0.0 or above is preferable.
- Checked with win7 32bit + msys2 + gcc

## Usage

$rectilinear_undistort.exe [params] image result

        -?, -h, --help, --usage (value:true)
                show help
        --FX, --fx (value:0.403752)
                FocalLengthX
        --FY, --fy (value:0.403752)
                FocalLengthY
        --IX, --ix (value:0.500000)
                ImageXCenter
        --IY, --iy (value:0.499867)
                ImageYCenter
        --R1, --r1 (value:-0.071356)
                RadialDistortParam1
        --R2, --r2 (value:0.022986)
                RadialDistortParam2<commit_msg>Modified links.<commit_after># rectilinear_undistort

Undistort photo taken by rectilinear lens.

## Description

rectilinear_undistort is command line tool that remove distortion of photograph caused by rectilinear lens characteristics.
This program is based on lensprofile_creator_cameramodel.pdf document provided by Adobe. You can find this pdf by googling.
So you can use the same parameters of lens profile (lcp) used by Camera Raw or Photoshop LR.

Before

<img src="rectilinear_undistort/sample.tif" style="width: 600px;"/>

After

<img src="rectilinear_undistort/result.tif" style="width: 600px;"/>

## Features

- Remove rectilinear lens distortion.
- Lens profile parameters can be specified by arguments.

## Requirement

- OpenCV 3.0.0 or above is preferable.
- Checked with win7 32bit + msys2 + gcc

## Usage

$rectilinear_undistort.exe [params] image result

        -?, -h, --help, --usage (value:true)
                show help
        --FX, --fx (value:0.403752)
                FocalLengthX
        --FY, --fy (value:0.403752)
                FocalLengthY
        --IX, --ix (value:0.500000)
                ImageXCenter
        --IY, --iy (value:0.499867)
                ImageYCenter
        --R1, --r1 (value:-0.071356)
                RadialDistortParam1
        --R2, --r2 (value:0.022986)
                RadialDistortParam2
{'fraction_non_alphanumeric': 0.09856495468277945, 'fraction_numerical': 0.04607250755287009, 'mean_word_length': 2.462745098039216, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3884942', 'n_tokens_mistral': 922, 'n_tokens_neox': 795, 'n_words': 260}