<s> """<STR_LIT>""" <EOL> import numpy as np <EOL> import matplotlib . pyplot as plt <EOL> from skimage import data <EOL> from skimage . feature import match_template <EOL> image = data . coins ( ) <EOL> coin = image [ <NUM_LIT> : <NUM_LIT> , <NUM_LIT> : <NUM_LIT> ] <EOL> result = match_template ( image , coin ) <EOL> ij = np . unravel_index ( np . argmax ( result ) , result . shape ) <EOL> x , y = ij [ : : - <NUM_LIT:1> ] <EOL> fig = plt . figure ( figsize = ( <NUM_LIT:8> , <NUM_LIT:3> ) ) <EOL> ax1 = plt . subplot ( <NUM_LIT:1> , <NUM_LIT:3> , <NUM_LIT:1> ) <EOL> ax2 = plt . subplot ( <NUM_LIT:1> , <NUM_LIT:3> , <NUM_LIT:2> , adjustable = '<STR_LIT>' ) <EOL> ax3 = plt . subplot ( <NUM_LIT:1> , <NUM_LIT:3> , <NUM_LIT:3> , sharex = ax2 , sharey = ax2 , adjustable = '<STR_LIT>' ) <EOL> ax1 . imshow ( coin ) <EOL> ax1 . set_axis_off ( ) <EOL> ax1 . set_title ( '<STR_LIT>' ) <EOL> ax2 . imshow ( image ) <EOL> ax2 . set_axis_off ( ) <EOL> ax2 . set_title ( '<STR_LIT:image>' ) <EOL> hcoin , wcoin = coin . shape <EOL> rect = plt . Rectangle ( ( x , y ) , wcoin , hcoin , edgecolor = '<STR_LIT:r>' , facecolor = '<STR_LIT:none>' ) <EOL> ax2 . add_patch ( rect ) <EOL> ax3 . imshow ( result ) <EOL> ax3 . set_axis_off ( ) <EOL> ax3 . set_title ( '<STR_LIT>' ) <EOL> ax3 . autoscale ( False ) <EOL> ax3 . plot ( x , y , '<STR_LIT:o>' , markeredgecolor = '<STR_LIT:r>' , markerfacecolor = '<STR_LIT:none>' , markersize = <NUM_LIT:10> ) <EOL> plt . show ( ) </s>
