Skip to content

Commit

Permalink
Merge pull request #116 from kostrykin/points2binaryimage/fix
Browse files Browse the repository at this point in the history
Fix `points2binaryimage` tool
  • Loading branch information
bgruening authored Mar 14, 2024
2 parents 13a2054 + 403ec07 commit 7830f8c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
6 changes: 6 additions & 0 deletions macros/creators/bmcv.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<macros>
<xml name="creators/bmcv">
<organization name="Biomedical Computer Vision Group" alternateName="BMCV" url="http://www.bioquant.uni-heidelberg.de/research/groups/biomedical_computer_vision.html" />
<yield />
</xml>
</macros>
1 change: 1 addition & 0 deletions tools/points2binaryimage/bmcv.xml
20 changes: 16 additions & 4 deletions tools/points2binaryimage/points2binaryimage.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<tool id="ip_points_to_binaryimage" name="Convert point coordinates to binary image" version="0.2-1">
<tool id="ip_points_to_binaryimage" name="Convert point coordinates to binary image" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.05">
<description></description>
<macros>
<import>bmcv.xml</import>
<token name="@TOOL_VERSION@">0.2</token>
<token name="@VERSION_SUFFIX@">2</token>
</macros>
<creator>
<expand macro="creators/bmcv" />
</creator>
<edam_operations>
<edam_operation>operation_3443</edam_operation>
</edam_operations>
Expand All @@ -11,7 +19,7 @@
<requirement type="package" version="1.15.4">numpy</requirement>
<requirement type="package" version="0.23.4">pandas</requirement>
<requirement type="package" version="2018.7">pytz</requirement><!--pandas seems to have additional requirements that are not automatically installed-->
<requirement type="package" version="2.4.1">dateutil</requirement>
<requirement type="package" version="2.5.2">python-dateutil</requirement>
<requirement type="package" version="0.15.1">tifffile</requirement>
</requirements>
<command detect_errors="aggressive">
Expand Down Expand Up @@ -40,9 +48,13 @@
</test>
</tests>
<help>
**What it does**

Converts CSV point file to binary image.
This tool converts a CSV list of points to a binary image by rasterizing the point coordinates.

The created image is a single-channel image with 16 bits per pixel (unsigned integer).
The points are rasterized with value 32767 (white).
Pixels not corresponding to any points in the CSV are assigned the value 0 (black).

</help>
<citations>
<citation type="doi">10.1016/j.jbiotec.2017.07.019</citation>
Expand Down

0 comments on commit 7830f8c

Please sign in to comment.