mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-11 23:42:45 +08:00
BUG: Fix imports for Python 3.2.
This commit is contained in:
@@ -1,4 +1 @@
|
||||
from colorconv import *
|
||||
|
||||
|
||||
|
||||
from .colorconv import *
|
||||
|
||||
@@ -1 +1 @@
|
||||
from draw import *
|
||||
from .draw import *
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
from exposure import histogram, equalize, cumulative_distribution
|
||||
from exposure import rescale_intensity
|
||||
from .exposure import histogram, equalize, cumulative_distribution
|
||||
from .exposure import rescale_intensity
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from hog import hog
|
||||
from greycomatrix import greycomatrix, greycoprops
|
||||
from peak import peak_local_max
|
||||
from .hog import hog
|
||||
from .greycomatrix import greycomatrix, greycoprops
|
||||
from .peak import peak_local_max
|
||||
from .harris import harris
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from lpi_filter import *
|
||||
from ctmf import median_filter
|
||||
from canny import canny
|
||||
from edges import sobel, hsobel, vsobel, hprewitt, vprewitt, prewitt
|
||||
from tv_denoise import tv_denoise
|
||||
from rank_order import rank_order
|
||||
from thresholding import threshold_otsu
|
||||
from .lpi_filter import *
|
||||
from .ctmf import median_filter
|
||||
from .canny import canny
|
||||
from .edges import sobel, hsobel, vsobel, hprewitt, vprewitt, prewitt
|
||||
from .tv_denoise import tv_denoise
|
||||
from .rank_order import rank_order
|
||||
from .thresholding import threshold_otsu
|
||||
|
||||
@@ -13,7 +13,7 @@ Original author: Lee Kamentsky
|
||||
|
||||
import numpy as np
|
||||
from . import _ctmf
|
||||
from rank_order import rank_order
|
||||
from .rank_order import rank_order
|
||||
|
||||
|
||||
def median_filter(image, radius=2, mask=None, percent=50):
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
try:
|
||||
from spath import shortest_path
|
||||
from mcp import MCP, MCP_Geometric, route_through_array
|
||||
from .spath import shortest_path
|
||||
from .mcp import MCP, MCP_Geometric, route_through_array
|
||||
except ImportError:
|
||||
print """*** The cython extensions have not been compiled. Run
|
||||
|
||||
python setup.py build_ext -i
|
||||
|
||||
in the source directory to build in-place. Please refer to INSTALL.txt
|
||||
for further detail."""
|
||||
for further detail."""
|
||||
|
||||
@@ -1 +1 @@
|
||||
from plugin import *
|
||||
from .plugin import *
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from util import prepare_for_display, window_manager, GuiLockError
|
||||
from .util import prepare_for_display, window_manager, GuiLockError
|
||||
import numpy as np
|
||||
import sys
|
||||
|
||||
@@ -134,7 +134,7 @@ def imshow(arr, fancy=False):
|
||||
if not fancy:
|
||||
iw = ImageWindow(arr, window_manager)
|
||||
else:
|
||||
from skivi import SkiviImageWindow
|
||||
from .skivi import SkiviImageWindow
|
||||
iw = SkiviImageWindow(arr, window_manager)
|
||||
|
||||
iw.show()
|
||||
|
||||
@@ -22,8 +22,8 @@ from PyQt4.QtGui import (QApplication, QMainWindow, QImage, QPixmap,
|
||||
QLabel, QWidget, QVBoxLayout, QSlider,
|
||||
QPainter, QColor, QFrame, QLayoutItem)
|
||||
|
||||
from q_color_mixer import MixerPanel
|
||||
from q_histogram import QuadHistogram
|
||||
from .q_color_mixer import MixerPanel
|
||||
from .q_histogram import QuadHistogram
|
||||
|
||||
|
||||
class ImageLabel(QLabel):
|
||||
|
||||
@@ -1 +1 @@
|
||||
from find_contours import find_contours
|
||||
from .find_contours import find_contours
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from grey import *
|
||||
from selem import *
|
||||
from .grey import *
|
||||
from .selem import *
|
||||
from .ccomp import label
|
||||
from watershed import watershed, is_local_maximum
|
||||
from skeletonize import skeletonize, medial_axis
|
||||
from .watershed import watershed, is_local_maximum
|
||||
from .skeletonize import skeletonize, medial_axis
|
||||
from .convex_hull import convex_hull_image
|
||||
|
||||
@@ -1 +1 @@
|
||||
from random_walker_segmentation import random_walker
|
||||
from .random_walker_segmentation import random_walker
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
__all__ = ['hough', 'probabilistic_hough']
|
||||
|
||||
from itertools import izip
|
||||
try:
|
||||
from itertools import izip
|
||||
except ImportError:
|
||||
izip = zip
|
||||
|
||||
import numpy as np
|
||||
from ._hough_transform import _probabilistic_hough
|
||||
|
||||
|
||||
Reference in New Issue
Block a user