Export Hounsfield Unit values as a table from each segmentation

I’ve tested this example script and it works perfectly for both latest Slicer Stable Release and Slicer Preview Release.

All you need to do is to replace the first part (that generates input data) with setting your data as masterVolumeNode, segmentationNode, labelValue.