def computeInterpolatedICImg(self,roi=None):
"""Interpolates ICs back onto 2D image.
Uses ``scipy.interpolate.griddata``, see also http://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.interpolate.griddata.html
If ``roi`` is specified, will only interpolate nodes of this ROI.
Keyword Args:
roi (pyfrp.subclasses.pyfrp_ROI.ROI): A PyFRAP ROI.
Returns:
tuple: Tuple containing:
* X (numpy.ndarray): Meshgrid x-coordinates.
* Y (numpy.ndarray): Meshgrid y-coordinates.
* interpIC (numpy.ndarray): Interpolated ICs.
"""
X,Y,interpIC=self.computeInterpolatedSolutionToImg(self.IC,roi=roi)
return X,Y,interpIC
评论列表
文章目录