<s> """<STR_LIT>""" <EOL> from skimage import data , io , segmentation , color <EOL> from skimage . future import graph <EOL> from matplotlib import pyplot as plt <EOL> img = data . coffee ( ) <EOL> labels1 = segmentation . slic ( img , compactness = <NUM_LIT:30> , n_segments = <NUM_LIT> ) <EOL> out1 = color . label2rgb ( labels1 , img , kind = '<STR_LIT>' ) <EOL> g = graph . rag_mean_color ( img , labels1 , mode = '<STR_LIT>' ) <EOL> labels2 = graph . cut_normalized ( labels1 , g ) <EOL> out2 = color . label2rgb ( labels2 , img , kind = '<STR_LIT>' ) <EOL> plt . figure ( ) <EOL> io . imshow ( out1 ) <EOL> plt . figure ( ) <EOL> io . imshow ( out2 ) <EOL> io . show ( ) </s>
