Mercurial > repos > imgteam > 2d_feature_extraction
diff 2d_feature_extraction.py @ 6:5bc8cdc17fd0 draft default tip
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
author | imgteam |
---|---|
date | Wed, 24 Apr 2024 08:11:39 +0000 |
parents | 2436a8807ad1 |
children |
line wrap: on
line diff
--- a/2d_feature_extraction.py Thu Apr 04 15:23:23 2024 +0000 +++ b/2d_feature_extraction.py Wed Apr 24 08:11:39 2024 +0000 @@ -1,9 +1,9 @@ import argparse +import giatools.io import numpy as np import pandas as pd import skimage.feature -import skimage.io import skimage.measure import skimage.morphology import skimage.segmentation @@ -57,9 +57,9 @@ raw_image = None if args.raw_file is not None: - raw_image = skimage.io.imread(args.raw_file.name) + raw_image = giatools.io.imread(args.raw_file.name) - raw_label_image = skimage.io.imread(label_file) + raw_label_image = giatools.io.imread(label_file) df = pd.DataFrame() if label_file_binary: @@ -124,4 +124,4 @@ df['convexity'] = area / (perimeter * perimeter) del df['it'] - df.to_csv(out_file, sep='\t', line_terminator='\n', index=False) + df.to_csv(out_file, sep='\t', lineterminator='\n', index=False)