the user can now choose parameters when performing white estimate

This commit is contained in:
Guillaume Raffy 2019-10-08 17:54:00 +02:00
parent f96b4a8ff6
commit 738a3a8c25
1 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
#@ Integer (label="open size (in pixels)", value=75, style="slider") OPEN_SIZE
#@ Integer (label="close size (in pixels)", value=75, style="slider") CLOSE_SIZE
#@ Integer (label="average size (in pixels)", value=75, style="slider") AVERAGE_SIZE
#@output ImagePlus WHITE_ESTIMATE
"""This script is supposed to be launched from fiji's jython interpreter
"""
@ -98,7 +102,7 @@ def run_script():
return
sequence = user_selection['sequence']
channel_id = user_selection['channel_id']
white_estimator = WhiteEstimator(open_size=75, close_size=75, average_size=75)
white_estimator = WhiteEstimator(open_size=OPEN_SIZE, close_size=CLOSE_SIZE, average_size=AVERAGE_SIZE)
white_estimate = white_estimator.estimate_white([sequence], [channel_id])
print(type(white_estimate))
global WHITE_ESTIMATE