Mercurial > repos > imgteam > imagej2_bunwarpj_compare_elastic
comparison imagej2_binary_to_edm_jython_script.py @ 2:42ba21dc9ea6 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 10:55:35 +0000 |
| parents | 125641435c4b |
| children | f9f2d9746a01 |
comparison
equal
deleted
inserted
replaced
| 1:125641435c4b | 2:42ba21dc9ea6 |
|---|---|
| 19 # Create a copy of the image. | 19 # Create a copy of the image. |
| 20 input_image_plus_copy = input_image_plus.duplicate() | 20 input_image_plus_copy = input_image_plus.duplicate() |
| 21 image_processor_copy = input_image_plus_copy.getProcessor() | 21 image_processor_copy = input_image_plus_copy.getProcessor() |
| 22 | 22 |
| 23 # Set binary options. | 23 # Set binary options. |
| 24 options_list = ['edm=Overwrite', 'iterations=%d' % iterations, 'count=%d' % count] | 24 options_list = ["edm=Overwrite", "iterations=%d" % iterations, "count=%d" % count] |
| 25 if black_background: | 25 if black_background: |
| 26 options_list.append("black") | 26 options_list.append("black") |
| 27 if pad_edges_when_eroding: | 27 if pad_edges_when_eroding: |
| 28 options_list.append("pad") | 28 options_list.append("pad") |
| 29 options = " ".join(options_list) | 29 options = " ".join(options_list) |
