"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "skimage/registration/tests/test_ilk.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.

test_ilk.py  (scikit-image-0.19.1):test_ilk.py  (scikit-image-0.19.2)
import numpy as np import numpy as np
import pytest import pytest
from skimage._shared.utils import _supported_float_type from skimage._shared.utils import _supported_float_type
from skimage.registration import optical_flow_ilk from skimage.registration import optical_flow_ilk
from test_tvl1 import _sin_flow_gen from .test_tvl1 import _sin_flow_gen
@pytest.mark.parametrize('dtype', [np.float16, np.float32, np.float64]) @pytest.mark.parametrize('dtype', [np.float16, np.float32, np.float64])
@pytest.mark.parametrize('gaussian', [True, False]) @pytest.mark.parametrize('gaussian', [True, False])
@pytest.mark.parametrize('prefilter', [True, False]) @pytest.mark.parametrize('prefilter', [True, False])
def test_2d_motion(dtype, gaussian, prefilter): def test_2d_motion(dtype, gaussian, prefilter):
# Generate synthetic data # Generate synthetic data
rnd = np.random.default_rng(0) rnd = np.random.default_rng(0)
image0 = rnd.normal(size=(256, 256)) image0 = rnd.normal(size=(256, 256))
gt_flow, image1 = _sin_flow_gen(image0) gt_flow, image1 = _sin_flow_gen(image0)
image1 = image1.astype(dtype, copy=False) image1 = image1.astype(dtype, copy=False)
 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)