The documentation of histeq
in Matlab says:
[___,T] = histeq(___)
also returns the transformationT
that maps the gray component of the input grayscale image or colormap to the gray component of the output grayscale image or colormap.
How do I apply this transformation T
to another image (not the image that I put into histeq
)?
The input to histeq
was a greyscale image, the output T
is a 1×256 double
vector.