Skip to content

Commit

Permalink
Improve logging and slightly change parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
minnerbe committed Aug 9, 2024
1 parent 477c4c8 commit a7cffee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public StreakStatisticsClient(final Parameters parameters) {

public void computeStreakStatistics() throws IOException {
for (final Integer zValue : parameters.zValues) {
LOG.info("Computing statistics for zValue={}", zValue);
computeStreakStatisticsForZValue(zValue);
}
}
Expand All @@ -110,7 +111,7 @@ private void computeStreakStatisticsForZValue(final int zValue) throws IOExcepti

rtsc.recalculateBoundingBoxes();
final Bounds regionBounds = rtsc.toBounds();
LOG.info("Region bounds={}", regionBounds);
LOG.debug("Region bounds={}", regionBounds);
final int statisticsWidth = regionBounds.getHeight();

// Accumulate pixel values for each tile in a global coordinate system orthogonal to streaks with averaging in z
Expand All @@ -126,10 +127,11 @@ private void computeStreakStatisticsForZValue(final int zValue) throws IOExcepti
final ImageProcessor processor = streakMask.getProcessor();

if (parameters.maskStorageLocation != null) {
LOG.info("Storing mask in directory '{}'", parameters.maskStorageLocation);
storeMask(zValue, tileSpec, streakMask);
}

LOG.info("tile bounds={}", tileSpec.toTileBounds());
LOG.debug("Record statistics with tile bounds={}", tileSpec.toTileBounds());
final IntRange recordingRange = getRecordingRange(tileSpec.toTileBounds(), regionBounds, tileSpec.getHeight());
recordPixelValues(processor, recordingRange, pixelwiseSum, pixelwiseCount);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ public static void main(final String[] args) {
"--owner", "cellmap",
"--project", "jrc_atla52_b10_2",
"--stack", "v1_acquire_align",
"--zValues", "1000",
"--context", "5",
"--outputFileFormat", "streak_statistics_z%d.csv",
"--maskStorageLocation", "masks",
"--zValues", "10,100,1000",
"--context", "3",
"--outputFileFormat", "streak_statistics_z%05d.csv",
// "--maskStorageLocation", "masks",
"--meanFilterSize", "201",
"--threshold", "10.0",
"--blurRadius", "3"
Expand Down

0 comments on commit a7cffee

Please sign in to comment.