import sys, pylab
import neuroimaging.core.image as image
import neuroimaging.ui.visualization.viewer as viewer

x = image.Image(sys.argv[1])
v = viewer.BoxViewer(x)

if len(sys.argv) == 3:
    m, M = map(float, sys.argv[1:])
    v.m = m
    v.M = M

v.draw()
pylab.show()

import sys, pylab
import neuroimaging.core.image as image
import neuroimaging.ui.visualization.viewer as viewer

x = image.image.Image(sys.argv[1])
v = viewer.BoxViewer(x)

if len(sys.argv) == 3:
    m, M = map(float, sys.argv[1:])
    v.m = m
    v.M = M

v.draw()
pylab.show()

use image.image, not just image