Mahotas-features.py

在 1.4.0 版本加入: Mahotas-Featureres.py脚本出现在版本1.4.0中(2015年7月)

随着mahotas的安装,一个名为 mahotas-features.py 已安装,可用于从一组文件计算功能。

用法

您可以使用一组指定要计算的功能的标志来调用该脚本,后跟一个文件列表。例如::

$ mahotas-features.py --haralick --lbp image-file1.tiff image-file2.tiff

这将输出到文件中 features.tsv (此缺省值可以使用 --output 选项)

完整的使用信息

您可以通过运行以下命令来获取有关所有选项的帮助 mahotas-features.py --help **

If you use mahotas in a scientific publication, please cite
    Coelho, LP (2013). https://dx.doi.org/10.5334/jors.ac


usage: mahotas-features.py [-h] [--output OUTPUT] [--clobber]
                           [--convert-to-bw CONVERT_TO_BW] [--no-color]
                           [--haralick] [--lbp] [--lbp-radius LBP_RADIUS]
                           [--lbp-points LBP_POINTS]
                           input_file_name [input_file_name ...]

Compute features using mahotas

positional arguments:
  input_file_name       Image files names

optional arguments:
  -h, --help            show this help message and exit
  --output OUTPUT       Output file for feature files
  --clobber             Overwrite output file (if it exists)
  --convert-to-bw CONVERT_TO_BW
                        Convert color images to greyscale. Acceptable values:
                        no: raises an error (default) max: use max projection
                        yes: use rgb2gray
  --no-color            Do not print in color (for error and warning messages)
  --haralick            Compute Haralick features
  --lbp                 Compute LBP (linear binary patterns) features
  --lbp-radius LBP_RADIUS
                        Radius to use for LBP features
  --lbp-points LBP_POINTS
                        Nr of points to use for LBP features