Shrediquette / PIVlab

Particle Image Velocimetry for Matlab, official repository
https://shrediquette.github.io/PIVlab/
MIT License
126 stars 30 forks source link

Importing image sequence by name yields wrong order #113

Closed dirypan closed 4 months ago

dirypan commented 4 months ago

Describe the bug My image sequence is named by time (10.tif is taken at t=1s and 11.tif is taken at t=1.1s etc). Fiji and windows explorer can display the image in the right order, however PIVlab import will sort the first digit then second digit etc, therefore 10.tif will be imported before 6.tif.

To Reproduce Import any image sequence with numerical names.

Expected behavior Image sequence should be sorted by its numerical value.

Screenshots PixPin_2024-03-01_00-17-50

Desktop (please complete the following information):

Shrediquette commented 4 months ago

I will check how to fix this!

Shrediquette commented 4 months ago

Will be fixed in next release:

Shrediquette commented 4 months ago

Implemented: https://github.com/Shrediquette/PIVlab/commit/c909aba9e5d2b557fa65959dafdfc10d78758f7e

It would be great if you download the fixed file and overwrite the file in your local installation to check if it works. https://github.com/Shrediquette/PIVlab/raw/main/uipickfiles.m

dirypan commented 4 months ago

Thank you, just tried, works perfectly.