影像組學(xué)學(xué)習(xí)筆記(16)-pyradiomics里的yaml文件

本筆記來(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的概念:

big-vs-small-binwidth-672x372.png

label:
通常將感興趣區(qū)設(shè)置為1

interpolator的種類:

interpolator.JPG

imageType的種類:

ImageTypes.JPG

featureClass的種類:

features.JPG

拓展知識(shí):
YAML配置文件的寫法:參考B站視頻

# K:v 表示一對(duì)鍵值對(duì)
# 冒號(hào)后面是有一個(gè)空格的
# 以空格的縮進(jìn)來(lái)代表層級(jí)關(guān)系,對(duì)齊代表的就是同一層級(jí)
# 屬性和值也是大小寫敏感
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容