Module Import alias identifier ImportFrom alias alias alias ImportFrom alias alias alias alias alias ImportFrom alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr ExtSlice Slice Num Slice Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpMult BinOpMult Num Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assert CompareIn AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ImportFrom alias identifier Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad Num Num Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareLt Call AttributeLoad NameLoad attr Call AttributeLoad BinOpPow NameLoad Num attr Call AttributeLoad NameLoad attr Call AttributeLoad BinOpPow NameLoad Num attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Ellipsis Index Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword NameLoad Expr Call NameLoad SubscriptLoad NameLoad ExtSlice Ellipsis Index Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Num Slice Num Index AttributeLoad NameLoad attr Slice ListLoad Num Num Num Num Assign SubscriptStore NameLoad ExtSlice Slice Slice Index Num Slice BinOpMult Num SubscriptLoad NameLoad ExtSlice Slice Slice Index Num Slice Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Ellipsis Index Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword NameLoad Expr Call NameLoad SubscriptLoad NameLoad ExtSlice Ellipsis Index Num NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Num attr AttributeLoad NameLoad attr Assert CompareGt Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareLtE Call AttributeLoad NameLoad attr NameLoad Num Assert CompareGtE Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args defaults body Expr Str Assign TupleStore NameStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Num Num Slice Num Num Slice Num Num Assign NameStore CompareLt BinOpAdd BinOpAdd BinOpPow BinOpSub NameLoad Num Num BinOpPow BinOpSub NameLoad Num Num BinOpPow BinOpSub NameLoad Num Num BinOpPow Num Num Assign NameStore BinOpMult Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd NameStore Num AugAssignAdd NameStore BinOpMult Num Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index CompareLt NameLoad Num Num Assign SubscriptStore NameLoad Index CompareGt NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareLt BinOpMult Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore BinOpAdd Num BinOpMult Num Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num BinOpMult Num AttributeLoad NameLoad attr Num AugAssignAdd NameStore BinOpMult Num Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareLt BinOpMult Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore BinOpMult Num Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareLt BinOpMult Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpMult Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Ellipsis Index NameLoad Index NameLoad TupleLoad Num Num Num Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assert CompareGt Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad ExtSlice Slice Slice Index Num Index Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpMult BinOpMult Num Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assert CompareGt Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Num Slice Num Num attr Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Num Slice Num Num attr Assert CompareGt Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Num Slice Num Num attr Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Num Slice Num Num attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Num attr AttributeLoad NameLoad attr Assert CompareGt Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareLtE Call AttributeLoad NameLoad attr NameLoad Num Assert CompareGtE Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpMult BinOpMult Num Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assert CompareGt Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Num Slice Num Num attr Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Num Slice Num Num attr Assert CompareGt Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Num Slice Num Num attr Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Num Slice Num Num attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpMult BinOpMult Num Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num keyword NameLoad Assert CompareGt Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Num Slice Num Num attr Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Num Slice Num Num attr Assert CompareGt Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Num Slice Num Num attr Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Num Slice Num Num attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpMult BinOpMult Num Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num Assert CompareGt Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Num Slice Num Num attr Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Num Slice Num Num attr Assert CompareGt Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Num Slice Num Num attr Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Num Slice Num Num attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num With Call NameLoad ListLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore BinOpAdd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpMult BinOpMult Num Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num keyword NameLoad With Call NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num keyword NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpMult BinOpMult Num Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num keyword NameLoad With Call NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num keyword Num keyword NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign SubscriptStore NameLoad ExtSlice Slice Num Num Slice Num Num Num AugAssignAdd NameStore BinOpMult Num Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Num keyword NameLoad Assert CompareGt Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Num keyword NameLoad Assert CompareGt Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Num Slice Num AugAssignAdd NameStore BinOpMult BinOpMult Num Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Num keyword NameLoad Assert CompareGt Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Num keyword NameLoad Assert CompareGt Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Assign SubscriptStore NameLoad ExtSlice Slice Num Num Slice Num Num Slice Num Num Num AugAssignAdd NameStore BinOpMult Num Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Num keyword NameLoad keyword NameLoad Assert CompareGt Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Num keyword NameLoad keyword NameLoad Assert CompareGt Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Assign SubscriptStore NameLoad ExtSlice Index Num Slice Num Num Slice Num Num Num AugAssignAdd NameStore BinOpMult Num Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Num keyword NameLoad keyword NameLoad Assign NameStore BinOpMult Num Call AttributeLoad NameLoad attr BinOpDiv Num Call AttributeLoad BinOpPow BinOpSub NameLoad NameLoad Num attr Assign NameStore BinOpMult Num Call AttributeLoad NameLoad attr BinOpDiv Num Call AttributeLoad BinOpPow BinOpSub NameLoad NameLoad Num attr Assert CompareGt NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign SubscriptStore NameLoad ExtSlice Slice Num Num Slice Num Num Num AugAssignAdd NameStore BinOpMult Num Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Num keyword NameLoad Assert Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Num keyword NameLoad Assert Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A numpy np numpy.testing run_module_suite assert_raises assert_equal skimage restoration data color img_as_float measure skimage._shared._warnings expected_warnings N/A N/A N/A N/A np random seed 1234 N/A astro N/A img_as_float N/A N/A N/A data astronaut N/A N/A 128 N/A 128 N/A astro_gray N/A N/A color rgb2gray astro N/A checkerboard_gray N/A img_as_float N/A N/A data checkerboard N/A checkerboard N/A N/A color gray2rgb checkerboard_gray test_denoise_tv_chambolle_2d N/A N/A N/A N/A N/A img N/A N/A astro_gray copy N/A img N/A N/A 0.5 N/A N/A img std N/A N/A N/A np random rand N/A img shape N/A img N/A N/A np clip img 0 1 N/A denoised_astro N/A N/A restoration denoise_tv_chambolle img weight 0.1 N/A N/A N/A denoised_astro dtype N/A N/A np float N/A np float32 N/A np float64 scipy ndimage ndi N/A grad N/A N/A ndi morphological_gradient img size N/A 3 3 N/A grad_denoised N/A N/A ndi morphological_gradient denoised_astro size N/A 3 3 N/A N/A N/A grad_denoised dtype N/A np float N/A N/A N/A N/A np sqrt N/A N/A N/A grad_denoised 2 sum N/A N/A np sqrt N/A N/A N/A grad 2 sum N/A test_denoise_tv_chambolle_multichannel N/A N/A N/A N/A N/A denoised0 N/A N/A restoration denoise_tv_chambolle N/A astro N/A N/A N/A 0 weight 0.1 N/A denoised N/A N/A restoration denoise_tv_chambolle astro weight 0.1 multichannel True N/A N/A assert_equal N/A denoised N/A N/A N/A 0 denoised0 N/A astro3 N/A N/A np tile N/A astro N/A N/A 64 N/A 64 N/A N/A np newaxis N/A N/A 1 1 2 1 N/A N/A astro3 N/A N/A N/A N/A 0 N/A N/A 2 N/A astro3 N/A N/A N/A N/A 0 N/A N/A denoised0 N/A N/A restoration denoise_tv_chambolle N/A astro3 N/A N/A N/A 0 weight 0.1 N/A denoised N/A N/A restoration denoise_tv_chambolle astro3 weight 0.1 multichannel True N/A N/A assert_equal N/A denoised N/A N/A N/A 0 denoised0 N/A test_denoise_tv_chambolle_float_result_range N/A N/A N/A N/A N/A img astro_gray N/A int_astro N/A N/A N/A N/A np multiply img 255 astype N/A np uint8 N/A N/A N/A N/A np max int_astro 1 N/A denoised_int_astro N/A N/A restoration denoise_tv_chambolle int_astro weight 0.1 N/A N/A N/A denoised_int_astro dtype N/A np float N/A N/A N/A N/A np max denoised_int_astro 1.0 N/A N/A N/A N/A np min denoised_int_astro 0.0 N/A test_denoise_tv_chambolle_3d N/A N/A N/A N/A N/A Apply the TV denoising algorithm on a 3D image representing a sphere. N/A N/A x y z N/A N/A np ogrid N/A N/A 0 40 N/A 0 40 N/A 0 40 N/A mask N/A N/A N/A N/A N/A x 22 2 N/A N/A y 20 2 N/A N/A z 17 2 N/A 8 2 N/A mask N/A 100 N/A N/A mask astype N/A np float N/A mask 60 N/A mask N/A 20 N/A N/A N/A np random rand N/A mask shape N/A N/A mask N/A N/A mask 0 0 N/A N/A mask N/A N/A mask 255 255 N/A res N/A N/A restoration denoise_tv_chambolle N/A N/A mask astype N/A np uint8 weight 0.1 N/A N/A N/A res dtype N/A np float N/A N/A N/A N/A N/A res std 255 N/A N/A mask std N/A test_denoise_tv_chambolle_1d N/A N/A N/A N/A N/A Apply the TV denoising algorithm on a 1D sinusoid. N/A x N/A 125 N/A 100 N/A N/A np sin N/A N/A np linspace 0 N/A 8 N/A np pi 1000 N/A x N/A 20 N/A N/A N/A np random rand N/A x size N/A x N/A N/A np clip x 0 255 N/A res N/A N/A restoration denoise_tv_chambolle N/A N/A x astype N/A np uint8 weight 0.1 N/A N/A N/A res dtype N/A np float N/A N/A N/A N/A N/A res std 255 N/A N/A x std N/A test_denoise_tv_chambolle_4d N/A N/A N/A N/A N/A  TV denoising for a 4D input. N/A im N/A 255 N/A N/A N/A np random rand 8 8 8 8 N/A res N/A N/A restoration denoise_tv_chambolle N/A N/A im astype N/A np uint8 weight 0.1 N/A N/A N/A res dtype N/A np float N/A N/A N/A N/A N/A res std 255 N/A N/A im std N/A test_denoise_tv_chambolle_weighting N/A N/A N/A N/A N/A rstate N/A N/A N/A np random RandomState 1234 N/A img2d N/A N/A astro_gray copy N/A img2d N/A 0.15 N/A N/A rstate standard_normal N/A img2d shape N/A img2d N/A N/A np clip img2d 0 1 N/A img4d N/A N/A np tile N/A img2d N/A N/A N/A None N/A None N/A 1 1 2 2 N/A w 0.2 N/A denoised_2d N/A N/A restoration denoise_tv_chambolle img2d weight w N/A denoised_4d N/A N/A restoration denoise_tv_chambolle img4d weight w N/A N/A N/A N/A measure compare_ssim denoised_2d N/A denoised_4d N/A N/A N/A N/A 0 N/A 0 0.99 N/A test_denoise_tv_bregman_2d N/A N/A N/A N/A N/A img N/A N/A checkerboard_gray copy N/A img N/A N/A 0.5 N/A N/A img std N/A N/A N/A np random rand N/A img shape N/A img N/A N/A np clip img 0 1 N/A out1 N/A N/A restoration denoise_tv_bregman img weight 10 N/A out2 N/A N/A restoration denoise_tv_bregman img weight 5 N/A N/A N/A N/A N/A img N/A N/A 30 45 N/A 5 15 std N/A N/A N/A out1 N/A N/A 30 45 N/A 5 15 std N/A N/A N/A N/A N/A out1 N/A N/A 30 45 N/A 5 15 std N/A N/A N/A out2 N/A N/A 30 45 N/A 5 15 std N/A test_denoise_tv_bregman_float_result_range N/A N/A N/A N/A N/A img N/A N/A astro_gray copy N/A int_astro N/A N/A N/A N/A np multiply img 255 astype N/A np uint8 N/A N/A N/A N/A np max int_astro 1 N/A denoised_int_astro N/A N/A restoration denoise_tv_bregman int_astro weight 60.0 N/A N/A N/A denoised_int_astro dtype N/A np float N/A N/A N/A N/A np max denoised_int_astro 1.0 N/A N/A N/A N/A np min denoised_int_astro 0.0 N/A test_denoise_tv_bregman_3d N/A N/A N/A N/A N/A img N/A N/A checkerboard copy N/A img N/A N/A 0.5 N/A N/A img std N/A N/A N/A np random rand N/A img shape N/A img N/A N/A np clip img 0 1 N/A out1 N/A N/A restoration denoise_tv_bregman img weight 10 N/A out2 N/A N/A restoration denoise_tv_bregman img weight 5 N/A N/A N/A N/A N/A img N/A N/A 30 45 N/A 5 15 std N/A N/A N/A out1 N/A N/A 30 45 N/A 5 15 std N/A N/A N/A N/A N/A out1 N/A N/A 30 45 N/A 5 15 std N/A N/A N/A out2 N/A N/A 30 45 N/A 5 15 std N/A test_denoise_bilateral_2d N/A N/A N/A N/A N/A img N/A N/A checkerboard_gray copy N/A img N/A N/A 0.5 N/A N/A img std N/A N/A N/A np random rand N/A img shape N/A img N/A N/A np clip img 0 1 N/A out1 N/A N/A restoration denoise_bilateral img sigma_color 0.1 sigma_spatial 20 multichannel False N/A out2 N/A N/A restoration denoise_bilateral img sigma_color 0.2 sigma_spatial 30 multichannel False N/A N/A N/A N/A N/A img N/A N/A 30 45 N/A 5 15 std N/A N/A N/A out1 N/A N/A 30 45 N/A 5 15 std N/A N/A N/A N/A N/A out1 N/A N/A 30 45 N/A 5 15 std N/A N/A N/A out2 N/A N/A 30 45 N/A 5 15 std N/A test_denoise_bilateral_color N/A N/A N/A N/A N/A img N/A N/A checkerboard copy N/A img N/A N/A 0.5 N/A N/A img std N/A N/A N/A np random rand N/A img shape N/A img N/A N/A np clip img 0 1 N/A out1 N/A N/A restoration denoise_bilateral img sigma_color 0.1 sigma_spatial 20 N/A out2 N/A N/A restoration denoise_bilateral img sigma_color 0.2 sigma_spatial 30 N/A N/A N/A N/A N/A img N/A N/A 30 45 N/A 5 15 std N/A N/A N/A out1 N/A N/A 30 45 N/A 5 15 std N/A N/A N/A N/A N/A out1 N/A N/A 30 45 N/A 5 15 std N/A N/A N/A out2 N/A N/A 30 45 N/A 5 15 std N/A test_denoise_bilateral_3d_grayscale N/A N/A N/A N/A N/A img N/A N/A np ones N/A 50 50 3 N/A N/A assert_raises ValueError N/A restoration denoise_bilateral img multichannel False N/A test_denoise_bilateral_3d_multichannel N/A N/A N/A N/A N/A img N/A N/A np ones N/A 50 50 50 N/A N/A expected_warnings N/A grayscale N/A N/A result N/A N/A restoration denoise_bilateral img N/A expected N/A N/A np empty_like img N/A N/A N/A expected fill N/A np nan N/A N/A assert_equal result expected N/A test_denoise_bilateral_multidimensional N/A N/A N/A N/A N/A img N/A N/A np ones N/A 10 10 10 10 N/A N/A assert_raises ValueError N/A restoration denoise_bilateral img N/A N/A assert_raises ValueError N/A restoration denoise_bilateral img multichannel True N/A test_denoise_bilateral_nan N/A N/A N/A N/A N/A img N/A N/A np NaN N/A N/A np empty N/A 50 50 N/A out N/A N/A restoration denoise_bilateral img multichannel False N/A N/A assert_equal img out N/A test_denoise_sigma_range N/A N/A N/A N/A N/A img N/A N/A checkerboard_gray copy N/A img N/A N/A 0.5 N/A N/A img std N/A N/A N/A np random rand N/A img shape N/A img N/A N/A np clip img 0 1 N/A out1 N/A N/A restoration denoise_bilateral img sigma_color 0.1 sigma_spatial 20 multichannel False N/A N/A expected_warnings `sigma_range` has been deprecated in favor of `sigma_color`. The `sigma_range` keyword argument will be removed in v0.14 N/A N/A out2 N/A N/A restoration denoise_bilateral img sigma_range 0.1 sigma_spatial 20 multichannel False N/A N/A assert_equal out1 out2 N/A test_denoise_sigma_range_and_sigma_color N/A N/A N/A N/A N/A img N/A N/A checkerboard_gray copy N/A img N/A N/A 0.5 N/A N/A img std N/A N/A N/A np random rand N/A img shape N/A img N/A N/A np clip img 0 1 N/A out1 N/A N/A restoration denoise_bilateral img sigma_color 0.1 sigma_spatial 20 multichannel False N/A N/A expected_warnings `sigma_range` has been deprecated in favor of `sigma_color`. The `sigma_range` keyword argument will be removed in v0.14 N/A N/A out2 N/A N/A restoration denoise_bilateral img sigma_color 0.2 sigma_range 0.1 sigma_spatial 20 multichannel False N/A N/A assert_equal out1 out2 N/A test_nl_means_denoising_2d N/A N/A N/A N/A N/A img N/A N/A np zeros N/A 40 40 N/A N/A img N/A N/A 10 -10 N/A 10 -10 1.0 N/A img N/A 0.3 N/A N/A N/A np random randn N/A img shape N/A denoised N/A N/A restoration denoise_nl_means img 7 5 0.2 fast_mode True N/A N/A N/A N/A img std N/A N/A denoised std N/A denoised N/A N/A restoration denoise_nl_means img 7 5 0.2 fast_mode False N/A N/A N/A N/A img std N/A N/A denoised std N/A test_denoise_nl_means_2drgb N/A N/A N/A N/A N/A img N/A N/A np copy N/A astro N/A N/A 50 N/A 50 N/A img N/A N/A 0.5 N/A N/A img std N/A N/A N/A np random random N/A img shape N/A img N/A N/A np clip img 0 1 N/A denoised N/A N/A restoration denoise_nl_means img 7 9 0.3 fast_mode True N/A N/A N/A N/A img std N/A N/A denoised std N/A denoised N/A N/A restoration denoise_nl_means img 7 9 0.3 fast_mode False N/A N/A N/A N/A img std N/A N/A denoised std N/A test_denoise_nl_means_3d N/A N/A N/A N/A N/A img N/A N/A np zeros N/A 20 20 10 N/A N/A img N/A N/A 5 -5 N/A 5 -5 N/A 3 -3 1.0 N/A img N/A 0.3 N/A N/A N/A np random randn N/A img shape N/A denoised N/A N/A restoration denoise_nl_means img 5 4 0.2 fast_mode True multichannel False N/A N/A N/A N/A img std N/A N/A denoised std N/A denoised N/A N/A restoration denoise_nl_means img 5 4 0.2 fast_mode False multichannel False N/A N/A N/A N/A img std N/A N/A denoised std N/A test_denoise_nl_means_multichannel N/A N/A N/A N/A N/A img N/A N/A np zeros N/A 21 20 10 N/A N/A img N/A N/A 10 N/A 9 11 N/A 2 -2 1.0 N/A img N/A 0.3 N/A N/A N/A np random randn N/A img shape N/A denoised_wrong_multichannel N/A N/A restoration denoise_nl_means img 5 4 0.1 fast_mode True multichannel True N/A denoised_ok_multichannel N/A N/A restoration denoise_nl_means img 5 4 0.1 fast_mode True multichannel False N/A snr_wrong N/A 10 N/A N/A np log10 N/A 1.0 N/A N/A N/A N/A denoised_wrong_multichannel img 2 mean N/A snr_ok N/A 10 N/A N/A np log10 N/A 1.0 N/A N/A N/A N/A denoised_ok_multichannel img 2 mean N/A N/A snr_ok snr_wrong N/A test_denoise_nl_means_wrong_dimension N/A N/A N/A N/A N/A img N/A N/A np zeros N/A 5 5 5 5 N/A N/A assert_raises NotImplementedError N/A restoration denoise_nl_means img N/A test_no_denoising_for_small_h N/A N/A N/A N/A N/A img N/A N/A np zeros N/A 40 40 N/A N/A img N/A N/A 10 -10 N/A 10 -10 1.0 N/A img N/A 0.3 N/A N/A N/A np random randn N/A img shape N/A denoised N/A N/A restoration denoise_nl_means img 7 5 0.01 fast_mode True N/A N/A N/A np allclose denoised img N/A denoised N/A N/A restoration denoise_nl_means img 7 5 0.01 fast_mode False N/A N/A N/A np allclose denoised img N/A N/A N/A __name__ __main__ N/A N/A N/A run_module_suite