Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: outlier removal not working #277

Merged
merged 1 commit into from
Jul 21, 2017

Conversation

fabianbalsiger
Copy link
Contributor

Hi guys,

I think the PR is self-explanatory. The if had no influence at all.

Cheers,
Fabian

Cc: @Radiomics/developers

@pieper
Copy link
Contributor

pieper commented Jul 21, 2017

LGTM

Thanks for the fix!

@JoostJM JoostJM merged commit 9542d76 into AIM-Harvard:master Jul 21, 2017
@JoostJM JoostJM added the bug label Aug 28, 2018
@tatsunidas
Copy link

Hi, @JoostJM

How to test "removeOutliers not working" correctly?

I tried following,

# The dataset was IBSI PAT1 CT (ibsi_1_ct_radiomics_phantom).
# 
settings = {}
settings['binCount'] = 32
settings['binWidth'] = None
# If enabled, resample image (resampled image is automatically cropped.
settings['resampledPixelSpacing'] = None  # [3,3,3] is an example for defining resampling (voxels with size 3x3x3mm)
settings['interpolator'] = sitk.sitkBSpline
settings['label'] = 1 # 
settings['removeOutliers'] = float(0.5) # and did testing using with 1, 2, 3. 

firstOrderFeatures = firstorder.RadiomicsFirstOrder(image, mask, **settings)
firstOrderFeatures.enableFeatureByName('Mean', True)

results = firstOrderFeatures.execute()
print('Calculated first order features: ')
for (key, val) in six.iteritems(results):
  print('  ', key, ':', val)

Here, if I change removeOutliers to 0.5, 1, 2, 3..., a mean value was not changing(in this case, result was always -46. This value did not apply removeOutliers).

I think, maybe my step is something wrong.
I appreciate it if you let me know a suitable procedure or thanks for your suggestion to my misunderstanding.

tatsuaki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants