src/operators/processing/meteosat/gccthermthresholddetection.cpp
/**
 * This function determines the bucket of the land_peak
 */
This function determines the bucket of the land_peak
This function determines the bucket of the land_peak
int phase1FindLandPeakBucket(Histogram *histogram, const double minimum_land_peak_temperature){
	int land_peak_bucket = histogram->calculateBucketForValue(minimum_land_peak_temperature);
	if(histogram->getMax() > minimum_land_peak_temperature){
		int land_peak_count = histogram->getCountForBucket(land_peak_bucket);
		for(int i = land_peak_bucket; i < histogram->getNumberOfBuckets(); i++){
			int tempCount = histogram->getCountForBucket(i);
			if(tempCount > land_peak_count){
				land_peak_count = tempCount;
				land_peak_bucket = i;
			}
		}
	}
	return (land_peak_bucket);
}
int phase1FindLandPeakBucket ( Histogram * histogram , const double minimum_land_peak_temperature ) { int land_peak_bucket = histogram -> calculateBucketForValue ( minimum_land_peak_temperature ) ; if ( histogram -> getMax ( ) > minimum_land_peak_temperature ) { int land_peak_count = histogram -> getCountForBucket ( land_peak_bucket ) ; for ( int i = land_peak_bucket ; i < histogram -> getNumberOfBuckets ( ) ; i ++ ) { int tempCount = histogram -> getCountForBucket ( i ) ; if ( tempCount > land_peak_count ) { land_peak_count = tempCount ; land_peak_bucket = i ; } } } return ( land_peak_bucket ) ; }
This function determines the bucket of the land_peak
This function determines the bucket of the land_peak
//set the land_peak_bucket to the bucket containing the minimum_land_peak_temperature //if there are buckets above the land_peak_bucket calculated for the minimum_land_peak_temperature -> search the bucket with max. count. This is the real land peak.