Module Import alias Import alias identifier ImportFrom alias identifier ImportFrom alias alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr Num Num Assert CompareEq SubscriptLoad NameLoad Index Num Num Assert CompareEq SubscriptLoad NameLoad Index Num Num Expr Call NameLoad SubscriptLoad NameLoad Slice Num Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr Num Num Assert CompareEq SubscriptLoad NameLoad Index Num Num Assert CompareEq SubscriptLoad NameLoad Index Num Num Expr Call NameLoad SubscriptLoad NameLoad Slice Num Num Num decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpDiv NameLoad Num Num FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body With Call NameLoad ListLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad ExtSlice Slice Num Num Slice Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Assert UnaryOpNot Call AttributeLoad CompareEq NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Num Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Num Assert CompareLtLt Num NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num keyword AttributeLoad NameLoad attr Assign NameStore ListLoad TupleLoad Str ListLoad Num Num TupleLoad Str ListLoad Num Num TupleLoad TupleLoad Num Num ListLoad Num Num For TupleStore NameStore NameStore NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Yield TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num keyword AttributeLoad NameLoad attr Assign NameStore ListLoad TupleLoad Str ListLoad Num Num TupleLoad Str ListLoad Num Num TupleLoad TupleLoad Num Num ListLoad Num Num For TupleStore NameStore NameStore NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Yield TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Str keyword NameLoad Expr Call NameLoad NameLoad TupleLoad Num Num decorator_list Assign NameStore BinOpSub BinOpPow Num Num Num Assign NameStore BinOpSub BinOpPow Num Num Num Assign NameStore BinOpSub BinOpPow Num Num Num Assign NameStore BinOpSub BinOpPow Num Num Num FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad ListLoad Num Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad ListLoad Num Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad Num Num Expr Call NameLoad NameLoad ListLoad Num Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad Num Num Expr Call NameLoad NameLoad ListLoad Num Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad Num Num Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad ListLoad Num Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num NameLoad BinOpAdd NameLoad Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call NameLoad NameLoad ListLoad Num NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call NameLoad NameLoad ListLoad Num NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call NameLoad NameLoad ListLoad Num NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call NameLoad NameLoad ListLoad Num NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num Assert CompareEq Call AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad Call NameLoad NameLoad NameLoad Num Num Expr Call NameLoad Call NameLoad NameLoad NameLoad Num Num Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad With Call NameLoad ListLoad Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num keyword Num keyword Num With Call NameLoad ListLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad Num Num keyword Num keyword Num Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Call NameLoad NameLoad NameLoad Num Num Expr Call NameLoad Call NameLoad NameLoad NameLoad Num Num Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareGt Call NameLoad NameLoad Num With Call NameLoad ListLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq Call AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad Call NameLoad NameLoad NameLoad Num Num Expr Call NameLoad Call NameLoad NameLoad NameLoad Num Num Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad With Call NameLoad ListLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Slice Slice Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad Call NameLoad NameLoad NameLoad Num Num Expr Call NameLoad Call NameLoad NameLoad NameLoad Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Num body Assign TupleStore NameStore NameStore TupleLoad Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult BinOpDiv Num AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad attr Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index AttributeLoad AttributeLoad NameLoad attr attr Return BinOpMult Num Call AttributeLoad NameLoad attr BinOpDiv NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Num body Assign TupleStore NameStore NameStore TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpSub Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore BinOpDiv NameLoad SubscriptLoad SubscriptLoad NameLoad Index AttributeLoad AttributeLoad NameLoad attr attr Index Num Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num Num Num AttributeLoad NameLoad attr attr Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num Num Num AttributeLoad NameLoad attr attr Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num Num Num AttributeLoad NameLoad attr attr Num Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num Num Num AttributeLoad NameLoad attr attr Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num Num Num AttributeLoad NameLoad attr attr Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num Num Num AttributeLoad NameLoad attr attr Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num Num Num AttributeLoad NameLoad attr attr Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num Num Num AttributeLoad NameLoad attr attr Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num Num Num AttributeLoad NameLoad attr attr Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Num Num Num attr Num Num attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assert Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Num Num Assert Call AttributeLoad NameLoad attr NameLoad Assert UnaryOpNot Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad BinOpMult NameLoad Num attr AttributeLoad NameLoad attr Assert Call AttributeLoad NameLoad attr NameLoad Assert UnaryOpNot Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore BinOpMult Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpPow Num Num Assert Call AttributeLoad NameLoad attr NameLoad Assert UnaryOpNot Call AttributeLoad NameLoad attr NameLoad keyword Num decorator_list If CompareEq NameLoad Str body ImportFrom alias Expr Call AttributeLoad NameLoad attr
N/A N/A warnings N/A numpy np numpy.testing assert_array_almost_equal assert_close numpy.testing assert_array_equal assert_raises assert_almost_equal N/A skimage skimage data skimage exposure skimage.exposure.exposure intensity_range skimage.color rgb2gray skimage.util.dtype dtype_range skimage._shared._warnings expected_warnings test_negative_overflow N/A N/A N/A N/A N/A im N/A N/A np array N/A -1 127 dtype N/A np int8 N/A N/A frequencies bin_centers N/A N/A exposure histogram im N/A N/A assert_array_equal bin_centers N/A N/A np arange -1 128 N/A N/A N/A frequencies N/A 0 1 N/A N/A N/A frequencies N/A -1 1 N/A N/A assert_array_equal N/A frequencies N/A 1 -1 0 N/A test_all_negative_image N/A N/A N/A N/A N/A im N/A N/A np array N/A -128 -1 dtype N/A np int8 N/A N/A frequencies bin_centers N/A N/A exposure histogram im N/A N/A assert_array_equal bin_centers N/A N/A np arange -128 0 N/A N/A N/A frequencies N/A 0 1 N/A N/A N/A frequencies N/A -1 1 N/A N/A assert_array_equal N/A frequencies N/A 1 -1 0 N/A N/A N/A N/A N/A np random seed 0 N/A test_img_int N/A N/A data camera N/A test_img N/A N/A skimage img_as_float test_img_int N/A test_img N/A N/A exposure rescale_intensity N/A N/A test_img 5.0 100 test_equalize_uint8_approx N/A N/A N/A N/A N/A Check integer bins used for uint8 images. N/A img_eq0 N/A N/A exposure equalize_hist test_img_int N/A img_eq1 N/A N/A exposure equalize_hist test_img_int nbins 3 N/A N/A N/A N/A np testing assert_allclose img_eq0 img_eq1 N/A test_equalize_ubyte N/A N/A N/A N/A N/A N/A expected_warnings N/A precision loss N/A N/A img N/A N/A skimage img_as_ubyte test_img N/A img_eq N/A N/A exposure equalize_hist img N/A N/A cdf bin_edges N/A N/A exposure cumulative_distribution img_eq N/A N/A check_cdf_slope cdf N/A test_equalize_float N/A N/A N/A N/A N/A img N/A N/A skimage img_as_float test_img N/A img_eq N/A N/A exposure equalize_hist img N/A N/A cdf bin_edges N/A N/A exposure cumulative_distribution img_eq N/A N/A check_cdf_slope cdf N/A test_equalize_masked N/A N/A N/A N/A N/A img N/A N/A skimage img_as_float test_img N/A mask N/A N/A np zeros N/A test_img shape N/A N/A mask N/A N/A 50 150 N/A 50 250 1 N/A img_mask_eq N/A N/A exposure equalize_hist img mask mask N/A img_eq N/A N/A exposure equalize_hist img N/A N/A cdf bin_edges N/A N/A exposure cumulative_distribution img_mask_eq N/A N/A check_cdf_slope cdf N/A N/A N/A N/A N/A img_eq img_mask_eq all N/A check_cdf_slope N/A N/A cdf N/A N/A N/A Slope of cdf which should equal 1 for an equalized histogram. N/A norm_intensity N/A N/A np linspace 0 1 N/A len cdf N/A N/A slope intercept N/A N/A np polyfit norm_intensity cdf 1 N/A N/A 0.9 slope 1.1 N/A test_intensity_range_uint8 N/A N/A N/A N/A N/A image N/A N/A np array N/A 0 1 dtype N/A np uint8 N/A input_and_expected N/A N/A image N/A 0 1 N/A dtype N/A 0 255 N/A N/A 10 20 N/A 10 20 N/A N/A range_values expected_values input_and_expected N/A N/A out N/A intensity_range image range_values range_values N/A N/A N/A assert_array_equal out expected_values N/A test_intensity_range_float N/A N/A N/A N/A N/A image N/A N/A np array N/A 0.1 0.2 dtype N/A np float64 N/A input_and_expected N/A N/A image N/A 0.1 0.2 N/A dtype N/A -1 1 N/A N/A 0.3 0.4 N/A 0.3 0.4 N/A N/A range_values expected_values input_and_expected N/A N/A out N/A intensity_range image range_values range_values N/A N/A N/A assert_array_equal out expected_values N/A test_intensity_range_clipped_float N/A N/A N/A N/A N/A image N/A N/A np array N/A 0.1 0.2 dtype N/A np float64 N/A out N/A intensity_range image range_values dtype clip_negative True N/A N/A assert_array_equal out N/A 0 1 N/A N/A uint10_max N/A N/A 2 10 1 N/A uint12_max N/A N/A 2 12 1 N/A uint14_max N/A N/A 2 14 1 N/A uint16_max N/A N/A 2 16 1 test_rescale_stretch N/A N/A N/A N/A N/A image N/A N/A np array N/A 51 102 153 dtype N/A np uint8 N/A out N/A N/A exposure rescale_intensity image N/A N/A N/A out dtype N/A np uint8 N/A N/A assert_close out N/A 0 127 255 N/A test_rescale_shrink N/A N/A N/A N/A N/A image N/A N/A np array N/A 51.0 102.0 153.0 N/A out N/A N/A exposure rescale_intensity image N/A N/A assert_close out N/A 0 0.5 1 N/A test_rescale_in_range N/A N/A N/A N/A N/A image N/A N/A np array N/A 51.0 102.0 153.0 N/A out N/A N/A exposure rescale_intensity image in_range N/A 0 255 N/A N/A assert_close out N/A 0.2 0.4 0.6 N/A test_rescale_in_range_clip N/A N/A N/A N/A N/A image N/A N/A np array N/A 51.0 102.0 153.0 N/A out N/A N/A exposure rescale_intensity image in_range N/A 0 102 N/A N/A assert_close out N/A 0.5 1 1 N/A test_rescale_out_range N/A N/A N/A N/A N/A image N/A N/A np array N/A -10 0 10 dtype N/A np int8 N/A out N/A N/A exposure rescale_intensity image out_range N/A 0 127 N/A N/A N/A out dtype N/A np int8 N/A N/A assert_close out N/A 0 63 127 N/A test_rescale_named_in_range N/A N/A N/A N/A N/A image N/A N/A np array N/A 0 uint10_max N/A uint10_max 100 dtype N/A np uint16 N/A out N/A N/A exposure rescale_intensity image in_range uint10 N/A N/A assert_close out N/A 0 uint16_max uint16_max N/A test_rescale_named_out_range N/A N/A N/A N/A N/A image N/A N/A np array N/A 0 uint16_max dtype N/A np uint16 N/A out N/A N/A exposure rescale_intensity image out_range uint10 N/A N/A assert_close out N/A 0 uint10_max N/A test_rescale_uint12_limits N/A N/A N/A N/A N/A image N/A N/A np array N/A 0 uint16_max dtype N/A np uint16 N/A out N/A N/A exposure rescale_intensity image out_range uint12 N/A N/A assert_close out N/A 0 uint12_max N/A test_rescale_uint14_limits N/A N/A N/A N/A N/A image N/A N/A np array N/A 0 uint16_max dtype N/A np uint16 N/A out N/A N/A exposure rescale_intensity image out_range uint14 N/A N/A assert_close out N/A 0 uint14_max N/A test_adapthist_scalar N/A N/A N/A N/A N/A Test a scalar uint8 image
     N/A img N/A N/A skimage img_as_ubyte N/A N/A data moon N/A adapted N/A N/A exposure equalize_adapthist img kernel_size 64 clip_limit 0.02 N/A N/A N/A N/A adapted min 0.0 N/A N/A N/A N/A adapted max 1.0 N/A N/A N/A img shape N/A adapted shape N/A full_scale N/A N/A N/A skimage exposure rescale_intensity N/A N/A skimage img_as_float img N/A assert_almost_equal N/A N/A np testing assert_almost_equal N/A N/A assert_almost_equal N/A peak_snr full_scale adapted 102.066 3 N/A N/A assert_almost_equal N/A norm_brightness_err full_scale adapted 0.038 3 N/A N/A img adapted N/A test_adapthist_grayscale N/A N/A N/A N/A N/A Test a grayscale float image
     N/A img N/A N/A skimage img_as_float N/A N/A data astronaut N/A img N/A rgb2gray img N/A img N/A N/A np dstack N/A img img img N/A N/A expected_warnings N/A precision loss|non-contiguous input deprecated N/A N/A adapted_old N/A N/A exposure equalize_adapthist img 10 9 clip_limit 0.001 nbins 128 N/A N/A expected_warnings N/A precision loss|non-contiguous input N/A N/A adapted N/A N/A exposure equalize_adapthist img kernel_size N/A 57 51 clip_limit 0.01 nbins 128 N/A N/A N/A img shape N/A adapted shape N/A N/A assert_almost_equal N/A peak_snr img adapted 102.078 3 N/A N/A assert_almost_equal N/A norm_brightness_err img adapted 0.0529 3 N/A N/A data adapted N/A test_adapthist_color N/A N/A N/A N/A N/A Test an RGB color uint16 image
     N/A img N/A N/A skimage img_as_uint N/A N/A data astronaut N/A N/A N/A warnings catch_warnings record True w N/A N/A N/A N/A warnings simplefilter always N/A N/A hist bin_centers N/A N/A exposure histogram img N/A N/A N/A len w 0 N/A N/A expected_warnings N/A precision loss N/A N/A adapted N/A N/A exposure equalize_adapthist img clip_limit 0.01 N/A assert_almost_equal N/A N/A np testing assert_almost_equal N/A N/A N/A N/A adapted min 0 N/A N/A N/A N/A adapted max 1.0 N/A N/A N/A img shape N/A adapted shape N/A full_scale N/A N/A N/A skimage exposure rescale_intensity img N/A N/A assert_almost_equal N/A peak_snr full_scale adapted 109.393 1 N/A N/A assert_almost_equal N/A norm_brightness_err full_scale adapted 0.02 2 N/A N/A data adapted N/A test_adapthist_alpha N/A N/A N/A N/A N/A Test an RGBA color image
     N/A img N/A N/A skimage img_as_float N/A N/A data astronaut N/A alpha N/A N/A np ones N/A N/A N/A img shape N/A 0 N/A N/A img shape N/A 1 dtype float N/A img N/A N/A np dstack N/A img alpha N/A N/A expected_warnings N/A precision loss N/A N/A adapted N/A N/A exposure equalize_adapthist img N/A N/A N/A adapted shape N/A img shape N/A img N/A img N/A N/A N/A N/A 3 N/A full_scale N/A N/A N/A skimage exposure rescale_intensity img N/A N/A N/A img shape N/A adapted shape N/A assert_almost_equal N/A N/A np testing assert_almost_equal N/A N/A assert_almost_equal N/A peak_snr full_scale adapted 109.393 2 N/A N/A assert_almost_equal N/A norm_brightness_err full_scale adapted 0.0248 3 N/A peak_snr N/A N/A img1 img2 N/A N/A N/A Peak signal to noise ratio of two images

    Parameters
    ----------
    img1 : array-like
    img2 : array-like

    Returns
    -------
    peak_snr : float
        Peak signal to noise ratio
     N/A N/A N/A img1 ndim 3 N/A N/A N/A img1 img2 N/A N/A rgb2gray N/A N/A img1 copy N/A rgb2gray N/A N/A img2 copy N/A img1 N/A N/A skimage img_as_float img1 N/A img2 N/A N/A skimage img_as_float img2 N/A mse N/A N/A 1.0 N/A img1 size N/A N/A N/A N/A np square N/A img1 img2 sum N/A N/A _ max_ N/A dtype_range N/A N/A N/A img1 dtype type N/A N/A 20 N/A N/A np log N/A max_ mse N/A norm_brightness_err N/A N/A img1 img2 N/A N/A N/A Normalized Absolute Mean Brightness Error between two images

    Parameters
    ----------
    img1 : array-like
    img2 : array-like

    Returns
    -------
    norm_brightness_error : float
        Normalized absolute mean brightness error
     N/A N/A N/A img1 ndim 3 N/A N/A N/A img1 img2 N/A N/A rgb2gray img1 N/A rgb2gray img2 N/A ambe N/A N/A np abs N/A N/A N/A img1 mean N/A N/A img2 mean N/A nbe N/A ambe N/A N/A dtype_range N/A N/A N/A img1 dtype type N/A 1 N/A nbe N/A test_adjust_gamma_one N/A N/A N/A N/A N/A Same image should be returned for gamma equal to one N/A image N/A N/A N/A np random uniform 0 255 N/A 8 8 N/A result N/A N/A exposure adjust_gamma image 1 N/A N/A assert_array_equal result image N/A test_adjust_gamma_zero N/A N/A N/A N/A N/A White image should be returned for gamma equal to zero N/A image N/A N/A N/A np random uniform 0 255 N/A 8 8 N/A result N/A N/A exposure adjust_gamma image 0 N/A dtype N/A N/A image dtype type N/A N/A assert_array_equal result N/A N/A dtype_range N/A dtype N/A 1 N/A test_adjust_gamma_less_one N/A N/A N/A N/A N/A Verifying the output with expected results for gamma
    correction with gamma equal to half N/A image N/A N/A N/A N/A np arange 0 255 4 N/A np uint8 reshape 8 8 N/A expected N/A N/A np array N/A N/A 0 31 45 55 63 71 78 84 N/A 90 95 100 105 110 115 119 123 N/A 127 131 135 139 142 146 149 153 N/A 156 159 162 165 168 171 174 177 N/A 180 183 186 188 191 194 196 199 N/A 201 204 206 209 211 214 216 218 N/A 221 223 225 228 230 232 234 236 N/A 238 241 243 245 247 249 251 253 dtype N/A np uint8 N/A result N/A N/A exposure adjust_gamma image 0.5 N/A N/A assert_array_equal result expected N/A test_adjust_gamma_greater_one N/A N/A N/A N/A N/A Verifying the output with expected results for gamma
    correction with gamma equal to two N/A image N/A N/A N/A N/A np arange 0 255 4 N/A np uint8 reshape 8 8 N/A expected N/A N/A np array N/A N/A 0 0 0 0 1 1 2 3 N/A 4 5 6 7 9 10 12 14 N/A 16 18 20 22 25 27 30 33 N/A 36 39 42 45 49 52 56 60 N/A 64 68 72 76 81 85 90 95 N/A 100 105 110 116 121 127 132 138 N/A 144 150 156 163 169 176 182 189 N/A 196 203 211 218 225 233 241 249 dtype N/A np uint8 N/A result N/A N/A exposure adjust_gamma image 2 N/A N/A assert_array_equal result expected N/A test_adjust_gamma_neggative N/A N/A N/A N/A N/A image N/A N/A N/A N/A np arange 0 255 4 N/A np uint8 reshape 8 8 N/A N/A assert_raises ValueError N/A exposure adjust_gamma image -1 N/A test_adjust_log N/A N/A N/A N/A N/A Verifying the output with expected results for logarithmic
    correction with multiplier constant multiplier equal to unity N/A image N/A N/A N/A N/A np arange 0 255 4 N/A np uint8 reshape 8 8 N/A expected N/A N/A np array N/A N/A 0 5 11 16 22 27 33 38 N/A 43 48 53 58 63 68 73 77 N/A 82 86 91 95 100 104 109 113 N/A 117 121 125 129 133 137 141 145 N/A 149 153 157 160 164 168 172 175 N/A 179 182 186 189 193 196 199 203 N/A 206 209 213 216 219 222 225 228 N/A 231 234 238 241 244 246 249 252 dtype N/A np uint8 N/A result N/A N/A exposure adjust_log image 1 N/A N/A assert_array_equal result expected N/A test_adjust_inv_log N/A N/A N/A N/A N/A Verifying the output with expected results for inverse logarithmic
    correction with multiplier constant multiplier equal to unity N/A image N/A N/A N/A N/A np arange 0 255 4 N/A np uint8 reshape 8 8 N/A expected N/A N/A np array N/A N/A 0 2 5 8 11 14 17 20 N/A 23 26 29 32 35 38 41 45 N/A 48 51 55 58 61 65 68 72 N/A 76 79 83 87 90 94 98 102 N/A 106 110 114 118 122 126 130 134 N/A 138 143 147 151 156 160 165 170 N/A 174 179 184 188 193 198 203 208 N/A 213 218 224 229 234 239 245 250 dtype N/A np uint8 N/A result N/A N/A exposure adjust_log image 1 True N/A N/A assert_array_equal result expected N/A test_adjust_sigmoid_cutoff_one N/A N/A N/A N/A N/A Verifying the output with expected results for sigmoid correction
    with cutoff equal to one and gain of 5 N/A image N/A N/A N/A N/A np arange 0 255 4 N/A np uint8 reshape 8 8 N/A expected N/A N/A np array N/A N/A 1 1 1 2 2 2 2 2 N/A 3 3 3 4 4 4 5 5 N/A 5 6 6 7 7 8 9 10 N/A 10 11 12 13 14 15 16 18 N/A 19 20 22 24 25 27 29 32 N/A 34 36 39 41 44 47 50 54 N/A 57 61 64 68 72 76 80 85 N/A 89 94 99 104 108 113 118 123 dtype N/A np uint8 N/A result N/A N/A exposure adjust_sigmoid image 1 5 N/A N/A assert_array_equal result expected N/A test_adjust_sigmoid_cutoff_zero N/A N/A N/A N/A N/A Verifying the output with expected results for sigmoid correction
    with cutoff equal to zero and gain of 10 N/A image N/A N/A N/A N/A np arange 0 255 4 N/A np uint8 reshape 8 8 N/A expected N/A N/A np array N/A N/A 127 137 147 156 166 175 183 191 N/A 198 205 211 216 221 225 229 232 N/A 235 238 240 242 244 245 247 248 N/A 249 250 250 251 251 252 252 253 N/A 253 253 253 253 254 254 254 254 N/A 254 254 254 254 254 254 254 254 N/A 254 254 254 254 254 254 254 254 N/A 254 254 254 254 254 254 254 254 dtype N/A np uint8 N/A result N/A N/A exposure adjust_sigmoid image 0 10 N/A N/A assert_array_equal result expected N/A test_adjust_sigmoid_cutoff_half N/A N/A N/A N/A N/A Verifying the output with expected results for sigmoid correction
    with cutoff equal to half and gain of 10 N/A image N/A N/A N/A N/A np arange 0 255 4 N/A np uint8 reshape 8 8 N/A expected N/A N/A np array N/A N/A 1 1 2 2 3 3 4 5 N/A 5 6 7 9 10 12 14 16 N/A 19 22 25 29 34 39 44 50 N/A 57 64 72 80 89 99 108 118 N/A 128 138 148 158 167 176 184 192 N/A 199 205 211 217 221 226 229 233 N/A 236 238 240 242 244 246 247 248 N/A 249 250 250 251 251 252 252 253 dtype N/A np uint8 N/A result N/A N/A exposure adjust_sigmoid image 0.5 10 N/A N/A assert_array_equal result expected N/A test_adjust_inv_sigmoid_cutoff_half N/A N/A N/A N/A N/A Verifying the output with expected results for inverse sigmoid
    correction with cutoff equal to half and gain of 10 N/A image N/A N/A N/A N/A np arange 0 255 4 N/A np uint8 reshape 8 8 N/A expected N/A N/A np array N/A N/A 253 253 252 252 251 251 250 249 N/A 249 248 247 245 244 242 240 238 N/A 235 232 229 225 220 215 210 204 N/A 197 190 182 174 165 155 146 136 N/A 126 116 106 96 87 78 70 62 N/A 55 49 43 37 33 28 25 21 N/A 18 16 14 12 10 8 7 6 N/A 5 4 4 3 3 2 2 1 dtype N/A np uint8 N/A result N/A N/A exposure adjust_sigmoid image 0.5 10 True N/A N/A assert_array_equal result expected N/A test_negative N/A N/A N/A N/A N/A image N/A N/A N/A N/A N/A N/A np arange -10 245 4 reshape 8 8 astype N/A np double N/A N/A assert_raises ValueError N/A exposure adjust_gamma image N/A test_is_low_contrast N/A N/A N/A N/A N/A image N/A N/A np linspace 0 0.04 100 N/A N/A N/A exposure is_low_contrast image N/A N/A image N/A -1 1 N/A N/A N/A exposure is_low_contrast image N/A N/A N/A N/A exposure is_low_contrast image upper_percentile 100 N/A image N/A N/A N/A image 255 astype N/A np uint8 N/A N/A N/A exposure is_low_contrast image N/A N/A N/A N/A exposure is_low_contrast image upper_percentile 100 N/A image N/A N/A N/A image astype N/A np uint16 N/A 2 8 N/A N/A N/A exposure is_low_contrast image N/A N/A N/A N/A exposure is_low_contrast image upper_percentile 100 N/A N/A N/A __name__ __main__ N/A numpy testing N/A N/A N/A testing run_module_suite