%
*/
-typedef struct _IntervalInfo
+typedef struct _RangeInfo
{
unsigned short
min,
max;
-} IntervalInfo;
+} RangeInfo;
static void ClipCLAHEHistogram(const double clip_limit,const size_t number_bins,
size_t *histogram)
}
}
-static void GenerateCLAHELut(const IntervalInfo *range_info,
+static void GenerateCLAHELut(const RangeInfo *range_info,
const size_t number_bins,unsigned short *lut)
{
ssize_t
lut[i]=(unsigned short) ((i-range_info->min)/delta);
}
-static void MapCLAHEHistogram(const IntervalInfo *range_info,
+static void MapCLAHEHistogram(const RangeInfo *range_info,
const size_t number_bins,const size_t number_pixels,size_t *histogram)
{
double
}
static MagickBooleanType CLAHE(const RectangleInfo *clahe_info,
- const IntervalInfo *range_info,const size_t number_bins,
+ const RangeInfo *range_info,const size_t number_bins,
const double clip_limit,unsigned short *pixels)
{
MemoryInfo
ColorspaceType
colorspace;
- IntervalInfo
+ RangeInfo
range_info;
MagickBooleanType