Skip to content

Commit f58eb70

Browse files
committed
Replace meanstd with float 1 for 16-bit TIFF
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.
1 parent 39d4514 commit f58eb70

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: em_workflows/dm_conversion/flow.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ def convert_if_int16_tiff(file_path: FilePath) -> None:
8585
"6",
8686
"-mode",
8787
"0",
88-
"-meansd",
89-
"140,50",
88+
# From the newstack manual for "-float": Enter 1 for each section to fill the data range.
89+
"-float",
90+
"1",
9091
file_path.fp_in.as_posix(),
9192
str(tif_8_bit),
9293
]

0 commit comments

Comments
 (0)