Here is another solution. go to menu Connectivity:Open Default Python Functions... and add the Python script into the file:
from os import listdir
from os.path import isfile, join
import re
def getFileList(path):
'''S:s'''
p = re.compile(r'myocyte\w*')
all_images = [f for f in listdir(path) if isfile(join(path, f)) and p.match(f) is not None]
return all_images
Then run the LT script below. It calls the Python function to fetch the list of file names to import.
Python.LTwd$="";
string path$ = system.path.program$+"Samples\Image Processing and Analysis";
Dataset -a sa = py.getFileList(path$);
for( int ii = 1 ; ii <= sa.GetSize() ; ii++ )
{
string fname$= path$ + "\" + sa[ii]$;
impimage orng:=<new>;
}
James