<s> """<STR_LIT>""" <EOL> from skimage import data <EOL> from skimage . feature import blob_dog , blob_log , blob_doh <EOL> from math import sqrt <EOL> from skimage . color import rgb2gray <EOL> import matplotlib . pyplot as plt <EOL> image = data . hubble_deep_field ( ) [ <NUM_LIT:0> : <NUM_LIT> , <NUM_LIT:0> : <NUM_LIT> ] <EOL> image_gray = rgb2gray ( image ) <EOL> blobs_log = blob_log ( image_gray , max_sigma = <NUM_LIT:30> , num_sigma = <NUM_LIT:10> , threshold = <NUM_LIT> ) <EOL> blobs_log [ : , <NUM_LIT:2> ] = blobs_log [ : , <NUM_LIT:2> ] * sqrt ( <NUM_LIT:2> ) <EOL> blobs_dog = blob_dog ( image_gray , max_sigma = <NUM_LIT:30> , threshold = <NUM_LIT> ) <EOL> blobs_dog [ : , <NUM_LIT:2> ] = blobs_dog [ : , <NUM_LIT:2> ] * sqrt ( <NUM_LIT:2> ) <EOL> blobs_doh = blob_doh ( image_gray , max_sigma = <NUM_LIT:30> , threshold = <NUM_LIT> ) <EOL> blobs_list = [ blobs_log , blobs_dog , blobs_doh ] <EOL> colors = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> titles = [ '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' ] <EOL> sequence = zip ( blobs_list , colors , titles ) <EOL> fig , axes = plt . subplots ( <NUM_LIT:1> , <NUM_LIT:3> , figsize = ( <NUM_LIT> , <NUM_LIT:4> ) , sharex = True , sharey = True , <EOL> subplot_kw = { '<STR_LIT>' : '<STR_LIT>' } ) <EOL> plt . tight_layout ( ) <EOL> axes = axes . ravel ( ) <EOL> for blobs , color , title in sequence : <EOL> ax = axes [ <NUM_LIT:0> ] <EOL> axes = axes [ <NUM_LIT:1> : ] <EOL> ax . set_title ( title ) <EOL> ax . imshow ( image , interpolation = '<STR_LIT>' ) <EOL> ax . set_axis_off ( ) <EOL> for blob in blobs : <EOL> y , x , r = blob <EOL> c = plt . Circle ( ( x , y ) , r , color = color , linewidth = <NUM_LIT:2> , fill = False ) <EOL> ax . add_patch ( c ) <EOL> plt . show ( ) </s>
