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

Add 2D Shape features #442

Merged
merged 4 commits into from Jan 15, 2019
Merged

Add 2D Shape features #442

merged 4 commits into from Jan 15, 2019

Commits on Oct 19, 2018

  1. ENH: Add C extension code for 2D shape features

    Calculates the Surface, perimeter and maximum diameter of a 2D shape (requires input to be a 2D numpy array and spacing).
    JoostJM committed Oct 19, 2018
    Copy the full SHA
    8567834 View commit details
    Browse the repository at this point in the history
  2. ENH: Add Shape2D to feature classes

    Do not enable by default. If user enables shape2D, it first check if the user enabled force2D extraction and if the bounding box of the mask has size 1 in the specified 2D dimension. If not a warning is logged and extraction continues.
    JoostJM committed Oct 19, 2018
    Copy the full SHA
    ba07b03 View commit details
    Browse the repository at this point in the history
  3. TEST: Add test baseline for shape2D

    Add testing of shape 2D, using all 5 radiomics testcases. As shape2D only works with single slice segmentations, add new largest slice segmentations for each test case, and update code to allow adding of a "_2D" suffix to the testcase, indicating this 2D label should be returned as mask.
    
    Additionally update the getTestCase function to raise an error instead of returning None in case the test case could not be obtained.
    JoostJM committed Oct 19, 2018
    Copy the full SHA
    8ef7c8e View commit details
    Browse the repository at this point in the history
  4. STYL: Update comments in cshape

    Fix typos
    Add basic representation of cube/square in the algorithm
    JoostJM committed Oct 19, 2018
    Copy the full SHA
    899973e View commit details
    Browse the repository at this point in the history