This commit is contained in:
2018-07-26 14:37:01 +02:00
parent db8e9e8636
commit 0ed2ef7e43
2 changed files with 9 additions and 9 deletions

View File

@@ -175,7 +175,7 @@ def ShowImage(img,title=None,cmap='gray',vmin=None, vmax=None):
def imgEqualize(img,num_bins=256):
# get image histogram
hist, bins = np.histogram(image.flatten(), num_bins, normed=True)
hist, bins = np.histogram(img.flatten(), num_bins, normed=True)
cdf = hist.cumsum() # cumulative distribution function
cdf = 255 * cdf / cdf[-1] # normalize
@@ -466,8 +466,8 @@ if __name__ == '__main__':
basePath='/home/zamofing_t/Documents/prj/SwissFEL/epics_ioc_modules/ESB_MX/python/images/'
#testfftLoop()
testFindGrid()
#testFindObj()
#testFindGrid()
testFindObj()
#testPhaseEnhance()
exit(0)