# Quantitative features with HeterogeneityCad

**URL:** https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518
**Category:** Support
**Tags:** radiomics
**Created:** [June 16, 2017, 10:47am UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518 "2017-06-16T10:47:15Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![mtamponi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mtamponi/32/332_2.png) [@mtamponi](https://discourse.slicer.org/u/mtamponi)
#### Post date: [June 16, 2017, 10:47am UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/1 "2017-06-16T10:47:15Z")

</div>

Operat Window 7 :  
Slicer 7.0 nightly build 10 march 2017:

1. If we calculate the entropy in the homogeneus region of a “volume-label” for a lesion with only one gray level, we wait for “entropy” a value equal to 0…
2. Using a CT-scan volume, for the “Autocorrelation” calculated in a tumor lesion we wait a value less than 1.
3. For other features, calculated on CT scan volumes using “volume-label” to descibe the lesion (we did for 9 patients with T1-T2 lung cancer lesions), we wait normal values  
Instead for a lesion with a volume of 2634.724 mm^3 (about 3 cc) we obtained:
4. the “entropy” value greater than 8000 in “volume-label” with only one gray level;
5. the “Autocorrelation” equal to 322607190 in CT-Scan volume ofe lesion;
6. the “Correlation” equal to 55006886.  
Some features, as for example, the “median intesity” they seem OK; some other feature do not seem Ok, as for example the “Autocorrelation”. We are looking for the mathematical description of the features implemented in “HetereogeneityCAD” of 3DSlicer, as for example that one given by by Parmar et al. (Robust Radiomics Feature Quantification Using Semiautomatic Volumetric Segmentation, Plos one, 2014, V 9, I. 7) in the supplement of their paper.

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [June 16, 2017, 1:06pm UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/2 "2017-06-16T13:06:45Z")

</div>

Thanks for reporting this - you may also be interested in trying the SlicerRadiomics extension, which is a fresh implementation of some of these feature calculations. We’d be curious to hear how these work on your data.

> **[Radiomics/SlicerRadiomics](https://github.com/Radiomics/SlicerRadiomics)**
>
> A Slicer extension to provide a GUI around pyradiomics - Radiomics/SlicerRadiomics

---

<div class="post-metadata">

### Author: ![mtamponi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mtamponi/32/332_2.png) [@mtamponi](https://discourse.slicer.org/u/mtamponi)
#### Post date: [June 17, 2017, 6:19am UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/3 "2017-06-17T06:19:30Z")

</div>

Thank You very much,  
we are try to install Radiomics in 3DSlicer and We hope to give You good feedback. Also, if it will be possible, for us it is also useful to have news about HeterogeneityCad,  
Sincerely,  
Matteo Tamponi

---

<div class="post-metadata">

### Author: ![mtamponi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mtamponi/32/332_2.png) [@mtamponi](https://discourse.slicer.org/u/mtamponi)
#### Post date: [June 17, 2017, 8:32am UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/4 "2017-06-17T08:32:27Z")

</div>

To Kind Attention of 3DSlicer Staff  
I tried to install Radiomics extension after installation of Slicer 4.7.0 nightly build on 17-june-2017 following the instruction in the github site in the [read.me](http://read.me) file. I tried following the user way, not downloading from the source. It looked all ok, but after Slicer restart, Radiomics is not in the Slicer Applications list. The installation of other applications was OK (As Registrations and SLICER RT ones). Before to install the 3d Slicer 4.7.0 Nightbuild for windows 64 bit (Windows 7 in my PC), I have removed the 4.6.2 stable version an the previously 4.7.0 version of 3dSlicer from my PC.  
What can I do, without to install 3dslicer from the source file?  
Sincerely,  
Matteo Tamponi

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [June 17, 2017, 2:14pm UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/5 "2017-06-17T14:14:55Z")

</div>

SlicerRadiomics extension is available for recent nightly builds on Windows and Mac. If you are in European time zone then you may wait until early afternoon for all extensions to become available (or [download an earlier nightly build](https://www.slicer.org/wiki/Documentation/Nightly/FAQ/General#Where_can_I_download_Slicer.3F) - for example: [download yesterday’s build](http://download.slicer.org/?offset=-1))

@fedorov FYI, there is a [packaging error of SlicerRadiomics on Linux](http://slicer.cdash.org/viewBuildError.php?buildid=1045149).

---

<div class="post-metadata">

### Author: ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)
#### Post date: [June 18, 2017, 2:08am UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/6 "2017-06-18T02:08:30Z")

</div>

> [@lassoan](#):
>
> @fedorov FYI, there is a packaging error of SlicerRadiomics on Linux.

Yes, that is a known issue [Slicer Linux dashboard issues · Issue #16 · AIM-Harvard/SlicerRadiomics · GitHub](https://github.com/Radiomics/SlicerRadiomics/issues/16)

---

<div class="post-metadata">

### Author: ![mtamponi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mtamponi/32/332_2.png) [@mtamponi](https://discourse.slicer.org/u/mtamponi)
#### Post date: [June 19, 2017, 8:23am UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/7 "2017-06-19T08:23:28Z")

</div>

To kind attention fo 3DSlicer Staff,  
Thank You very much for You help, in particulary to Andrey Fedorov, Andras Lasso and Steve Pieper,  
This morning I installed again 3Dslicer 4.7.0. v 17 june 2017 and then, from estension utility, I installed “radiomics” and other extensions as those for segmentation (14 extensions) and those for registration and those for radiation therapy and many others. However, while the other extensions run, “radiomics” does not result in the list of modules and also looking for it, I cannot find it.  
I’d like to be able to use “radiomics”, while I hope to have some more informations about HerogeneityCad too.  
I’m using Windows 7 64 bit and 16 GB radiological workstation.  
Thank for Your Attention  
Sincerely,  
Matteo Tamponi

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [June 19, 2017, 12:28pm UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/8 "2017-06-19T12:28:39Z")

</div>

Hi Matteo -

Sorry, yes, that’s another ‘known issue’ that I’d thought was resolved. I just posted instructions there to workaround around the issue and that should make things work for you. Once I did this the Radiomics module was available on my recent windows nightly and works as expected.

[https://github.com/Radiomics/SlicerRadiomics/issues/23](https://github.com/Radiomics/SlicerRadiomics/issues/23)

-Steve

---

<div class="post-metadata">

### Author: ![mtamponi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mtamponi/32/332_2.png) [@mtamponi](https://discourse.slicer.org/u/mtamponi)
#### Post date: [June 21, 2017, 9:37am UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/9 "2017-06-21T09:37:35Z")

</div>

To Kind Attention of Steve Pieper,

Steve,  
I tried to follow this instruction:  
"“C:/Users/username/AppData/Roaming/NA-MIC/Extensions-revision/SlicerRadiomics/lib/site-packages/radiomics/featureextractor.py  
Where revision is something like 26083 depending on the nightly version of Slicer.  
Line 9 should be changed from:  
import pykwalify.core”"

but I cannot find the directory "C:/Users/username/AppData/Roaming/NA-MIC/Extensions-revision/SlicerRadiomics/lib/site-packages/radiomics/"and the file “[featureextractor.py](http://featureextractor.py)” in my computer  
(“Users” is “Utenti” and “Username” is “Fisica” in my computer)

so I cannot have “radiomics” in my 3d-Slicer 4.7.0 extension on Window 7. What can I do?

Also for the features calculated with HeterogeneityCad, can I ask to Somebody?

Thank for Your Attention,  
Sincerely,  
Matteo

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [June 21, 2017, 7:42pm UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/10 "2017-06-21T19:42:08Z")

</div>

Hi Matteo -

The AppData folder may be hidden using regular browsing techniques on windows. You can get to it with a cmd prompt (kind of low level, but not uncommon).

@jayender is probably the best contact for HeterogeneityCAD.

Hope that helps,  
Steve

---

<div class="post-metadata">

### Author: ![jayender](https://avatars.discourse-cdn.com/v4/letter/j/f04885/32.png) [@jayender](https://discourse.slicer.org/u/jayender)
#### Post date: [June 21, 2017, 7:43pm UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/11 "2017-06-21T19:43:18Z")

</div>

Hi Matteo

Regarding the HeterogeneityCAD module, please follow the instructions on [https://www.slicer.org/wiki/Documentation/Nightly/Modules/HeterogeneityCAD](https://www.slicer.org/wiki/Documentation/Nightly/Modules/HeterogeneityCAD)

The references for the metric computation are included on the webpage. Please let me know if you have any questions.

Thanks  
Jay

---

<div class="post-metadata">

### Author: ![mtamponi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mtamponi/32/332_2.png) [@mtamponi](https://discourse.slicer.org/u/mtamponi)
#### Post date: [June 22, 2017, 6:37am UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/12 "2017-06-22T06:37:06Z")

</div>

Dear Steve,  
I followed Your indication, from “cmd” level. Now “Radiomics” run.  
Also I received a mail from Jayender. I hope to do some comparisons of some features with “Radiomics” and “HeterogeneityCad” in 2dSlicer.,  
Thank You very much,  
Sincerely,  
Matteo

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [June 22, 2017, 11:41am UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/13 "2017-06-22T11:41:12Z")

</div>

Great! Let us know how it goes.

---

<div class="post-metadata">

### Author: ![mtamponi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mtamponi/32/332_2.png) [@mtamponi](https://discourse.slicer.org/u/mtamponi)
#### Post date: [June 22, 2017, 3:25pm UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/14 "2017-06-22T15:25:36Z")

</div>

Yes, Steve,  
I’ll take time, but I’ll informe You about our experience with “radiomics”,  
Thank You,  
Matteo

---

<div class="post-metadata">

### Author: ![mtamponi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mtamponi/32/332_2.png) [@mtamponi](https://discourse.slicer.org/u/mtamponi)
#### Post date: [June 22, 2017, 4:00pm UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/15 "2017-06-22T16:00:42Z")

</div>

To Kind Attention of Jay,  
Jay  
Yes, we followed the instructions in the site "[https://www.slicer.org/wiki/Documentation/Nightly/Modules/HeterogeneityCAD](https://www.slicer.org/wiki/Documentation/Nightly/Modules/HeterogeneityCAD)"  
and we were able to calculate all features in HeterogeneityCAD with 3D-Slicer 4.7.0 for about 10 patients with small lung cancer lesions.  
We observed that for small lung cancer lesions, HeteregeneityCad, in our PC (16 GB ram) is quite fast also for Geometrical Measures and Renyi Dimensions that need more calculation time. The time grows up very rapidly, increasly the lesion dimension for these kind of features (expecailly for Renyi Dimensions).  
We are trying to understand the meaning of the features. Some features for us seem more easy and the results of our calculation seem nice.  
But the mathematical definition for some features for us are not clear; In particular, we don’t understand some results, as for example those obtained for the “Entropy” and the Texture  
features: “Autocorrelation” and for “Correlation”.  
For example for the “Autocorrelation” we obtained 322607190 and for the “Correlation” 55006886 for a volume lesion of 2635 mm3.  
Also, for example if we calculate Entropy (first order features) in a homogeneus ROI, only on gray level, we obtained a value greater than 8000 instead of 0.  
To try to understand, we downloaded the supplement material of the paper of Coroller et al. on Radiotherapy and Oncology 114 (2015) 345–350, where there are some mathematical definitions of many features, as the Entropy for example.  
There is some mathematical definition of the features in HetereoneityCad more detailed and if possible with Unit of Measure, possible minimum and maximum?  
Thak You very much for Your help and indicantions,  
Sincerely,  
Matteo

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [June 22, 2017, 4:03pm UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/16 "2017-06-22T16:03:10Z")

</div>

> [@mtamponi](#):
>
> To Kind Attention of Jay

Please use mention (@someusername) to bring something to someone’s attention. It is shorter and the mentioned person actually gets a personal notification.

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [June 22, 2017, 5:56pm UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/17 "2017-06-22T17:56:37Z")

</div>

> [@lassoan](#):
>
> To Kind Attention of Jay
> 
> Please use mention (@someusername) to bring something to someone’s attention. It is shorter and the mentioned person actually gets a personal notification.

In this case @jayender

---

<div class="post-metadata">

### Author: ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)
#### Post date: [June 22, 2017, 7:08pm UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/18 "2017-06-22T19:08:47Z")

</div>

@mtamponi you might want to look at this evolving document that summarizes community consensus about radiomics feature definitions: [https://arxiv.org/abs/1612.07003](https://arxiv.org/abs/1612.07003)

Speaking of pyradiomics [http://pyradiomics.readthedocs.io/en/latest/](http://pyradiomics.readthedocs.io/en/latest/), most of the features implemented there are implemented consistently with the formulas described in the paper I mentioned above. If you have specific questions about pyradiomics implementation, you can raise them on the pyradiomics forum (see documentation).

---

<div class="post-metadata">

### Author: ![mtamponi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mtamponi/32/332_2.png) [@mtamponi](https://discourse.slicer.org/u/mtamponi)
#### Post date: [June 23, 2017, 6:37am UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/19 "2017-06-23T06:37:16Z")

</div>

@fedorov,  
Thank Andrey ,  
I look and download the arxiv evolving document and check the site of pyradiomics that You indicated, They are very useful for our work. Thank You very much to You and also to Steve, Andras an Jay,  
Matteo

---

<div class="post-metadata">

### Author: ![mtamponi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mtamponi/32/332_2.png) [@mtamponi](https://discourse.slicer.org/u/mtamponi)
#### Post date: [June 23, 2017, 3:19pm UTC](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518/20 "2017-06-23T15:19:30Z")

</div>

@fedorov  
Andrey  
Attached to this mail You can find 3 screen shots with 3dSlicer, 2 using Radiomics and 1 using HeterogeneityCad for the same lesion in . You can see that for: Entropy, Kurtosis and Uniformity, the calculates values are very different. For Energy, median intensity, Skewness, voxel count, variance are exactly equal.  
I could be some problems in the calculation of entropy, Kurtosis and Uniformity, probably in HeterogeneityCAD, but I don’t know.

 ![](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/1X/6f1c07e0770946da05a56c75b6f80b0456a9dbdc.jpg) ![](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/1X/72b2a510d5703d39cf88cdfd1bfc0d6e93dff6cb.jpg) ![](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/1X/cd71e88cba10f9ddb8d7a9d75933dfea2eee3f24.jpg)Matteo

[Next page](https://discourse.slicer.org/t/quantitative-features-with-heterogeneitycad/518.md?page=2)
