mWater / mWater-Android-App

An Android App that snaps a picture of a petrifilm, counts the bacteria and posts the counts on a server for the mWater project
https://github.com/AndroidImageProcessing
GNU General Public License v3.0
24 stars 16 forks source link

Normalizing the ackground #18

Closed pakdel closed 12 years ago

pakdel commented 12 years ago

Narrow down the histogram of the background.

def determinebackground(img, mask):
    # Get histogram
    histr=gethist(img, mask, 2)
    histg=gethist(img, mask, 1)
    histb=gethist(img, mask, 0)
    return (bestval(histb)[0], bestval(histg)[0], bestval(histr)[0])

https://github.com/AndroidImageProcessing/AndroidBacteriaImageProcessing/blob/master/data/stage3.png