Skip to content

Commit

Permalink
Convert to 8bit if input is 16bit
Browse files Browse the repository at this point in the history
  • Loading branch information
minnerbe committed Jan 10, 2025
1 parent f6d338b commit 3af58a2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.janelia.render.client.spark.destreak;

import ij.ImagePlus;
import ij.process.ImageConverter;
import org.janelia.alignment.destreak.StreakFinder;
import org.janelia.alignment.spec.Bounds;
import org.janelia.alignment.spec.stack.StackMetaData;
Expand Down Expand Up @@ -29,6 +30,7 @@ public static void main(final String[] args) throws IOException {

final String srcPath = "/home/[email protected]/big-data/streak-correction/jrc_pri-neuro_0710dish-4/z7350-0-0-0.png";
final ImagePlus imp = new ImagePlus(srcPath);
// new ImageConverter(imp).convertToGray8();
final StreakFinder finder = new StreakFinder(meanFilterSize, threshold, blurRadius);
final ImagePlus mask = finder.createStreakMask(imp);

Expand Down

0 comments on commit 3af58a2

Please sign in to comment.