Login  Register

Arrays and string wildcards

Posted by AAM71 on Jan 19, 2021; 3:04pm
URL: http://imagej.273.s1.nabble.com/Arrays-and-string-wildcards-tp5024394.html

Dear listers,

I am writing a macro with which I want to correct certain files in a directory and convert them to different formats. Some of files are not readable by ImageJ or Bioformats/Fiji and need to be excluded from opening. Others may need different operations depending on file type.
If I get the array of filenames from this directory can I delete array elements using not exact string but a wildcard (like "*.jpg")?

Or is there any other way to make conditions based on file type?

Thank you in advance!

Best regards,
Alex Mironov



--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html