From 061470035893e68c4dade79f7e6a46de3b524862 Mon Sep 17 00:00:00 2001 From: Davis King Date: Wed, 28 Sep 2016 09:28:40 -0400 Subject: [PATCH] Fixed --cluster not working with relative paths. --- tools/imglab/src/cluster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/imglab/src/cluster.cpp b/tools/imglab/src/cluster.cpp index 78dc73bc1..5dd76b9cf 100644 --- a/tools/imglab/src/cluster.cpp +++ b/tools/imglab/src/cluster.cpp @@ -139,8 +139,8 @@ int cluster_dataset( image_dataset_metadata::dataset data; - set_current_dir(get_parent_directory(file(parser[0]))); image_dataset_metadata::load_image_dataset_metadata(data, parser[0]); + set_current_dir(get_parent_directory(file(parser[0]))); const double aspect_ratio = mean_aspect_ratio(data);