# HG changeset patch # User imgteam # Date 1553087886 14400 # Node ID 24d9bd16c95335f9f7f6df161b1005f907707f9f # Parent ee045a6bbdeff11fa52dbb496893bb40d3228ae6 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/coordinates_of_roi/ commit bfae746780819634a014388ea4671a49fc5c178d diff -r ee045a6bbdef -r 24d9bd16c953 coordinates_of_roi.py --- a/coordinates_of_roi.py Fri Feb 22 17:11:28 2019 -0500 +++ b/coordinates_of_roi.py Wed Mar 20 09:18:06 2019 -0400 @@ -16,11 +16,11 @@ for i in range(img_height): if white_obj == False: if data[i,j] <= threshold: - x.append(j + offset[0]) - y.append(img_height-(i+1) + offset[1]) + x.append(i + offset[0]) + y.append(j + offset[1]) elif data[i,j] >= threshold: - x.append(j + offset[0]) - y.append(img_height-(i+1) + offset[1]) + x.append(i + offset[0]) + y.append(j + offset[1]) df = pd.DataFrame() df['x'] = x diff -r ee045a6bbdef -r 24d9bd16c953 coordinates_of_roi.xml --- a/coordinates_of_roi.xml Fri Feb 22 17:11:28 2019 -0500 +++ b/coordinates_of_roi.xml Wed Mar 20 09:18:06 2019 -0400 @@ -1,4 +1,4 @@ - + scikit-image @@ -29,14 +29,14 @@ - + - + diff -r ee045a6bbdef -r 24d9bd16c953 test-data/.gitignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/.gitignore Wed Mar 20 09:18:06 2019 -0400 @@ -0,0 +1,1 @@ +/test2.png diff -r ee045a6bbdef -r 24d9bd16c953 test-data/newtable.tsv --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/newtable.tsv Wed Mar 20 09:18:06 2019 -0400 @@ -0,0 +1,7 @@ +x y +5 4 +5 5 +5 6 +5 7 +5 8 +5 9 diff -r ee045a6bbdef -r 24d9bd16c953 test-data/newtable2.tsv --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/newtable2.tsv Wed Mar 20 09:18:06 2019 -0400 @@ -0,0 +1,7 @@ +x y +6 6 +6 7 +6 8 +6 9 +6 10 +6 11