Skip to content

Commit

Permalink
add file name suffixes for the different normalization methods
Browse files Browse the repository at this point in the history
  • Loading branch information
trautmane committed Apr 6, 2024
1 parent 30b370f commit ba08c93
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,17 @@ public enum NormalizationMethod {
/**
* Contrast Limited Local Contrast Normalization
*/
LOCAL_CONTRAST,
LOCAL_CONTRAST("_norm-local"),
/**
* Adjust layer intensities by making the content-aware average the same in all layers
*/
LAYER_INTENSITY,
LAYER_INTENSITY("_norm-layer"),
;

private final String fileNameSuffix;
NormalizationMethod(final String fileNameSuffix) {
this.fileNameSuffix = fileNameSuffix;
}
}

@SuppressWarnings({"FieldMayBeFinal", "unused"})
Expand Down Expand Up @@ -146,7 +152,7 @@ public static void main(final String... args) throws IOException, InterruptedExc

final N5Writer n5Output = new N5FSWriter(options.n5PathInput);
final String invertedName = options.invert ? "_inverted" : "";
final String outputDataset = options.n5DatasetInput + "_normalized" + invertedName;
final String outputDataset = options.n5DatasetInput + options.normalizeMethod.fileNameSuffix + invertedName;
final String fullScaleOutputDataset = outputDataset + "/s0";

final List<Double> shifts;
Expand Down

0 comments on commit ba08c93

Please sign in to comment.