0

I am trying to remove complete branches (PATIENT, STUDY) from a DICOMDIR file.

Why does the class SequenceOfItems only has a "AddItem(item)" function and a "Clear()" function which removes all items, but no "RemoveItem(item)" function.

How do I remove items from a sequence? Is this possible at all? Is there an example for this somewhere?

malat
  • 12,152
  • 13
  • 89
  • 158
Stiefel
  • 2,677
  • 3
  • 31
  • 42

1 Answers1

0

There is now a function:

bool gdcm::SequenceOfItems::RemoveItemByIndex(const SizeType index) 

Remove an Item as specified by its index, if index > size, false is returned Index starts at 1 not 0

see here.

malat
  • 12,152
  • 13
  • 89
  • 158