From 1fd34b47515b6c5d462df2c16d4060877a3f9c5f Mon Sep 17 00:00:00 2001 From: Neeraj Gangwar Date: Tue, 11 Mar 2014 21:53:47 +0530 Subject: [PATCH] added description and exmaple for new functionality of fetching images of url --- skimage/novice/_novice.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/skimage/novice/_novice.py b/skimage/novice/_novice.py index 0e3a9fd1..f3cce638 100644 --- a/skimage/novice/_novice.py +++ b/skimage/novice/_novice.py @@ -169,7 +169,7 @@ class Picture(object): Attributes ---------- path : str - Path to an image file to load. + Path to an image file to load / URL of an image array : array Raw RGB image data [0-255], with origin at top-left. xy_array : array @@ -181,6 +181,8 @@ class Picture(object): >>> from skimage import novice >>> from skimage import data >>> picture = novice.open(data.data_dir + '/chelsea.png') + >>> picture = novice.open('http://static3.businessinsider.com/image/ + 52a0bbfd6bb3f7961363819e/the-most-amazing-satellite-images-of-the-year.jpg') Create a blank 100 pixel wide, 200 pixel tall white image >>> pic = Picture.from_size((100, 200), color=(255, 255, 255))