Lines Matching refs:threshold
406 threshold; in KapurThreshold() local
471 threshold=0; in KapurThreshold()
476 threshold=(size_t) j; in KapurThreshold()
484 return(100.0*threshold/MaxIntensity); in KapurThreshold()
496 threshold; in OTSUThreshold() local
542 threshold=0; in OTSUThreshold()
553 threshold=(double) i; in OTSUThreshold()
563 return(100.0*threshold/MaxIntensity); in OTSUThreshold()
590 threshold; in TriangleThreshold() local
631 threshold=0; in TriangleThreshold()
640 threshold=i; in TriangleThreshold()
651 threshold=i; in TriangleThreshold()
655 return(100.0*threshold/MaxIntensity); in TriangleThreshold()
671 threshold; in AutoThresholdImage() local
732 threshold=KapurThreshold(image,histogram,exception); in AutoThresholdImage()
738 threshold=OTSUThreshold(image,histogram,exception); in AutoThresholdImage()
743 threshold=TriangleThreshold(histogram,exception); in AutoThresholdImage()
748 if (threshold < 0.0) in AutoThresholdImage()
755 (void) FormatLocaleString(property,MagickPathExtent,"%g%%",threshold); in AutoThresholdImage()
757 return(BilevelImage(image,QuantumRange*threshold/100.0,exception)); in AutoThresholdImage()
801 MagickExport MagickBooleanType BilevelImage(Image *image,const double threshold, in BilevelImage() argument
869 q[i]=(Quantum) (pixel <= threshold ? 0 : QuantumRange); in BilevelImage()
941 threshold; in BlackThresholdImage() local
959 GetPixelInfo(image,&threshold); in BlackThresholdImage()
961 threshold.red=geometry_info.rho; in BlackThresholdImage()
962 threshold.green=geometry_info.rho; in BlackThresholdImage()
963 threshold.blue=geometry_info.rho; in BlackThresholdImage()
964 threshold.black=geometry_info.rho; in BlackThresholdImage()
965 threshold.alpha=100.0; in BlackThresholdImage()
967 threshold.green=geometry_info.sigma; in BlackThresholdImage()
969 threshold.blue=geometry_info.xi; in BlackThresholdImage()
971 threshold.alpha=geometry_info.psi; in BlackThresholdImage()
972 if (threshold.colorspace == CMYKColorspace) in BlackThresholdImage()
975 threshold.black=geometry_info.psi; in BlackThresholdImage()
977 threshold.alpha=geometry_info.chi; in BlackThresholdImage()
981 threshold.red*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
982 threshold.green*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
983 threshold.blue*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
984 threshold.black*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
985 threshold.alpha*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
1030 if (pixel < GetPixelInfoChannel(&threshold,channel)) in BlackThresholdImage()
1329 *threshold, in GetThresholdMapFile() local
1338 for (threshold=GetXMLTreeChild(thresholds,"threshold"); in GetThresholdMapFile()
1339 threshold != (XMLTreeInfo *) NULL; in GetThresholdMapFile()
1340 threshold=GetNextXMLTreeTag(threshold)) in GetThresholdMapFile()
1342 attribute=GetXMLTreeAttribute(threshold,"map"); in GetThresholdMapFile()
1345 attribute=GetXMLTreeAttribute(threshold,"alias"); in GetThresholdMapFile()
1349 if (threshold == (XMLTreeInfo *) NULL) in GetThresholdMapFile()
1354 description=GetXMLTreeChild(threshold,"description"); in GetThresholdMapFile()
1362 levels=GetXMLTreeChild(threshold,"levels"); in GetThresholdMapFile()
1374 attribute=GetXMLTreeAttribute(threshold,"map"); in GetThresholdMapFile()
1523 *threshold, in ListThresholdMapFile() local
1536 threshold=GetXMLTreeChild(thresholds,"threshold"); in ListThresholdMapFile()
1537 for ( ; threshold != (XMLTreeInfo *) NULL; in ListThresholdMapFile()
1538 threshold=GetNextXMLTreeTag(threshold)) in ListThresholdMapFile()
1540 map=GetXMLTreeAttribute(threshold,"map"); in ListThresholdMapFile()
1548 alias=GetXMLTreeAttribute(threshold,"alias"); in ListThresholdMapFile()
1549 description=GetXMLTreeChild(threshold,"description"); in ListThresholdMapFile()
1792 threshold; in OrderedDitherImage() local
1803 threshold=(ssize_t) (QuantumScale*q[i]*(levels[n]*(map->divisor-1)+1)); in OrderedDitherImage()
1804 level=threshold/(map->divisor-1); in OrderedDitherImage()
1805 threshold-=level*(map->divisor-1); in OrderedDitherImage()
1806 q[i]=ClampToQuantum((double) (level+(threshold >= in OrderedDitherImage()
2027 threshold; in RandomThresholdImage() local
2048 GetPixelInfo(image,&threshold); in RandomThresholdImage()
2088 threshold; in RandomThresholdImage() local
2095 threshold=min_threshold; in RandomThresholdImage()
2098 threshold=max_threshold; in RandomThresholdImage()
2100 threshold=(double) (QuantumRange* in RandomThresholdImage()
2102 q[i]=(double) q[i] <= threshold ? 0 : QuantumRange; in RandomThresholdImage()
2320 threshold; in WhiteThresholdImage() local
2338 GetPixelInfo(image,&threshold); in WhiteThresholdImage()
2340 threshold.red=geometry_info.rho; in WhiteThresholdImage()
2341 threshold.green=geometry_info.rho; in WhiteThresholdImage()
2342 threshold.blue=geometry_info.rho; in WhiteThresholdImage()
2343 threshold.black=geometry_info.rho; in WhiteThresholdImage()
2344 threshold.alpha=100.0; in WhiteThresholdImage()
2346 threshold.green=geometry_info.sigma; in WhiteThresholdImage()
2348 threshold.blue=geometry_info.xi; in WhiteThresholdImage()
2350 threshold.alpha=geometry_info.psi; in WhiteThresholdImage()
2351 if (threshold.colorspace == CMYKColorspace) in WhiteThresholdImage()
2354 threshold.black=geometry_info.psi; in WhiteThresholdImage()
2356 threshold.alpha=geometry_info.chi; in WhiteThresholdImage()
2360 threshold.red*=(MagickRealType) (QuantumRange/100.0); in WhiteThresholdImage()
2361 threshold.green*=(MagickRealType) (QuantumRange/100.0); in WhiteThresholdImage()
2362 threshold.blue*=(MagickRealType) (QuantumRange/100.0); in WhiteThresholdImage()
2363 threshold.black*=(MagickRealType) (QuantumRange/100.0); in WhiteThresholdImage()
2364 threshold.alpha*=(MagickRealType) (QuantumRange/100.0); in WhiteThresholdImage()
2409 if (pixel > GetPixelInfoChannel(&threshold,channel)) in WhiteThresholdImage()