Skip to content

Images in a directory are not read sequentially #8

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Run imageclipper on a directory e.g. ./imageclipper img
2. Press <f> or <space>

What is the expected output? What do you see instead?
I expect the files to be opened in order according to file name. In the 
documentation it says "For a directory, image files in the directory will be 
read sequentially"

I end up seeing files in random order, which greatly slows down clipping as I 
am taking samples from video files.


What version of the product are you using? On what operating system?
I am using svn revision 102 on 64bit archlinux using the ext4 filesystem

Please provide any additional information below.

The boost directory iterator documentation states: "The Linux listing isn't 
sorted. That's because the ordering of directory iteration is unspecified."

This problem can be fixed by adding this line:

sort(param->filelist.begin(),param->filelist.end());

Which is done in the attached patch file.



Original issue reported on code.google.com by numobis...@gmail.com on 20 Mar 2012 at 1:25

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions