# HG changeset patch # User imgteam # Date 1553712853 14400 # Node ID ae600b1c6c485c997bc239e20788f1104d77a075 # Parent dd792352f2a7d145967e777b46c017896fbde945 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/projective_transformation_points/ commit 201f4231192bc368b14e72bb1314b9a97b8db8d0 diff -r dd792352f2a7 -r ae600b1c6c48 projective_transformation_points.py --- a/projective_transformation_points.py Sat Feb 09 14:23:35 2019 -0500 +++ b/projective_transformation_points.py Wed Mar 27 14:54:13 2019 -0400 @@ -5,12 +5,12 @@ def warp_coords_batch(coord_map, coords, dtype=np.float64, batch_size=1000000): - tf_coords = coords.astype(np.float32) + tf_coords = coords.astype(np.float32)[:, ::-1] - for i in range(0, (tf_coords.shape[0]//batch_size+1)): + for i in range(0, (tf_coords.shape[0]//batch_size)+1): tf_coords[batch_size*i:batch_size*(i+1)] = coord_map(tf_coords[batch_size*i:batch_size*(i+1)]) - return np.unique(np.round(tf_coords).astype(coords.dtype),axis=0) + return np.unique(np.round(tf_coords).astype(coords.dtype),axis=0)[:, ::-1] def transform(coords, warp_matrix, out): diff -r dd792352f2a7 -r ae600b1c6c48 projective_transformation_points.xml --- a/projective_transformation_points.xml Sat Feb 09 14:23:35 2019 -0500 +++ b/projective_transformation_points.xml Wed Mar 27 14:54:13 2019 -0400 @@ -1,4 +1,4 @@ - + of input points scikit-image diff -r dd792352f2a7 -r ae600b1c6c48 test-data/out.tsv --- a/test-data/out.tsv Sat Feb 09 14:23:35 2019 -0500 +++ b/test-data/out.tsv Wed Mar 27 14:54:13 2019 -0400 @@ -1,7 +1,7 @@ x y -18 24 -18 25 -18 26 -18 27 -20 22 -25 35 +30 12 +28 14 +28 15 +28 16 +28 17 +35 25