I think the issue is related to the fact that Whole Lung has two potential hierarchical groups:
Left L + Right L
Upper Third + Middle Third + Lower Third
SimpleLungMask produces the second grouping that it does not seem to be properly addressed by itkCIPExtractChestLabelMapImageFilter
NOTE: This has to be tested in the release branch. GenerateSimpleLungMask is using the new convention in the Release Branch.
Just run into a Region/Type hierarchy issue. The issue can be reproduced as follows
GenerateSimpleLungMask -i/Testing/Data/Input/ct-64.nrrd -o /tmp/kk.nrrd
ExtractChestLabelMap -r WholeLung -i /tmp/kk.nrrd -o /tmp/kk2.nrrd
I think the issue is related to the fact that Whole Lung has two potential hierarchical groups: Left L + Right L Upper Third + Middle Third + Lower Third
SimpleLungMask produces the second grouping that it does not seem to be properly addressed by itkCIPExtractChestLabelMapImageFilter
NOTE: This has to be tested in the release branch. GenerateSimpleLungMask is using the new convention in the Release Branch.