"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "skimage/restoration/inpaint.py" between
scikit-image-0.19.1.tar.gz and scikit-image-0.19.2.tar.gz

About: scikit-image is a collection of algorithms for image processing in Python.

inpaint.py  (scikit-image-0.19.1):inpaint.py  (scikit-image-0.19.2)
import numpy as np import numpy as np
from scipy import sparse from scipy import sparse
from scipy.sparse.linalg import spsolve from scipy.sparse.linalg import spsolve
import scipy.ndimage as ndi import scipy.ndimage as ndi
from scipy.ndimage.filters import laplace from scipy.ndimage import laplace
import skimage import skimage
from .._shared import utils from .._shared import utils
from ..measure import label from ..measure import label
from ._inpaint import _build_matrix_inner from ._inpaint import _build_matrix_inner
def _get_neighborhood(nd_idx, radius, nd_shape): def _get_neighborhood(nd_idx, radius, nd_shape):
bounds_lo = np.maximum(nd_idx - radius, 0) bounds_lo = np.maximum(nd_idx - radius, 0)
bounds_hi = np.minimum(nd_idx + radius + 1, nd_shape) bounds_hi = np.minimum(nd_idx + radius + 1, nd_shape)
return bounds_lo, bounds_hi return bounds_lo, bounds_hi
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)