BoneTextureExtension: Texture Analysis Work in Slicer

Dear Professor Beatriz:
Sorry to bother you! I am really meeting some problems with 3DSlicer. May I ask you a few questions?

  1. I want to use HeterogeneityCAD modules to obtain texture features, but it is not in the module list. Module list like follow:
    Attachment
    How could I import this model.?
  2. Could I use .png or .off data as my input data? It always shows error when I import data.
    Thanks,
    Miao

Hi Miao,

Thanks so much for your email, I hope you dont mind I respond to your email in the Slicer forum.

  1. I am not aware of HeterogeneityCAD modules, do you mean BoneTexture extension?

  2. It is possible to load png data into Slicer. Specifically for analysis in the BoneTextureExtension you will need to save/export that image into nrrd or other volumetric image formats.

Please provide a bit more of info, and I/the rest of the Slicer community will try to do our best to help.
Best,

Bea

HeterogeneityCAD is an extension, not a core module - you will first need to install it using ExtensionManager.

You can also consider looking into the Radiomics extension that provides the Slicer interface to the pyradiomics library, which can be used to calculate ~1500 features: http://pyradiomics.readthedocs.io/en/latest/

cc: @JoostJM

The BoneTexture Extension is not able to compute textural features for 2D images, it only can be used for 3D scans in Slicer.

Therefore you can consider using the itk_texturefeatures python package that contain filter able to compute 1st order, Run Length an Co-occurrence textural features and textural feature maps for 2D and 3D images and can easily be intalled: pip install itk_texturefeatures.

More informations and code examples can be found here:
http://www.insight-journal.org/browse/publication/985

Got it. It works. Thank you!

I have install itk_texturefeature. How could I use it?

The BoneTexture Extension is not able to compute textural features for 2D images, it only can be used for 3D scans in Slicer. But I need to deal with 2D images. Is there any module can compute 2D images?

You can find some python code examples here:

Those two examples are for 3D images but it’s easy to adapt them in order to work with 2D images by moving dimension from 3 to 2 in each code.

I could obtain .off files which contain 3D points. Is there any function that can output a .nrrd file?

You can always create 3D volume from a “2D” image (single-slice 3D image) by resampling. Probably the simplest is to use CropVolume module for that.