Class DicomDatasetExtensions
Inheritance
Inherited Members
Namespace: FellowOakDicom.IO.Writer
Assembly: fo-dicom.core.dll
Syntax
public static class DicomDatasetExtensions
Methods
RecalculateGroupLength(DicomDataset, UInt16, Boolean)
Recalculates the group length element for the specified group. Removes the group length element if no elements exist for the specified group.
Declaration
public static void RecalculateGroupLength(this DicomDataset dataset, ushort group, bool createIfMissing = true)
Parameters
Type | Name | Description |
---|---|---|
DicomDataset | dataset | DICOM dataset |
System.UInt16 | group | DICOM tag group |
System.Boolean | createIfMissing | If set to |
Remarks
For most use cases, this method will be called by the library as needed and will not need to be called by the user.
RecalculateGroupLengths(DicomDataset, Boolean)
Recalculates the group lengths for all groups in the dataset
. Removes any group lengths for groups with out elements.
Declaration
public static void RecalculateGroupLengths(this DicomDataset dataset, bool createIfMissing = true)
Parameters
Type | Name | Description |
---|---|---|
DicomDataset | dataset | DICOM dataset |
System.Boolean | createIfMissing | If set to |
Remarks
For most use cases, this method will be called by the library as needed and will not need to be called by the user.
RemoveGroupLengths(DicomDataset, Boolean)
Removes group length elements from the DICOM dataset.
Declaration
public static void RemoveGroupLengths(this DicomDataset dataset, bool firstLevelOnly = false)
Parameters
Type | Name | Description |
---|---|---|
DicomDataset | dataset | DICOM dataset |
System.Boolean | firstLevelOnly | If set to |
Remarks
For most use cases, this method will be called by the library as needed and will not need to be called by the user.