def __init__(self, parent, title, hid,fnValMsk,fnIntegMsk): HdfImageGLFrame.__init__(self, parent, title, hid) #HdfPyFAI1DFrame(self, title, hid) canvas=self.canvas raw=canvas.data self.prs=prs=ProcRoiStat() prs.SetRoiMat((fnValMsk,fnIntegMsk),raw.shape) prs.SetProcess('avg') print ('numnber of ROI,',prs.roiLenArr.size,'Total number of pixels',prs.roiIdxArr.size) prs.Process(raw) print (prs.resArr[0,:].max(),prs.resArr[0,:].min()) canvas.data=prs.resArr
def __init__(self, parent, title, hid,fnValMsk,fnIntegMsk): HdfImageGLFrame.__init__(self, parent, title, hid) #HdfPyFAI1DFrame(self, title, hid) canvas=self.canvas raw=canvas.data self.prs=prs=ProcRoiStat() prs.SetRoiMat((fnValMsk,fnIntegMsk),raw.shape) prs.SetProcess('avg') print 'numnber of ROI,',prs.roiLenArr.size,'Total number of pixels',prs.roiIdxArr.size prs.Process(raw) print prs.resArr[0,:].max(),prs.resArr[0,:].min() canvas.data=prs.resArr
def __init__(self, parent, title, hid): HdfImageGLFrame.__init__(self, parent, title, hid) #HdfPyFAI1DFrame(self, title, hid) canvas=self.canvas raw=canvas.data ctrX,ctrY=FindCenter(raw) self.ai = pyFAI.AzimuthalIntegrator(1.e3, ctrX, ctrY, 0.0, 0.0, 0.0, 1.e0, 1.e0) raw self.numPtTh=int(np.average(raw.shape)/2.) self.numPtCh=360 imgPolar,theta,chi=self.ai.xrpd2(raw,self.numPtTh,self.numPtCh) canvas.data=imgPolar print (imgPolar.shape)
def __init__(self, parent, title, hid): HdfImageGLFrame.__init__(self, parent, title, hid) #HdfPyFAI1DFrame(self, title, hid) canvas=self.canvas raw=canvas.data ctrX,ctrY=FindCenter(raw) self.ai = pyFAI.AzimuthalIntegrator(1.e3, ctrX, ctrY, 0.0, 0.0, 0.0, 1.e0, 1.e0) raw self.numPtTh=int(np.average(raw.shape)/2.) self.numPtCh=360 imgPolar,theta,chi=self.ai.xrpd2(raw,self.numPtTh,self.numPtCh) canvas.data=imgPolar print imgPolar.shape
def BuildMenu(self): HdfImageGLFrame.BuildMenu(self) mnBar=self.GetMenuBar() mn=mnBar.GetMenu(0) itemLst=mn.GetMenuItems() it=itemLst[0] it.GetItemLabel()
def BuildMenu(self): HdfImageGLFrame.BuildMenu(self) mnBar=self.GetMenuBar() mn=mnBar.GetMenu(0) itemLst=mn.GetMenuItems() it=itemLst[0] it.GetItemLabel() mnItem=mn.Append(wx.ID_ANY, 'Setup FAI', 'Setup fast azimutal integration ');self.Bind(wx.EVT_MENU, self.OnFAISetup, mnItem)