Skip to content

Commit 910b4a0

Browse files
bvssvnitheotherphil
authored andcommitted
Updated dependencies (#273)
- Bumped to 0.16.0
1 parent 5fdfa96 commit 910b4a0

15 files changed

+23
-21
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "imageproc"
3-
version = "0.15.0"
3+
version = "0.16.0"
44
authors = ["theotherphil"]
55
license = "MIT"
66
description = "Image processing operations"
@@ -10,12 +10,12 @@ exclude = ["examples/*.ttf"]
1010

1111
[dependencies]
1212
conv = "0.3.1"
13-
image = "0.19.0"
13+
image = "0.20.0"
1414
itertools = "0.7.0"
1515
nalgebra = "0.16.0"
16-
num = "0.1.27"
16+
num = "0.2.0"
1717
quickcheck = "0.6"
18-
rand = "0.4"
18+
rand = "0.4.0"
1919
rusttype = "0.5"
2020
rayon = "1.0"
2121

src/affine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Functions for affine transformations of images.
22
3-
use image::{Pixel, GenericImage, ImageBuffer};
3+
use image::{Pixel, GenericImage, GenericImageView, ImageBuffer};
44
use definitions::{Clamp, HasBlack, Image};
55
use math::cast;
66
use nalgebra::{Affine2, Point2};

src/corners.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Functions for detecting corners, also known as interest points.
22
3-
use image::{GrayImage, GenericImage};
3+
use image::{GrayImage, GenericImageView};
44
use definitions::{Position, Score};
55

66
/// A location and score for a detected corner.

src/definitions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::{u8, u16, i16};
1313
// TODO: This produces a compiler warning about trait bounds
1414
// TODO: not being enforced in type definitions. In this case
1515
// TODO: they are. Can we get rid of the warning?
16-
pub type Image<P: Pixel> = ImageBuffer<P, Vec<P::Subpixel>>;
16+
pub type Image<P: Pixel> = ImageBuffer<P, Vec<<P as Pixel>::Subpixel>>;
1717

1818
/// Pixels which have a named Black value.
1919
pub trait HasBlack {

src/distance_transform.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
use std::cmp::min;
55
use std::{u8, f64};
6-
use image::{GenericImage, GrayImage, ImageBuffer, Luma};
6+
use image::{GenericImage, GenericImageView, GrayImage, ImageBuffer, Luma};
77
use definitions::Image;
88

99
/// How to measure distance between coordinates.

src/edges.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Functions for detecting edges in images.
22
33
use std::f32;
4-
use image::{GenericImage, GrayImage, ImageBuffer, Luma};
4+
use image::{GenericImageView, GrayImage, ImageBuffer, Luma};
55
use gradients::{vertical_sobel, horizontal_sobel};
66
use definitions::{HasWhite, HasBlack};
77
use filter::gaussian_blur_f32;

src/filter/median.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use image::{GenericImage, Pixel};
1+
use image::{GenericImageView, Pixel};
22
use definitions::Image;
33
use std::cmp::{min, max};
44

src/filter/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
mod median;
44
pub use self::median::median_filter;
55

6-
use image::{GrayImage, GenericImage, ImageBuffer, Luma, Pixel, Primitive};
6+
use image::{GrayImage, GenericImage, GenericImageView, ImageBuffer, Luma, Pixel, Primitive};
77

88
use integral_image::{column_running_sum, row_running_sum};
99
use map::{WithChannel, ChannelMap};

src/gradients.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Functions for computing gradients of image intensities.
22
3-
use image::{GenericImage, GrayImage, Luma, Pixel};
3+
use image::{GenericImage, GenericImageView, GrayImage, Luma, Pixel};
44
use definitions::{HasBlack, Image};
55
use filter::filter3x3;
66
use itertools::multizip;

src/haar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! [Haar-like features]: https://en.wikipedia.org/wiki/Haar-like_features
44
55
use definitions::{HasBlack, HasWhite, Image};
6-
use image::{GenericImage, ImageBuffer, Luma};
6+
use image::{GenericImage, GenericImageView, ImageBuffer, Luma};
77
use itertools::Itertools;
88
use std::marker::PhantomData;
99
use std::ops::Range;

0 commit comments

Comments
 (0)