VHISTM

VisionX V4
NAME

vhistm − Histogram match two images

SYNOPSIS

vhistm [-H] [if=<inputfile>] [ig=<inputfile2>] [of=<outputfile>] [hf=<value>] [hg=<value>] [bl=<value>] [bh=<value>] [-b] [-z] [-n] [r=<value>] [df=<value>] [-wi] [-sh] [-v]

DESCRIPTION

Vhistm performs histogram matching on two images. The histograms are computed from the two images, and the best offset to minimize the MSE between the histograms is selected. Finally, the voxels in the first image are offset to match the voxels in the second image.

The histogram matching can be concentrated on certain voxel values by specifying the bl and bh options. The offset parameters can be outputted in TCL or Shell format.

CONSTRAINTS

Only works on short, byte, or float images. In histogram calculations, float values are truncated to integers.

OPTIONS

if=

input image 1: short, byte or float image

ig=

input image 2: short, byte or float image

of=

output image: image 1 histogram matched to image 2

hf=

output: histogram of image 1

hg=

output: histogram of image 2

bl=

histogram lower bounds (default=-1024)

bh=

histogram upper bounds (default=1024)

-b

count pixels outside of histogram bounds

-z

ignore zero

-n

do not normalize histograms

r=

range to search (default=1000) for best match

df=

output search graph for debugging

-wi

tcl output

-sh

shell output

-v

verbose mode

AUTHOR

A. B. Chan