예제 #1
0
파일: Data2D.py 프로젝트: NSLS-II-LIX/pyXS
 def val(self, fx, fy):
     """ intensity at the pixel position (fx, fy), interpolatd from the neighbors 
     """
     """
     ix = int(fx)
     iy = int(fy)
     if ix<0 or iy<0 or ix>=self.width or iy>=self.height : return(0)
     t = (1.-(fx-ix))*(1.-(fy-iy))*self.data[iy,ix]
     t += (fx-ix)*(1.-(fy-iy))*self.data[iy+1,ix]
     t += (1.-(fx-ix))*(fy-iy)*self.data[iy,ix+1]
     t += (fx-ix)*(fy-iy)*self.data[iy+1,ix+1]
     return t
     """
     return RQconv.get_value(self.data, fx, fy)