Skip to content

Commit

Permalink
Fix guessed dataset boundingbox for non-zero-aligned datasets (#3437)
Browse files Browse the repository at this point in the history
* Fix guessed dataset boundingbox for non-zero-aligned datasets

* Update CHANGELOG.md
  • Loading branch information
fm3 authored Nov 12, 2018
1 parent 165b183 commit 894e8b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
- Fixed a bug where dataset list refresh failed when datasets for non-existing organizations were reported. [#3438](https://github.com/scalableminds/webknossos/pull/3438)

### Removed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 894e8b4

Please sign in to comment.