the user can now choose parameters when performing white estimate
This commit is contained in:
parent
f96b4a8ff6
commit
738a3a8c25
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue