Skip to content

Commit a2a0c32

Browse files
committed
Add colormap to beautiful_app.py
1 parent b396dc2 commit a2a0c32

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cdl/tests/scenarios/beautiful_app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@ def run_beautiful_scenario(screenshots: bool = False):
5454
height=data_size, width=data_size, itype=dlo.ImageTypes.GAUSS
5555
)
5656
ima = dlo.create_image_from_param(newparam)
57+
ima.metadata["colormap"] = "jet"
5758
panel.add_object(ima)
5859
panel.processor.compute_equalize_hist(dlp.EqualizeHistParam())
5960
panel.processor.compute_equalize_adapthist(dlp.EqualizeAdaptHistParam())
6061
panel.processor.compute_denoise_tv(dlp.DenoiseTVParam())
6162
panel.processor.compute_denoise_wavelet(dlp.DenoiseWaveletParam())
6263
panel.processor.compute_white_tophat(dlp.MorphologyParam())
6364
panel.processor.compute_denoise_tv(dlp.DenoiseTVParam())
64-
n = data_size // 5
65-
m = int(n * 1.25)
65+
n = data_size // 3
6666
panel.processor.compute_roi_extraction(
67-
dlp.ROIDataParam.create([[n, m, data_size - n, data_size - m]])
67+
dlp.ROIDataParam.create([[n, n, data_size - n, data_size - n]])
6868
)
6969
if screenshots:
7070
win.take_screenshot("i_beautiful")

doc/images/shots/i_beautiful.png

-502 Bytes
Loading

0 commit comments

Comments
 (0)