From 720ebb28548c8f3d1b5a35f4e37625cd74a1dbb2 Mon Sep 17 00:00:00 2001 From: Florian M Date: Wed, 7 Nov 2018 15:45:38 +0100 Subject: [PATCH 1/2] Fix guessed dataset boundingbox for non-zero-aligned datasets --- .../datastore/dataformats/wkw/WKWDataFormat.scala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webknossos-datastore/app/com/scalableminds/webknossos/datastore/dataformats/wkw/WKWDataFormat.scala b/webknossos-datastore/app/com/scalableminds/webknossos/datastore/dataformats/wkw/WKWDataFormat.scala index 5356977393e..cc356458906 100644 --- a/webknossos-datastore/app/com/scalableminds/webknossos/datastore/dataformats/wkw/WKWDataFormat.scala +++ b/webknossos-datastore/app/com/scalableminds/webknossos/datastore/dataformats/wkw/WKWDataFormat.scala @@ -96,7 +96,12 @@ object WKWDataFormat extends DataSourceImporter with WKWDataFormatHelper { (yMin, yMax) = yDirs.foldRight((getIntFromFilePath(yHeadDir), 0))(minMaxValue) (xMin, xMax) = xFiles.foldRight((getIntFromFilePath(xFile), 0))(minMaxValue) } yield { - BoundingBox(Point3D(xMin * multiplierX, yMin * multiplierY, zMin * multiplierZ), xMax * multiplierX, yMax * multiplierY, zMax * multiplierZ) + BoundingBox(Point3D(xMin * multiplierX, + yMin * multiplierY, + zMin * multiplierZ), + xMax * multiplierX - xMin * multiplierX, + yMax * multiplierY - yMin * multiplierY, + zMax * multiplierZ - zMin * multiplierZ) } } From 78910a070f409e09585301a242a42bbce33fbb3a Mon Sep 17 00:00:00 2001 From: Florian M Date: Wed, 7 Nov 2018 15:49:02 +0100 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9d665815ce..31f36642e9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.md). ### Fixed - Fixed a bug where the initial onboarding setup failed if automatic initial data was disabled. [#3421](https://github.com/scalableminds/webknossos/pull/3421) +- Fixed a bug where the guessed bounding box for datasets that do not start at (0,0,0) was too large [#3437](https://github.com/scalableminds/webknossos/pull/3437) ### Removed