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)

View File

@@ -69,11 +69,11 @@ P=$(P),M=MOT_WEDGEA;
P=$(P),M=MOT_WEDGEB;
P=$(P),M=MOT_BLGT;
P=$(P),M=MOT_CRYO;
P=$(P),M=MOT_GIRDER1;
P=$(P),M=MOT_GIRDER2;
P=$(P),M=MOT_GIRDER3;
P=$(P),M=MOT_GIRDER4;
P=$(P),M=MOT_GIRDER5</string>
P=$(P),M=MOT_GIR_X;
P=$(P),M=MOT_GIR_Y;
P=$(P),M=MOT_GIR_U;
P=$(P),M=MOT_GIR_V;
P=$(P),M=MOT_GIR_W</string>
</property>
<property name="filename" stdset="0">
<string notr="true">ESB_MX_motor.ui</string>
@@ -358,7 +358,7 @@ P=$(P),M=MOT_GIRDER5</string>
<string>ESB_MX_5cam.ui</string>
</property>
<property name="args">
<string>NAME=$(P), NAME1=$(P)</string>
<string>P=$(P)</string>
</property>
<property name="stackingMode" stdset="0">
<enum>caRowColMenu::Menu</enum>