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