|
SOLUTIONS
|
Mathematica
>
Data Manipulation
>
Image Processing & Analysis
>
Color Processing
>
HistogramTransformInterpolation
BUILT-IN MATHEMATICA SYMBOL
HistogramTransformInterpolation
HistogramTransformInterpolation[{x1, x2, ...}]
finds a function
so that the transformed values
are distributed nearly uniformly.
HistogramTransformInterpolation[{x1, x2, ...}, dist]
finds
so that
are distributed with distribution dist.
HistogramTransformInterpolation[image, ...]
finds a function that reshapes the histogram of image.
DetailsDetails
- HistogramTransformInterpolation[data, dist] finds a function that interpolates between the quantiles of data and dist.
- HistogramTransformInterpolation gives results in terms of InterpolatingFunction objects.
- HistogramTransformInterpolation[{data1, data2, ...}, ...] gives a list of functions that correspond to each dataset.
- HistogramTransformInterpolation[{data1, data2, ..., datan}, ref] finds a function so that the transformed datasets would have nearly the same distribution as a reference dataset or image ref. If ref is an image it should have either 1 or n channels.
- HistogramTransformInterpolation[data] is equivalent to HistogramTransformInterpolation[data, UniformDistribution[{0, 1}]].
- HistogramTransformInterpolation[source, ref, n] finds an interpolating function with n equally spaced quantiles.
- HistogramTransformInterpolation[image, ref] is equivalent to HistogramTransformInterpolation[image, ref, 256].
- With HistogramTransformInterpolation[data, ref, Automatic], the number of quantiles is the same as the number of bins used in Histogram[data].
ExamplesExamplesopen allclose all
Basic Examples (3)Basic Examples (3)
Find a function that distributes samples in a given dataset uniformly:
| In[1]:= |
| Out[1]= |
| In[2]:= |
| Out[2]= | ![]() |
Reshape the histogram of a dataset to match the PDF of a normal distribution:
| In[1]:= |
| Out[1]= | ![]() |
| In[2]:= |
| Out[2]= |
| In[3]:= |
| Out[3]= | ![]() |
Find a function that equalizes the histogram of an image:
| In[1]:= |
| Out[1]= |
| In[2]:= |
| Out[2]= | ![]() |
New in 9
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »





