• Home
  • Raw
  • Download

Lines Matching refs:threshold

410     threshold;  in KapurThreshold()  local
475 threshold=0; in KapurThreshold()
480 threshold=(size_t) j; in KapurThreshold()
488 return(100.0*threshold/MaxIntensity); in KapurThreshold()
500 threshold; in OTSUThreshold() local
546 threshold=0; in OTSUThreshold()
557 threshold=(double) i; in OTSUThreshold()
567 return(100.0*threshold/MaxIntensity); in OTSUThreshold()
593 threshold; in TriangleThreshold() local
633 threshold=0; in TriangleThreshold()
642 threshold=i; in TriangleThreshold()
653 threshold=i; in TriangleThreshold()
657 return(100.0*threshold/MaxIntensity); in TriangleThreshold()
673 threshold; in AutoThresholdImage() local
734 threshold=KapurThreshold(image,histogram,exception); in AutoThresholdImage()
740 threshold=OTSUThreshold(image,histogram,exception); in AutoThresholdImage()
745 threshold=TriangleThreshold(histogram); in AutoThresholdImage()
750 if (threshold < 0.0) in AutoThresholdImage()
757 (void) FormatLocaleString(property,MagickPathExtent,"%g%%",threshold); in AutoThresholdImage()
759 return(BilevelImage(image,QuantumRange*threshold/100.0,exception)); in AutoThresholdImage()
803 MagickExport MagickBooleanType BilevelImage(Image *image,const double threshold, in BilevelImage() argument
871 q[i]=(Quantum) (pixel <= threshold ? 0 : QuantumRange); in BilevelImage()
943 threshold; in BlackThresholdImage() local
961 GetPixelInfo(image,&threshold); in BlackThresholdImage()
963 threshold.red=geometry_info.rho; in BlackThresholdImage()
964 threshold.green=geometry_info.rho; in BlackThresholdImage()
965 threshold.blue=geometry_info.rho; in BlackThresholdImage()
966 threshold.black=geometry_info.rho; in BlackThresholdImage()
967 threshold.alpha=100.0; in BlackThresholdImage()
969 threshold.green=geometry_info.sigma; in BlackThresholdImage()
971 threshold.blue=geometry_info.xi; in BlackThresholdImage()
973 threshold.alpha=geometry_info.psi; in BlackThresholdImage()
974 if (threshold.colorspace == CMYKColorspace) in BlackThresholdImage()
977 threshold.black=geometry_info.psi; in BlackThresholdImage()
979 threshold.alpha=geometry_info.chi; in BlackThresholdImage()
983 threshold.red*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
984 threshold.green*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
985 threshold.blue*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
986 threshold.black*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
987 threshold.alpha*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
1032 if (pixel < GetPixelInfoChannel(&threshold,channel)) in BlackThresholdImage()
1331 *threshold, in GetThresholdMapFile() local
1340 for (threshold=GetXMLTreeChild(thresholds,"threshold"); in GetThresholdMapFile()
1341 threshold != (XMLTreeInfo *) NULL; in GetThresholdMapFile()
1342 threshold=GetNextXMLTreeTag(threshold)) in GetThresholdMapFile()
1344 attribute=GetXMLTreeAttribute(threshold,"map"); in GetThresholdMapFile()
1347 attribute=GetXMLTreeAttribute(threshold,"alias"); in GetThresholdMapFile()
1351 if (threshold == (XMLTreeInfo *) NULL) in GetThresholdMapFile()
1356 description=GetXMLTreeChild(threshold,"description"); in GetThresholdMapFile()
1364 levels=GetXMLTreeChild(threshold,"levels"); in GetThresholdMapFile()
1376 attribute=GetXMLTreeAttribute(threshold,"map"); in GetThresholdMapFile()
1525 *threshold, in ListThresholdMapFile() local
1538 threshold=GetXMLTreeChild(thresholds,"threshold"); in ListThresholdMapFile()
1539 for ( ; threshold != (XMLTreeInfo *) NULL; in ListThresholdMapFile()
1540 threshold=GetNextXMLTreeTag(threshold)) in ListThresholdMapFile()
1542 map=GetXMLTreeAttribute(threshold,"map"); in ListThresholdMapFile()
1550 alias=GetXMLTreeAttribute(threshold,"alias"); in ListThresholdMapFile()
1551 description=GetXMLTreeChild(threshold,"description"); in ListThresholdMapFile()
1794 threshold; in OrderedDitherImage() local
1805 threshold=(ssize_t) (QuantumScale*q[i]*(levels[n]*(map->divisor-1)+1)); in OrderedDitherImage()
1806 level=threshold/(map->divisor-1); in OrderedDitherImage()
1807 threshold-=level*(map->divisor-1); in OrderedDitherImage()
1808 q[i]=ClampToQuantum((double) (level+(threshold >= in OrderedDitherImage()
2029 threshold; in RandomThresholdImage() local
2050 GetPixelInfo(image,&threshold); in RandomThresholdImage()
2090 threshold; in RandomThresholdImage() local
2097 threshold=min_threshold; in RandomThresholdImage()
2100 threshold=max_threshold; in RandomThresholdImage()
2102 threshold=(double) (QuantumRange* in RandomThresholdImage()
2104 q[i]=(double) q[i] <= threshold ? 0 : QuantumRange; in RandomThresholdImage()
2322 threshold; in WhiteThresholdImage() local
2340 GetPixelInfo(image,&threshold); in WhiteThresholdImage()
2342 threshold.red=geometry_info.rho; in WhiteThresholdImage()
2343 threshold.green=geometry_info.rho; in WhiteThresholdImage()
2344 threshold.blue=geometry_info.rho; in WhiteThresholdImage()
2345 threshold.black=geometry_info.rho; in WhiteThresholdImage()
2346 threshold.alpha=100.0; in WhiteThresholdImage()
2348 threshold.green=geometry_info.sigma; in WhiteThresholdImage()
2350 threshold.blue=geometry_info.xi; in WhiteThresholdImage()
2352 threshold.alpha=geometry_info.psi; in WhiteThresholdImage()
2353 if (threshold.colorspace == CMYKColorspace) in WhiteThresholdImage()
2356 threshold.black=geometry_info.psi; in WhiteThresholdImage()
2358 threshold.alpha=geometry_info.chi; in WhiteThresholdImage()
2362 threshold.red*=(MagickRealType) (QuantumRange/100.0); in WhiteThresholdImage()
2363 threshold.green*=(MagickRealType) (QuantumRange/100.0); in WhiteThresholdImage()
2364 threshold.blue*=(MagickRealType) (QuantumRange/100.0); in WhiteThresholdImage()
2365 threshold.black*=(MagickRealType) (QuantumRange/100.0); in WhiteThresholdImage()
2366 threshold.alpha*=(MagickRealType) (QuantumRange/100.0); in WhiteThresholdImage()
2411 if (pixel > GetPixelInfoChannel(&threshold,channel)) in WhiteThresholdImage()