Skip to content

Commit

Permalink
improv CTC solution compression (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoOkuma authored Jan 9, 2023
1 parent 26c5dfd commit dca847f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ultrack/core/export/ctc.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ def _write_tiff_buffer(
dilated = grey_dilation(buffer, footprint=footprint)
np.putmask(buffer, buffer == 0, dilated)

# reducing mask sizes
buffer = buffer.astype(np.min_scalar_type(buffer.max()))

imwrite(output_dir / f"mask{t:03}.tif", buffer)


Expand Down

0 comments on commit dca847f

Please sign in to comment.