Hi, guys!
Because I'm unable to locate the bug which causes mogrify() crash, I
decide to write a new set of functions to replace mogrify(). I've
written a function called histeq() to equalize a grayscale image, and
now I want to write some codes to handle with indexed image(color
image), but I don't know how to do that. I read Matlab's source code and
manual of histeq(), but I'm still confused. I know I should convert RGB
colormap to YIQ colormap, and equalize component Y, but I don't know
what should I do to adjust I and Q. Could you give me some tips or some URL?
|