Skip to content

Commit

Permalink
fix: n5 dfield, treat invfield group as inverse
Browse files Browse the repository at this point in the history
  • Loading branch information
bogovicj committed Jun 12, 2024
1 parent 3a6375d commit c72e75e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/bdv/gui/sourceList/BigWarpSourceTableModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -235,17 +235,18 @@ else if (c == 2)

public RealTransform getTransform() {


if (transformUrl != null && !transformUrl.isEmpty()) {
final String trimUrl = transformUrl.trim();
try {
final N5URI n5Uri = new N5URI(trimUrl);
final URI uri = n5Uri.getURI();
if (uri.getFragment() == null) {
final String groupPath = uri.getQuery() == null ? N5DisplacementField.FORWARD_ATTR : n5Uri.getGroupPath();
final boolean isInverse = groupPath.equals(N5DisplacementField.INVERSE_ATTR);
return N5DisplacementField.open(
new N5Factory().openReader(n5Uri.getContainerPath()),
uri.getQuery() == null ? N5DisplacementField.FORWARD_ATTR : n5Uri.getGroupPath(),
false);
groupPath,
isInverse);
}
} catch (final URISyntaxException e) {}

Expand Down

0 comments on commit c72e75e

Please sign in to comment.