From 086d8c667b02dea8c1238053d3b8d857c2123706 Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 29 May 2015 23:03:12 +0200 Subject: [PATCH] imports now inside of the file --- skimage/feature/texture.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skimage/feature/texture.py b/skimage/feature/texture.py index 60f185a9..3d82bf44 100644 --- a/skimage/feature/texture.py +++ b/skimage/feature/texture.py @@ -6,10 +6,7 @@ import numpy as np from .._shared.utils import assert_nD from ._texture import _glcm_loop, _local_binary_pattern -# My imports below from ..transform import integrate -import matplotlib.patches as patches -import matplotlib.pyplot as plt def greycomatrix(image, distances, angles, levels=256, symmetric=False, @@ -378,6 +375,9 @@ def multiblock_local_binary_pattern(int_image, x, y, width, height): def visualize_multiblock_lbp(img, x, y, width, height, lbp_code=0): + import matplotlib.patches as patches + import matplotlib.pyplot as plt + plt.imshow(img) img_desc = plt.gca() plt.set_cmap('gray')