wip
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user