Mercurial > repos > imgteam > imagej2_enhance_contrast
comparison imagej2_adjust_threshold_binary_jython_script.py @ 2:056e74fbbf6c draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/image_processing/imagej2 commit 57a0433defa3cbc37ab34fbb0ebcfaeb680db8d5
author | imgteam |
---|---|
date | Sun, 05 Nov 2023 14:25:00 +0000 |
parents | ef3de3e84817 |
children | 1f92b1da556b |
comparison
equal
deleted
inserted
replaced
1:ef3de3e84817 | 2:056e74fbbf6c |
---|---|
24 image_processor_copy = input_image_plus_copy.getProcessor() | 24 image_processor_copy = input_image_plus_copy.getProcessor() |
25 | 25 |
26 # Convert image to binary if necessary. | 26 # Convert image to binary if necessary. |
27 if not image_processor_copy.isBinary(): | 27 if not image_processor_copy.isBinary(): |
28 # Convert the image to binary grayscale. | 28 # Convert the image to binary grayscale. |
29 IJ.run(input_image_plus_copy, "Make Binary", "iterations=1 count=1 edm=Overwrite do=Nothing") | 29 IJ.run( |
30 input_image_plus_copy, | |
31 "Make Binary", | |
32 "iterations=1 count=1 edm=Overwrite do=Nothing", | |
33 ) | |
30 # Set the options. | 34 # Set the options. |
31 if black_background: | 35 if black_background: |
32 method_str = "%s dark" % method | 36 method_str = "%s dark" % method |
33 else: | 37 else: |
34 method_str = method | 38 method_str = method |