How to use transformation T from histeq in Matlab?

67 views Asked by At

The documentation of histeq in Matlab says:

[___,T] = histeq(___) also returns the transformation T 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.

1

There are 1 answers

1
root On

The following line from histeq.m might be the solution:

builtin("_grayxformmex", new_image, T);