在运行helloRadiomicsWithSettings文件时出现arrays used as indices must be of integer (or boolean) type问题解决方式

在使用helloRadiomicsWithSettings文件时遇到'arrays used as indices must be of integer (or boolean) type'错误。该错误发生在运行glrlm.py文件的numpy.delete操作时。为解决问题,在glrlm.py中添加条件检查,确保emptyGrayLevels为整数类型。解决方案是在删除操作前加入`if list(emptyGrayLevels):`。
摘要由CSDN通过智能技术生成

在运行helloRadiomicsWithSettings文件时出现arrays used as indices must be of integer (or boolean) type问题解决方式

新运行程序时出现以下问题:

Traceback (most recent call last):
File “F:/python_program/pyradiomics-master/examples/helloRadiomicsWithSettings.py”, line 52, in
featureVector = extractor.execute(imageName, maskName)
File “F:\python_program\for_env\lib\site-packages\radiomics\featureextractor.py”, line 327, in execute
featureVector.update(self.computeFeatures(inputImage, inputMask, imageTypeName, **inputKwargs))
File “F:\python_program\for_env\lib\site-packages\radiomics\featureextractor.py”, line 514, in computeFeatures
for (featureName, featureValue) in six.iteritems(featureClass.execute()):
File “F:\python_program\for_env\lib\site-packages\radiomics\base.py”, line 185, in execute
self._calculateSegment()

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值