Skip to content

Commit

Permalink
display with correct contrast limits range
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianming Han committed Dec 11, 2024
1 parent a757d56 commit ca246a1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/cvpl_tools/examples/mousebrain_processing_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def inspect_corrected(SUBJECT_ID):
level=0).compute()
corr = ome_io.load_dask_array_from_path(subject.SECOND_DOWNSAMPLE_CORR_PATH, mode='r',
level=0).compute()
viewer.add_image(corr, name='corr')
viewer.add_image(im, name='im', visible=False)
viewer.add_image(corr, name='corr', contrast_limits=[0., subject.MAX_THRESHOLD])
viewer.add_image(im, name='im', visible=False, contrast_limits=[0., subject.MAX_THRESHOLD])

@magicgui.magicgui(value={'max': 100000})
def image_arithmetic(
Expand Down Expand Up @@ -69,7 +69,8 @@ def inspect_os(SUBJECT_ID):
kwargs=dict(
name='im',
visible=False,
**ci.calc_tr_sc_args(voxel_scale=(1,) * 3, display_shape=display_shape)
**ci.calc_tr_sc_args(voxel_scale=(1,) * 3, display_shape=display_shape),
contrast_limits=[0, 1],
))
nozadd.group_from_path(viewer,
f'{subject.COILED_CACHE_DIR_PATH}/per_pixel_multiplier/dask_im',
Expand Down

0 comments on commit ca246a1

Please sign in to comment.