comparison projective_transformation.py @ 1:974cf4357707 draft

"planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/projective_transformation/ commit 3d389fdec0db29cf6fbd783c0501455bf624fa90"
author imgteam
date Wed, 18 Dec 2019 05:03:09 -0500
parents 17f5d0c3f8a3
children 1ffdb07020ee
comparison
equal deleted inserted replaced
0:17f5d0c3f8a3 1:974cf4357707
1 import skimage.io 1 import skimage.io
2 from skimage.transform import ProjectiveTransform 2 from skimage.transform import ProjectiveTransform
3 from scipy.ndimage import map_coordinates 3 from scipy.ndimage import map_coordinates
4 import numpy as np 4 import numpy as np
5 import pandas as pd 5 import pandas as pd
6 import argparse 6 import argparse
7 import warnings 7 import warnings
8 import shutil 8 import shutil
9 9
10 10
11 def _stackcopy(a, b): 11 def _stackcopy(a, b):
12 if a.ndim == 3: 12 if a.ndim == 3:
13 a[:] = b[:, :, np.newaxis] 13 a[:] = b[:, :, np.newaxis]