def getPixelValueBilinearInterpolation(self,x,y):
        if x<0 or x>self.theDiffractionData.size or \
                y<0 or y>self.theDiffractionData.size:
            raise Exception("Cannot calculate the intensity \
outside of the image.\n")

        return DiffractionAnalysisWrap.bilinearInterpolation(
                self.theDiffractionData.data,x,y)
Beispiel #2
0
    def getPixelValueBilinearInterpolation(self, x, y):
        if x<0 or x>self.theDiffractionData.size or \
                y<0 or y>self.theDiffractionData.size:
            raise Exception(
                "Cannot calculate the intensity outside of the image.\n")

        return DiffractionAnalysisWrap.bilinearInterpolation(
            self.theDiffractionData.data, x, y)