Upgrading scikit-image 0.13 to 0.14
Breaking0.13.1 → 0.14.5Breaking1Changed2Fixed5Other11
BreakingUpgrade verdict
1 breaking change.
In plain terms
- The local maxima detector now gives you true/false values instead of 0/1 byte values, so code that expects numbers may need adjusting.
Must act 1 item needs code or config changes
Requires Python >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.* from 0.14.5 (none stated before).
What you must change
Breaking1
morphology.local_maxima now returns a boolean array instead of uint8.
morphology.local_maximaAPI changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- removed:
variable data_dir - removed:
variable pkg_dir - added:
export data_dir - added:
export dtype_limits - added:
export img_as_bool - added:
export img_as_float - added:
export img_as_float32 - added:
export img_as_float64 - added:
export img_as_int - added:
export img_as_ubyte - added:
export img_as_uint - added:
export lookfor
- added:
export rgb2ydbdr - added:
export ydbdr2rgb
- added:
function rgb2ydbdr(rgb) - added:
function ydbdr2rgb(ydbdr) - added:
variable rgb_from_ydbdr - added:
variable ydbdr_from_rgb
- changed:
function load(f, as_grey=…) → function load(f, as_gray=…, as_grey=…) - added:
export binary_blobs - added:
function lfw_subset() - added:
variable data_dir
- added:
export random_shapes - added:
export rectangle
- changed:
function set_color(img, coords, color, alpha=…) → function set_color(image, coords, color, alpha=…) - added:
function rectangle(start, end=…, extent=…, shape=…)
- changed:
method TestSave.test_imsave_roundtrip() → method TestSave.test_imsave_roundtrip(shape, dtype) - added:
field TestSave.dtypes - added:
field TestSave.shapes
- changed:
method FileHandle.read_array(dtype, count=…, sep=…) → method FileHandle.read_array(dtype, count=…)
- added:
export draw_haar_like_feature - added:
export haar_like_feature - added:
export haar_like_feature_coord
- changed:
function hessian_matrix_det(image, sigma=…) → function hessian_matrix_det(image, sigma=…, approximate=…) - changed:
function hessian_matrix_eigvals(Hxx, Hxy, Hyy) → function hessian_matrix_eigvals(H_elems, Hxy=…, Hyy=…, Hxx=…)
- added:
function draw_haar_like_feature(image, r, c, width, height, feature_coord, color_positive_block=…, color_negative_block=…, alpha=…, max_n_features=…, random_state=…) - added:
function haar_like_feature(int_image, r, c, width, height, feature_type=…, feature_coord=…) - added:
function haar_like_feature_coord(width, height, feature_type=…) - added:
variable FEATURE_TYPE
- changed:
function match_descriptors(descriptors1, descriptors2, metric=…, p=…, max_distance=…, cross_check=…) → function match_descriptors(descriptors1, descriptors2, metric=…, p=…, max_distance=…, cross_check=…, max_ratio=…)
- changed:
function draw_multiblock_lbp(img, r, c, width, height, lbp_code=…, color_greater_block=…, color_less_block=…, alpha=…) → function draw_multiblock_lbp(image, r, c, width, height, lbp_code=…, color_greater_block=…, color_less_block=…, alpha=…)
- changed:
function plot_matches(ax, image1, image2, keypoints1, keypoints2, matches, keypoints_color=…, matches_color=…, only_matches=…) → function plot_matches(ax, image1, image2, keypoints1, keypoints2, matches, keypoints_color=…, matches_color=…, only_matches=…, alignment=…)
- added:
export apply_hysteresis_threshold - added:
export threshold_local
- added:
function apply_hysteresis_threshold(image, low, high) - added:
function threshold_local(image, block_size, method=…, offset=…, mode=…, param=…, cval=…)
- added:
export manual_lasso_segmentation - added:
export manual_polygon_segmentation
- changed:
function show_rag(labels, rag, img, border_color=…, edge_width=…, edge_cmap=…, img_cmap=…, in_place=…, ax=…) → function show_rag(labels, rag, image, border_color=…, edge_width=…, edge_cmap=…, img_cmap=…, in_place=…, ax=…)
- added:
function manual_lasso_segmentation(image, alpha=…, return_all=…) - added:
function manual_polygon_segmentation(image, alpha=…, return_all=…) - added:
variable LEFT_CLICK - added:
variable RIGHT_CLICK
- removed:
export LineModel - removed:
export marching_cubes - removed:
export structural_similarity - added:
export moments_coords - added:
export moments_coords_central
- removed:
class LineModel(BaseModel) - removed:
constructor LineModel() - removed:
method LineModel.estimate(data) - removed:
method LineModel.predict_x(y, params=…) - removed:
method LineModel.predict_y(x, params=…) - removed:
method LineModel.residuals(data) - changed:
method LineModelND.residuals(data) → method LineModelND.residuals(data, params=…)
- changed:
function profile_line(img, src, dst, linewidth=…, order=…, mode=…, cval=…) → function profile_line(image, src, dst, linewidth=…, order=…, mode=…, cval=…)
- changed:
function compare_psnr(im_true, im_test, data_range=…, dynamic_range=…) → function compare_psnr(im_true, im_test, data_range=…)
- changed:
function convex_hull_image(image) → function convex_hull_image(image, offset_coordinates=…, tolerance=…)
- changed:
function h_maxima(img, h, selem=…) → function h_maxima(image, h, selem=…) - changed:
function h_minima(img, h, selem=…) → function h_minima(image, h, selem=…) - changed:
function local_maxima(img, selem=…) → function local_maxima(image, selem=…, connectivity=…, indices=…, allow_borders=…) - changed:
function local_minima(img, selem=…) → function local_minima(image, selem=…, connectivity=…, indices=…, allow_borders=…)
- changed:
function remove_small_holes(ar, min_size=…, connectivity=…, in_place=…) → function remove_small_holes(ar, area_threshold=…, connectivity=…, in_place=…, min_size=…)
- removed:
variable nl_means_denoising - added:
export cycle_spin - added:
export estimate_sigma
- changed:
function inpaint_biharmonic(img, mask, multichannel=…) → function inpaint_biharmonic(image, mask, multichannel=…)
- changed:
function denoise_nl_means(image, patch_size=…, patch_distance=…, h=…, multichannel=…, fast_mode=…) → function denoise_nl_means(image, patch_size=…, patch_distance=…, h=…, multichannel=…, fast_mode=…, sigma=…)
- added:
export chan_vese - added:
export checkerboard_level_set - added:
export circle_level_set - added:
export inverse_gaussian_gradient - added:
export morphological_chan_vese - added:
export morphological_geodesic_active_contour
- added:
function checkerboard_level_set(image_shape, square_size=…) - added:
function circle_level_set(image_shape, center=…, radius=…) - added:
function inverse_gaussian_gradient(image, alpha=…, sigma=…) - added:
function morphological_chan_vese(image, iterations, init_level_set=…, smoothing=…, lambda1=…, lambda2=…, iter_callback=…) - added:
function morphological_geodesic_active_contour(gimage, iterations, init_level_set=…, smoothing=…, threshold=…, balloon=…, iter_callback=…)
- added:
variable cg
- changed:
function hough_ellipse(img, threshold=…, accuracy=…, min_size=…, max_size=…) → function hough_ellipse(image, threshold=…, accuracy=…, min_size=…, max_size=…) - changed:
function hough_line(img, theta=…) → function hough_line(image, theta=…) - changed:
function probabilistic_hough_line(img, threshold=…, line_length=…, line_gap=…, theta=…) → function probabilistic_hough_line(image, threshold=…, line_length=…, line_gap=…, theta=…, seed=…)
- changed:
function integral_image(img) → function integral_image(image) - changed:
function integrate(ii, start, end, *args) → function integrate(ii, start, end)
- changed:
function pyramid_expand(image, upscale=…, sigma=…, order=…, mode=…, cval=…) → function pyramid_expand(image, upscale=…, sigma=…, order=…, mode=…, cval=…, multichannel=…) - changed:
function pyramid_gaussian(image, max_layer=…, downscale=…, sigma=…, order=…, mode=…, cval=…) → function pyramid_gaussian(image, max_layer=…, downscale=…, sigma=…, order=…, mode=…, cval=…, multichannel=…) - changed:
function pyramid_laplacian(image, max_layer=…, downscale=…, sigma=…, order=…, mode=…, cval=…) → function pyramid_laplacian(image, max_layer=…, downscale=…, sigma=…, order=…, mode=…, cval=…, multichannel=…) - changed:
function pyramid_reduce(image, downscale=…, sigma=…, order=…, mode=…, cval=…) → function pyramid_reduce(image, downscale=…, sigma=…, order=…, mode=…, cval=…, multichannel=…)
- changed:
function seam_carve(img, energy_map, mode, num, border=…, force_copy=…) → function seam_carve(image, energy_map, mode, num, border=…, force_copy=…)
- added:
export img_as_float32 - added:
export img_as_float64 - added:
export montage - added:
export montage2d
- added:
function img_as_float32(image, force_copy=…) - added:
function img_as_float64(image, force_copy=…)
- added:
function lookfor(what)
- removed:
function montage2d(arr_in, fill=…, rescale_intensity=…, grid_shape=…)