Lines Matching refs:range_info
437 static void GenerateCLAHELut(const RangeInfo *range_info, in GenerateCLAHELut() argument
449 delta=(unsigned short) ((range_info->max-range_info->min)/number_bins+1); in GenerateCLAHELut()
450 for (i=(ssize_t) range_info->min; i <= (ssize_t) range_info->max; i++) in GenerateCLAHELut()
451 lut[i]=(unsigned short) ((i-range_info->min)/delta); in GenerateCLAHELut()
454 static void MapCLAHEHistogram(const RangeInfo *range_info, in MapCLAHEHistogram() argument
467 scale=(double) (range_info->max-range_info->min)/number_pixels; in MapCLAHEHistogram()
472 histogram[i]=(size_t) (range_info->min+scale*sum); in MapCLAHEHistogram()
473 if (histogram[i] > range_info->max) in MapCLAHEHistogram()
474 histogram[i]=range_info->max; in MapCLAHEHistogram()
479 const RectangleInfo *tile_info,const RangeInfo *range_info, in CLAHE() argument
520 GenerateCLAHELut(range_info,number_bins,lut); in CLAHE()
535 MapCLAHEHistogram(range_info,number_bins,tile_info->width* in CLAHE()
639 range_info; in CLAHEImage() local
661 range_info.min=0; in CLAHEImage()
662 range_info.max=NumberCLAHEGrays-1; in CLAHEImage()
733 status=CLAHE(&clahe_info,&tile_info,&range_info,number_bins == 0 ? in CLAHEImage()