Lines Matching refs:clahe_info
379 static void GenerateCLAHEHistogram(const RectangleInfo *clahe_info, in GenerateCLAHEHistogram() argument
403 q+=clahe_info->width; in GenerateCLAHEHistogram()
408 static void InterpolateCLAHE(const RectangleInfo *clahe_info,const size_t *Q12, in InterpolateCLAHE() argument
434 pixels+=(clahe_info->width-tile->width); in InterpolateCLAHE()
479 static MagickBooleanType CLAHE(const RectangleInfo *clahe_info, in CLAHE() argument
504 tile_cache=AcquireVirtualMemory((size_t) clahe_info->x*number_bins, in CLAHE()
505 clahe_info->y*sizeof(*tiles)); in CLAHE()
523 for (y=0; y < (ssize_t) clahe_info->y; y++) in CLAHE()
528 for (x=0; x < (ssize_t) clahe_info->x; x++) in CLAHE()
533 histogram=tiles+(number_bins*(y*clahe_info->x+x)); in CLAHE()
534 GenerateCLAHEHistogram(clahe_info,tile_info,number_bins,lut,p,histogram); in CLAHE()
540 p+=clahe_info->width*(tile_info->height-1); in CLAHE()
546 for (y=0; y <= (ssize_t) clahe_info->y; y++) in CLAHE()
570 if (y == (ssize_t) clahe_info->y) in CLAHE()
576 tile.y=clahe_info->y-1; in CLAHE()
579 for (x=0; x <= (ssize_t) clahe_info->x; x++) in CLAHE()
594 if (x == (ssize_t) clahe_info->x) in CLAHE()
600 tile.x=clahe_info->x-1; in CLAHE()
603 InterpolateCLAHE(clahe_info, in CLAHE()
604 tiles+(number_bins*(tile.y*clahe_info->x+tile.x)), /* Q12 */ in CLAHE()
605 tiles+(number_bins*(tile.y*clahe_info->x+offset.x)), /* Q22 */ in CLAHE()
606 tiles+(number_bins*(offset.y*clahe_info->x+tile.x)), /* Q11 */ in CLAHE()
607 tiles+(number_bins*(offset.y*clahe_info->x+offset.x)), /* Q21 */ in CLAHE()
611 p+=clahe_info->width*(tile.height-1); in CLAHE()
643 clahe_info, in CLAHEImage() local
676 clahe_info.width=image->columns+tile_info.x; in CLAHEImage()
677 clahe_info.height=image->rows+tile_info.y; in CLAHEImage()
678 clahe_info.x=(ssize_t) clahe_info.width/tile_info.width; in CLAHEImage()
679 clahe_info.y=(ssize_t) clahe_info.height/tile_info.height; in CLAHEImage()
680 pixel_cache=AcquireVirtualMemory(clahe_info.width,clahe_info.height* in CLAHEImage()
699 for (y=0; y < (ssize_t) clahe_info.height; y++) in CLAHEImage()
710 (tile_info.y >> 1),clahe_info.width,1,exception); in CLAHEImage()
716 for (x=0; x < (ssize_t) clahe_info.width; x++) in CLAHEImage()
734 status=CLAHE(&clahe_info,&tile_info,&range_info,number_bins == 0 ? in CLAHEImage()
743 n=clahe_info.width*(tile_info.y >> 1); in CLAHEImage()
766 n+=(clahe_info.width-image->columns-(tile_info.x >> 1)); in CLAHEImage()