Skip to content

Commit

Permalink
Simplify command
Browse files Browse the repository at this point in the history
  • Loading branch information
kostrykin committed Mar 12, 2024
1 parent 3f7fc07 commit 7672f67
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/2d_auto_threshold/auto_threshold.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
'$th_method.method_id'
'$th_method.block_size'
'$th_method.threshold'
#if $invert_output:
--invert_output
#end if
$invert_output
]]>
</command>
<inputs>
Expand Down Expand Up @@ -74,7 +72,7 @@
<param name="block_size" type="integer" value="5" label="Odd size of pixel neighborhood for determining the threshold" />
</when>
</conditional>
<param name="invert_output" type="boolean" checked="false" truevalue="True" falsevalue="False" label="Invert output labels" help="Pixels are usually assigned the label 0 if the pixel value is below (or equal to) the threshold, and 255 if it is above the threshold. If this option is activated, pixels are assigned the label 255 if the pixel value is below (or equal to) the threshold, and 0 if it is above the threshold." />
<param name="invert_output" type="boolean" checked="false" truevalue="--invert_output" falsevalue="" label="Invert output labels" help="Pixels are usually assigned the label 0 if the pixel value is below (or equal to) the threshold, and 255 if it is above the threshold. If this option is activated, pixels are assigned the label 255 if the pixel value is below (or equal to) the threshold, and 0 if it is above the threshold." />
</inputs>
<outputs>
<data format="tiff" name="output" from_work_dir="out.tif" />
Expand Down

0 comments on commit 7672f67

Please sign in to comment.