Mercurial > repos > iuc > imagej2_analyze_particles_binary
comparison imagej2_analyze_particles_binary.xml @ 0:d065ec177dcd draft
planemo upload commit 18df9e67efd4adafcde4eb9b62cd815e4afe9733-dirty
| author | iuc |
|---|---|
| date | Wed, 26 Aug 2015 14:36:17 -0400 |
| parents | |
| children | dd9041dc3c27 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:d065ec177dcd |
|---|---|
| 1 <?xml version='1.0' encoding='UTF-8'?> | |
| 2 <tool id="imagej2_analyze_particles_binary" name="Analyze particles" version="@WRAPPER_VERSION@.0"> | |
| 3 <description>of binary image with ImageJ2</description> | |
| 4 <macros> | |
| 5 <import>imagej2_macros.xml</import> | |
| 6 </macros> | |
| 7 <expand macro="fiji_requirements" /> | |
| 8 <command> | |
| 9 <![CDATA[ | |
| 10 python $__tool_directory__/imagej2_analyze_particles_binary.py | |
| 11 --input "$input" | |
| 12 --input_datatype $input.ext | |
| 13 --black_background $black_background | |
| 14 --size "$size" | |
| 15 --circularity_min $circularity_min | |
| 16 --circularity_max $circularity_max | |
| 17 --show $show | |
| 18 --exclude_edges $exclude_edges | |
| 19 --include_holes $include_holes | |
| 20 --jython_script $__tool_directory__/jython_script.py | |
| 21 #if str($show) == 'Nothing': | |
| 22 --display_results "yes" | |
| 23 --all_results "yes" | |
| 24 #else: | |
| 25 --display_results $display_results_cond.display_results | |
| 26 --all_results $display_results_cond.all_results | |
| 27 --output_datatype $output.ext | |
| 28 --output "$output" | |
| 29 #end if | |
| 30 --results "$results" | |
| 31 ]]> | |
| 32 </command> | |
| 33 <inputs> | |
| 34 <param format="bmp,eps,gif,jpg,pcx,pgm,png,psd,tiff" name="input" type="data" label="Select image"/> | |
| 35 <expand macro="black_background_param" /> | |
| 36 <param name="size" type="text" value="0-Infinity" label="Size (pixel^2)" help="Enter a single value and particles smaller than that value will be ignored."/> | |
| 37 <param name="circularity_min" type="float" value="0.0" label="Circularity minimum" help="Values from 0.0 to 1.0, but less than maximum"> | |
| 38 <validator type="in_range" min="0" max="1"/> | |
| 39 </param> | |
| 40 <param name="circularity_max" type="float" value="1.0" label="Circularity maximum" help="Values from 0.0 to 1.0, but greater than minimum"> | |
| 41 <validator type="in_range" min="0" max="1"/> | |
| 42 </param> | |
| 43 <param name="show" type="select" label="Show" help="Selecting Nothing will display results, but no image."> | |
| 44 <option value="Outlines" selected="True">Outlines</option> | |
| 45 <option value="Bare_Outlines">Bare Outlines</option> | |
| 46 <option value="Ellipses">Ellipses</option> | |
| 47 <option value="Masks">Masks</option> | |
| 48 <option value="Count_Masks">Count Masks</option> | |
| 49 <option value="Nothing">Nothing</option> | |
| 50 </param> | |
| 51 <conditional name="display_results_cond"> | |
| 52 <param name="display_results" type="select" label="Display results"> | |
| 53 <option value="no" selected="True">No</option> | |
| 54 <option value="yes">Yes</option> | |
| 55 </param> | |
| 56 <when value="no"> | |
| 57 <param name="all_results" type="hidden" value="no"/> | |
| 58 </when> | |
| 59 <when value="yes"> | |
| 60 <param name="all_results" type="select" label="All results?" help="If no, only summary displayed."> | |
| 61 <option value="yes" selected="True">Yes</option> | |
| 62 <option value="no">No</option> | |
| 63 </param> | |
| 64 </when> | |
| 65 </conditional> | |
| 66 <param name="exclude_edges" type="select" label="Exclude on edges?"> | |
| 67 <option value="no" selected="True">No</option> | |
| 68 <option value="yes">Yes</option> | |
| 69 </param> | |
| 70 <param name="include_holes" type="select" label="Include holes?"> | |
| 71 <option value="no" selected="True">No</option> | |
| 72 <option value="yes">Yes</option> | |
| 73 </param> | |
| 74 </inputs> | |
| 75 <outputs> | |
| 76 <data name="output" format_source="input" label="${tool.name} on ${on_string}"> | |
| 77 <filter>show != "Nothing"</filter> | |
| 78 </data> | |
| 79 <data format="tabular" name="results" label="${tool.name} on ${on_string}: Results"> | |
| 80 <filter>show == "Nothing" or display_results_cond['display_results'] == "yes"</filter> | |
| 81 </data> | |
| 82 </outputs> | |
| 83 <tests> | |
| 84 <test> | |
| 85 <param name="input" value="blobs_watershed_binary.gif" /> | |
| 86 <param name="show" value="Nothing" /> | |
| 87 <output name="output" file="analyze_particles_nothing.tabular" /> | |
| 88 </test> | |
| 89 <test> | |
| 90 <param name="input" value="blobs_watershed_binary.gif" /> | |
| 91 <param name="show" value="Outlines" /> | |
| 92 <output name="output" file="analyze_particles_outlines.gif" compare="sim_size" /> | |
| 93 </test> | |
| 94 <test> | |
| 95 <param name="input" value="blobs_watershed_binary.gif" /> | |
| 96 <param name="show" value="Masks" /> | |
| 97 <param name="exclude_edges" value="yes" /> | |
| 98 <param name="include_holes" value="yes" /> | |
| 99 <output name="output" file="analyze_particles_masks.gif" compare="sim_size" /> | |
| 100 </test> | |
| 101 </tests> | |
| 102 <help> | |
| 103 .. class:: warningmark | |
| 104 | |
| 105 @requires_binary_input@ | |
| 106 | |
| 107 **What it does** | |
| 108 | |
| 109 <![CDATA[ | |
| 110 Counts and measures objects in binary or thresholded images. It works by scanning the image until | |
| 111 it finds the edge of an object. It then outlines the object, measures it, fills it to make it | |
| 112 invisible, then resumes scanning until it reaches the end of the image. Features of thresholded | |
| 113 images can be extracted by specifying suitable **Size** and **Circularity** ranges and/or by choosing | |
| 114 if particles should be traced by their outer edge or by flood filling. | |
| 115 | |
| 116 - **Size** - Particles with size (area) outside the range specified in this field are ignored. Values may range between 0 and ‘Infinity’. Enter a single value and particles smaller than that value will be ignored. | |
| 117 - **Cicularity** - Particles with size circularity values outside the range specified in the min/max fields are also ignored. | |
| 118 - **Show: Nothing** - No image will be generated, but **Display Results** will be set to Yes. Note that the particle analyzer will display a blank image when the count of detected particles is zero and **Show** is not **Nothing**. | |
| 119 - **Show: Outlines** - Generates an 8-bit image containing numbered outlines of the measured particles (gray levels: Outlines: 0; Labels: 1; Background: 255). | |
| 120 - **Show: Bare Outlines** - Generates an 8-bit image containing simple outlines of the measured particles without labels (graylevels: Outlines: 0; Background: 255). | |
| 121 - **Show: Ellipses** - Generates an 8-bit image containing the best fit ellipse of each measured particle (gray levels: Ellipses: 0; Background: 255). | |
| 122 - **Show: Masks** - Generates an 8-bit image containing filled outlines of the measured particles (gray levels: Masks: 0; Background: 255). | |
| 123 - **Show: Count Masks** - Generates a 16-bit image containing filled outlines of the measured particles painted with a grayscale value corresponding to the particle number. | |
| 124 - **Display Results** - If Yes, the measurements for each particle will be generated. | |
| 125 - **All results** - If No, results will be restricted to the particle count, total particle area, average particle size, and area fraction. | |
| 126 - **Exclude on Edges** - If Yes, particles touching the edge of the image will be ignored. | |
| 127 - **Include Holes** - If Yes, interior holes will be included (set to No to exclude interior holes and to measure particles enclosed by other particles). | |
| 128 ]]> | |
| 129 | |
| 130 </help> | |
| 131 <expand macro="fiji_headless_citations" /> | |
| 132 </tool> |
