Skip to content

Commit a2a36ec

Browse files
committed
Unzoom the model image to 12.5 percent
It is required to be shown on the screen, but we can at least make it smaller so it is less prominent.
1 parent 94e9e49 commit a2a36ec

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/imcflibs/imagej/shading.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ def process_folder(path, suffix, outpath, model_file, fmt):
134134
# the model needs to be shown, otherwise the IJ.run() call ignores it
135135
try:
136136
model.show()
137+
canvas = model.getCanvas()
138+
for _ in range(5):
139+
# we have to show it, but we can make it smaller:
140+
canvas.zoomOut(100, 100)
137141
except AttributeError:
138142
misc.error_exit("Opening shading model [%s] failed!" % model_file)
139143

0 commit comments

Comments
 (0)