files not found when root folder moved

Issue #217 resolved
FUNMORPH UA created an issue

Dear Ben, dear all,

I recently adjusted the folder structure on my computer. The folder in which my project was stored changed in location, although the folder name and project name remained unaltered.

This lead to XMALab being unable to open my projects, raising the cryptic error message

OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file <…>opencv2/src/opencv-2.4.13.6/modules/imgproc/src/color.cpp, line 3783

I found that in the “.xma” file, the image sequences I imported as cameras were stored by an absolute path in the files

<xma>/<trial>/<camera>_filenames_absolute.txt

By adjusting the paths in those files I could recover my project.

Although it is generally not ideal, I understand the implementation of absolute paths in this case. However, XMALab should not depend on movie files staying in the same location. Instead, I would expect the program to check if paths are still valid and give a meaningful error message. Ideally, if files are not where they should be, the program would even prompt the user to point at the new path where the cameras are stored. Finally, because image series are usually stored in a common folder, it might be good to store that folders path in a master settings file, and not for each file in “_filenames_absolute.txt“ (to simplify the adjustment).

Best,

Falk

Comments (2)

  1. Benjamin Knorlein

    Hi Falk,

    Usually it should search for the files when they are not found in the folder structure relative to the xma-file. If it is not found it should open a dialog and ask you where they are located. I will check the functionality if it still works. I think it might be broken.

    Best,

    Ben

  2. Log in to comment