Skip to content

Commit

Permalink
Use quantile based computations for CZI range
Browse files Browse the repository at this point in the history
Update pytools to include improved computations for the histogram
related parameters for multichannel images. The update improves
robustness to outliers and the background. And adds a qualtile based
range method which can be used instead of the MAD range for the range
of the pixel intensities to visualize in neuroglancer.
  • Loading branch information
blowekamp authored and philipmac committed Nov 15, 2023
1 parent 84e4ec8 commit f344f0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion em_workflows/czi/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def gen_imageSet(file_path: FilePath) -> List:
ng_asset["metadata"] = dict(
shader=image.shader_type,
dimensions="XY",
shaderParameters=image.neuroglancer_shader_parameters(mad_scale=5.0),
shaderParameters=image.neuroglancer_shader_parameters(middle_quantile=(0.01,0.99)),
)
assets.append(ng_asset)
image_elt["assets"] = assets
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ dask
distributed
dask-jobqueue
natsort
pytools@https://github.com/niaid/tomojs-pytools/releases/download/v3.0b03/pytools-3.0b3-py3-none-any.whl
pytools@https://github.com/niaid/tomojs-pytools/releases/download/v3.0/pytools-3.0-py3-none-any.whl
pre-commit

0 comments on commit f344f0e

Please sign in to comment.