• Home
  • Raw
  • Download

Lines Matching refs:threshold

412     threshold;  in KapurThreshold()  local
477 threshold=0; in KapurThreshold()
482 threshold=(size_t) j; in KapurThreshold()
490 return(100.0*threshold/MaxIntensity); in KapurThreshold()
502 threshold; in OTSUThreshold() local
548 threshold=0; in OTSUThreshold()
559 threshold=(double) i; in OTSUThreshold()
569 return(100.0*threshold/MaxIntensity); in OTSUThreshold()
595 threshold; in TriangleThreshold() local
635 threshold=0; in TriangleThreshold()
644 threshold=i; in TriangleThreshold()
655 threshold=i; in TriangleThreshold()
659 return(100.0*threshold/MaxIntensity); in TriangleThreshold()
675 threshold; in AutoThresholdImage() local
736 threshold=KapurThreshold(image,histogram,exception); in AutoThresholdImage()
742 threshold=OTSUThreshold(image,histogram,exception); in AutoThresholdImage()
747 threshold=TriangleThreshold(histogram); in AutoThresholdImage()
752 if (threshold < 0.0) in AutoThresholdImage()
759 (void) FormatLocaleString(property,MagickPathExtent,"%g%%",threshold); in AutoThresholdImage()
762 (void) FormatLocaleFile(stdout,"%.*g%%\n",GetMagickPrecision(),threshold); in AutoThresholdImage()
763 return(BilevelImage(image,QuantumRange*threshold/100.0,exception)); in AutoThresholdImage()
807 MagickExport MagickBooleanType BilevelImage(Image *image,const double threshold, in BilevelImage() argument
875 q[i]=(Quantum) (pixel <= threshold ? 0 : QuantumRange); in BilevelImage()
947 threshold; in BlackThresholdImage() local
965 GetPixelInfo(image,&threshold); in BlackThresholdImage()
967 threshold.red=geometry_info.rho; in BlackThresholdImage()
968 threshold.green=geometry_info.rho; in BlackThresholdImage()
969 threshold.blue=geometry_info.rho; in BlackThresholdImage()
970 threshold.black=geometry_info.rho; in BlackThresholdImage()
971 threshold.alpha=100.0; in BlackThresholdImage()
973 threshold.green=geometry_info.sigma; in BlackThresholdImage()
975 threshold.blue=geometry_info.xi; in BlackThresholdImage()
977 threshold.alpha=geometry_info.psi; in BlackThresholdImage()
978 if (threshold.colorspace == CMYKColorspace) in BlackThresholdImage()
981 threshold.black=geometry_info.psi; in BlackThresholdImage()
983 threshold.alpha=geometry_info.chi; in BlackThresholdImage()
987 threshold.red*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
988 threshold.green*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
989 threshold.blue*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
990 threshold.black*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
991 threshold.alpha*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
1036 if (pixel < GetPixelInfoChannel(&threshold,channel)) in BlackThresholdImage()
1545 *threshold, in GetThresholdMapFile() local
1554 for (threshold=GetXMLTreeChild(thresholds,"threshold"); in GetThresholdMapFile()
1555 threshold != (XMLTreeInfo *) NULL; in GetThresholdMapFile()
1556 threshold=GetNextXMLTreeTag(threshold)) in GetThresholdMapFile()
1558 attribute=GetXMLTreeAttribute(threshold,"map"); in GetThresholdMapFile()
1561 attribute=GetXMLTreeAttribute(threshold,"alias"); in GetThresholdMapFile()
1565 if (threshold == (XMLTreeInfo *) NULL) in GetThresholdMapFile()
1570 description=GetXMLTreeChild(threshold,"description"); in GetThresholdMapFile()
1578 levels=GetXMLTreeChild(threshold,"levels"); in GetThresholdMapFile()
1590 attribute=GetXMLTreeAttribute(threshold,"map"); in GetThresholdMapFile()
1739 *threshold, in ListThresholdMapFile() local
1752 threshold=GetXMLTreeChild(thresholds,"threshold"); in ListThresholdMapFile()
1753 for ( ; threshold != (XMLTreeInfo *) NULL; in ListThresholdMapFile()
1754 threshold=GetNextXMLTreeTag(threshold)) in ListThresholdMapFile()
1756 map=GetXMLTreeAttribute(threshold,"map"); in ListThresholdMapFile()
1764 alias=GetXMLTreeAttribute(threshold,"alias"); in ListThresholdMapFile()
1765 description=GetXMLTreeChild(threshold,"description"); in ListThresholdMapFile()
2008 threshold; in OrderedDitherImage() local
2019 threshold=(ssize_t) (QuantumScale*q[i]*(levels[n]*(map->divisor-1)+1)); in OrderedDitherImage()
2020 level=threshold/(map->divisor-1); in OrderedDitherImage()
2021 threshold-=level*(map->divisor-1); in OrderedDitherImage()
2022 q[i]=ClampToQuantum((double) (level+(threshold >= in OrderedDitherImage()
2243 threshold; in RandomThresholdImage() local
2264 GetPixelInfo(image,&threshold); in RandomThresholdImage()
2304 threshold; in RandomThresholdImage() local
2311 threshold=min_threshold; in RandomThresholdImage()
2314 threshold=max_threshold; in RandomThresholdImage()
2316 threshold=(double) (QuantumRange* in RandomThresholdImage()
2318 q[i]=(double) q[i] <= threshold ? 0 : QuantumRange; in RandomThresholdImage()
2536 threshold; in WhiteThresholdImage() local
2554 GetPixelInfo(image,&threshold); in WhiteThresholdImage()
2556 threshold.red=geometry_info.rho; in WhiteThresholdImage()
2557 threshold.green=geometry_info.rho; in WhiteThresholdImage()
2558 threshold.blue=geometry_info.rho; in WhiteThresholdImage()
2559 threshold.black=geometry_info.rho; in WhiteThresholdImage()
2560 threshold.alpha=100.0; in WhiteThresholdImage()
2562 threshold.green=geometry_info.sigma; in WhiteThresholdImage()
2564 threshold.blue=geometry_info.xi; in WhiteThresholdImage()
2566 threshold.alpha=geometry_info.psi; in WhiteThresholdImage()
2567 if (threshold.colorspace == CMYKColorspace) in WhiteThresholdImage()
2570 threshold.black=geometry_info.psi; in WhiteThresholdImage()
2572 threshold.alpha=geometry_info.chi; in WhiteThresholdImage()
2576 threshold.red*=(MagickRealType) (QuantumRange/100.0); in WhiteThresholdImage()
2577 threshold.green*=(MagickRealType) (QuantumRange/100.0); in WhiteThresholdImage()
2578 threshold.blue*=(MagickRealType) (QuantumRange/100.0); in WhiteThresholdImage()
2579 threshold.black*=(MagickRealType) (QuantumRange/100.0); in WhiteThresholdImage()
2580 threshold.alpha*=(MagickRealType) (QuantumRange/100.0); in WhiteThresholdImage()
2625 if (pixel > GetPixelInfoChannel(&threshold,channel)) in WhiteThresholdImage()