imProcessExpandHistogram

Performs an histogram expansion based on a percentage of the number of pixels. \n * Percentage is used to obtain the amount of pixels of the lowest level and the highest level, relative to the total of pixels. * The histogram is used an each level is summed while the result is less than the obtained amount from 0 (for the lowest level) and from the last level (for the highest). * If it is zero, then only empty counts of the histogram will be considered. \n * Images must be (IM_BYTE, IM_SHORT or IM_USHORT)/(IM_RGB or IM_GRAY). Can be done in-place. \n * To expand the gamut without using the histogram, by just specifying the lowest and highest levels * use the \ref IM_GAMUT_EXPAND tone gamut operation (\ref imProcessToneGamut). * * \verbatim im.ProcessExpandHistogram(src_image: imImage, dst_image: imImage, percent: number) [in Lua 5] \endverbatim * \verbatim im.ProcessExpandHistogramNew(src_image: imImage, percent: number) -> new_image: imImage [in Lua 5] \endverbatim * \ingroup histo

extern (C) @safe nothrow
void
imProcessExpandHistogram

Meta