Skip to content

Commit

Permalink
Replace meanstd with float 1 for 16-bit TIFF
Browse files Browse the repository at this point in the history
When float 1 is used in conjuction with shrink, the range is computed
after the anti-aliasing and downsamping is performed. The resampling
supresses the outliers ( pixel stuck on ), from overly effecting the
results.

    The meanstd intensity normalization produce poor results for bimodal
    images, where the blacks were too bright.
  • Loading branch information
blowekamp committed Jun 10, 2024
1 parent 1318721 commit 4fd5ae5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions em_workflows/dm_conversion/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ def convert_if_int16_tiff(file_path: FilePath) -> None:
"6",
"-mode",
"0",
"-meansd",
"140,50",
# From the newstack manual for "-float": Enter 1 for each section to fill the data range.
"-float",
"1",
file_path.fp_in.as_posix(),
str(tif_8_bit),
]
Expand Down

0 comments on commit 4fd5ae5

Please sign in to comment.