match-histogram

Synopsis

match-histogram <target> <source> <output> [options]

Description

Matches the intensity distribution of the source image to match the distribution of the target image using a piecewise linear function [1].

[1] Nyul, Udupa, and Zhang, "New variants of a method of MRI scale standardization",
    IEEE TMI 19(2), pp. 143-150, 2000, http://dx.doi.org/10.1109/42.836373.

Arguments

target

Reference image.

source

Input image whose histogram should match the reference histogram.

output

Output image with histogram matching the reference histogram.

Command options

-Tp <value>
Target padding value. (default: NaN)
-Sp <value>
Source padding value. (default: NaN)
-dtype short|int|float|double
Data type of output image. (default: input data type)

Standard options

-v, -verbose [n]

Increase/Set verbosity of output messages. (default: 0)

-debug [level]

Increase/Set debug level for output of intermediate results. (default: 0)

-version [major.minor]

Print version and exit or set version to emulate.

-revision

Print revision (or version) number only and exit.

-h, -help

Print help and exit.

Terminal options

-color, -nocolor

Enable/disable colored output. (default: off)

Parallelization options

-threads <n>

Use maximal <n> threads for parallel execution. (default: automatic)