<s> import mahotas <EOL> import numpy as np <EOL> from pylab import imshow , gray , show , subplot <EOL> from os import path <EOL> lena_image = path . join ( <EOL> path . dirname ( path . abspath ( __file__ ) ) , <EOL> '<STR_LIT:data>' , <EOL> '<STR_LIT>' ) <EOL> photo = mahotas . imread ( lena_image , as_grey = True ) <EOL> photo = photo . astype ( np . uint8 ) <EOL> gray ( ) <EOL> subplot ( <NUM_LIT> ) <EOL> imshow ( photo ) <EOL> edge_sobel = mahotas . sobel ( photo ) <EOL> subplot ( <NUM_LIT> ) <EOL> imshow ( edge_sobel ) <EOL> edge_dog = mahotas . dog ( photo ) <EOL> subplot ( <NUM_LIT> ) <EOL> imshow ( edge_dog ) <EOL> show ( ) </s>
