Mercurial > repos > imgteam > coordinates_of_roi
diff coordinates_of_roi.py @ 2:24d9bd16c953 draft
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/coordinates_of_roi/ commit bfae746780819634a014388ea4671a49fc5c178d
author | imgteam |
---|---|
date | Wed, 20 Mar 2019 09:18:06 -0400 |
parents | ee045a6bbdef |
children | 02a686fc1654 |
line wrap: on
line diff
--- 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