scalableminds / webknossos-wrap

Efficient 3D volume storage format for webKnossos and analyses
MIT License
8 stars 3 forks source link

Escaping filesep in Windows for wkwBoundingBox #62

Closed sahilloomba closed 3 years ago

sahilloomba commented 3 years ago

The wkwBoundingBox function doesn't work as expected when using in a Windows machine. This is because the file separater in Windows is '\' which needs to be escaped by doing '\' when specifying pattern to match using regexp.

https://github.com/scalableminds/webknossos-wrap/blob/master/matlab/wkwBoundingBox.m#L30

The filesep in unix '/' does not need to be escaped while using regexp hence no issues there.