本筆記來(lái)源于B站Up主: 有Li 的影像組學(xué)系列教學(xué)視頻
本節(jié)(16)主要介紹: pyradiomics的yaml文件參數(shù)設(shè)置解讀
pyradiomics 官網(wǎng)對(duì)yaml文件有詳細(xì)說(shuō)明:
The three setting types are named as follows:
imageType: image type to calculate features on. <value> is custom kwarg settings (dictionary). if <value> is an empty dictionary (‘{}’), no custom settings are added for this input image.
featureClass: Feature class to enable, <value> is list of strings representing enabled features. If no <value> is specified or <value> is an empty list (‘[]’), all features for this class are enabled.
setting: Setting to use for pre processing and class specific settings. if no <value> is specified, the value for this setting is set to None.
voxelSetting: Settings used to control the voxel-based specific settings. E.g. the size of the kernel used and the background value in the parameter maps.
Note:
- Any keyword, such as a customization category or setting name may only be mentioned once.
- Multiple instances do not raise an error, but only the last one encountered is used.
Example of a yaml file:
# This is a non-active comment on a separate line
imageType:
Original: {}
LoG: {'sigma' : [1.0, 3.0]} # This is a non active comment on a line with active code preceding it.
Wavelet:
binWidth: 10
featureClass:
glcm:
glrlm: []
firstorder: ['Mean',
'StandardDeviation']
shape:
- Volume
- SurfaceArea
setting:
binWidth: 25
resampledPixelSpacing:
在setting里
BinWidth的概念:

label:
通常將感興趣區(qū)設(shè)置為1
interpolator的種類:
imageType的種類:
featureClass的種類:
拓展知識(shí):
YAML配置文件的寫法:參考B站視頻
# K:v 表示一對(duì)鍵值對(duì)
# 冒號(hào)后面是有一個(gè)空格的
# 以空格的縮進(jìn)來(lái)代表層級(jí)關(guān)系,對(duì)齊代表的就是同一層級(jí)
# 屬性和值也是大小寫敏感