BUG: Fix imports for Python 3.2.

This commit is contained in:
Stefan van der Walt
2012-03-03 11:18:16 -08:00
parent 694fb1a8d7
commit e99f18be5a
14 changed files with 34 additions and 33 deletions
+1 -4
View File
@@ -1,4 +1 @@
from colorconv import *
from .colorconv import *
+1 -1
View File
@@ -1 +1 @@
from draw import *
from .draw import *
+2 -2
View File
@@ -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
+3 -3
View File
@@ -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
+7 -7
View File
@@ -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
+1 -1
View File
@@ -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):
+3 -3
View File
@@ -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
View File
@@ -1 +1 @@
from plugin import *
from .plugin import *
+2 -2
View File
@@ -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()
+2 -2
View File
@@ -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
View File
@@ -1 +1 @@
from find_contours import find_contours
from .find_contours import find_contours
+4 -4
View File
@@ -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
View File
@@ -1 +1 @@
from random_walker_segmentation import random_walker
from .random_walker_segmentation import random_walker
+5 -1
View File
@@ -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