#@ String(visibility="MESSAGE", value="") Title
#@ File[] (label="Images for which to look for the template", style="both") ListFiles
'''
This script prompts a window to get the list of image to process
Then it calls the GUI of the matching method and performs the match on the list of images
'''
from ij import IJ
from MatchTemplate_Module import Run, Config

# Generate GUI for Template method...
Cancel = Config() 

# Process matching on list of images
if Cancel:
	message = "Template matching was cancelled"
	print message
	IJ.log(message)
else:
	for File in ListFiles:
		Path = File.getPath()
		Run(Path, False) # dont write the JobFile	
