-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Methods for axis permutation on metadata objects (#19)
* pref: flip both f-order and c-order metadata * add reverseDimensions helper method * feat: axis utils more methods for permutation * feat: methods for permuting metadata axes * feat: can detect "all default" metadata * adds N5DefaultSingleScaleMetadata * feat: another permuteImageAndMetadataForImagePlus helper method * test: build axis permuted cosem data * fix: permutation of cosem metadata
- Loading branch information
Showing
14 changed files
with
830 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/main/java/org/janelia/saalfeldlab/n5/universe/metadata/N5DefaultSingleScaleMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package org.janelia.saalfeldlab.n5.universe.metadata; | ||
|
||
import org.janelia.saalfeldlab.n5.DatasetAttributes; | ||
|
||
import net.imglib2.realtransform.AffineTransform3D; | ||
|
||
/** | ||
* This class merely serves as a marker that all its values are default values. See | ||
* {@link N5GenericSingleScaleMetadataParser}. | ||
*/ | ||
public class N5DefaultSingleScaleMetadata extends N5SingleScaleMetadata { | ||
|
||
public N5DefaultSingleScaleMetadata(String path, AffineTransform3D transform, double[] downsamplingFactors, double[] pixelResolution, double[] offset, | ||
String unit, DatasetAttributes attributes, Double minIntensity, Double maxIntensity, boolean isLabelMultiset) { | ||
|
||
super(path, transform, downsamplingFactors, pixelResolution, offset, unit, attributes, minIntensity, maxIntensity, isLabelMultiset); | ||
} | ||
|
||
public N5DefaultSingleScaleMetadata(String path, AffineTransform3D transform, double[] downsamplingFactors, double[] pixelResolution, double[] offset, | ||
String unit, DatasetAttributes attributes, boolean isLabelMultiset) { | ||
|
||
super(path, transform, downsamplingFactors, pixelResolution, offset, unit, attributes, isLabelMultiset); | ||
} | ||
|
||
public N5DefaultSingleScaleMetadata(String path, AffineTransform3D transform, double[] downsamplingFactors, double[] pixelResolution, double[] offset, | ||
String unit, DatasetAttributes attributes) { | ||
|
||
super(path, transform, downsamplingFactors, pixelResolution, offset, unit, attributes); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.