Lines Matching refs:MaxIntensity

397 #define MaxIntensity  255  in KapurThreshold()  macro
417 cumulative_histogram=(double *) AcquireQuantumMemory(MaxIntensity+1UL, in KapurThreshold()
419 black_entropy=(double *) AcquireQuantumMemory(MaxIntensity+1UL, in KapurThreshold()
421 white_entropy=(double *) AcquireQuantumMemory(MaxIntensity+1UL, in KapurThreshold()
441 for (i=1; i <= MaxIntensity; i++) in KapurThreshold()
444 for (j=0; j <= MaxIntensity; j++) in KapurThreshold()
466 for (i=j+1; i <= MaxIntensity; i++) in KapurThreshold()
478 for (j=1; j <= MaxIntensity; j++) in KapurThreshold()
490 return(100.0*threshold/MaxIntensity); in KapurThreshold()
510 myu=(double *) AcquireQuantumMemory(MaxIntensity+1UL,sizeof(*myu)); in OTSUThreshold()
511 omega=(double *) AcquireQuantumMemory(MaxIntensity+1UL,sizeof(*omega)); in OTSUThreshold()
512 probability=(double *) AcquireQuantumMemory(MaxIntensity+1UL, in OTSUThreshold()
514 sigma=(double *) AcquireQuantumMemory(MaxIntensity+1UL,sizeof(*sigma)); in OTSUThreshold()
533 for (i=0; i <= (ssize_t) MaxIntensity; i++) in OTSUThreshold()
540 for (i=1; i <= (ssize_t) MaxIntensity; i++) in OTSUThreshold()
550 for (i=0; i < (ssize_t) MaxIntensity; i++) in OTSUThreshold()
554 sigma[i]=pow(myu[MaxIntensity]*omega[i]-myu[i],2.0)/(omega[i]*(1.0- in OTSUThreshold()
569 return(100.0*threshold/MaxIntensity); in OTSUThreshold()
601 for (i=0; i <= (ssize_t) MaxIntensity; i++) in TriangleThreshold()
608 for (i=(ssize_t) MaxIntensity; i >= 0; i--) in TriangleThreshold()
616 for (i=0; i <= (ssize_t) MaxIntensity; i++) in TriangleThreshold()
659 return(100.0*threshold/MaxIntensity); in TriangleThreshold()
693 histogram=(double *) AcquireQuantumMemory(MaxIntensity+1UL, in AutoThresholdImage()
699 (void) memset(histogram,0,(MaxIntensity+1UL)*sizeof(*histogram)); in AutoThresholdImage()
724 for (i=0; i <= (ssize_t) MaxIntensity; i++) in AutoThresholdImage()
727 for (i=0; i <= (ssize_t) MaxIntensity; i++) in AutoThresholdImage()