public class FunctionalGroupUtilities
extends java.lang.Object
A class contain useful methods for manipulating Functional Group Sequences.
| Constructor and Description |
|---|
FunctionalGroupUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static AttributeList |
createFunctionalGroupsIfNotPresent(AttributeList list,
int numberOfFrames)
Create shared and per-frame functional group sequences if not already present.
|
static AttributeList |
generatePixelValueTransformationFunctionalGroup(AttributeList list,
int numberOfFrames,
double rescaleSlope,
double rescaleIntercept,
java.lang.String rescaleType)
Insert a shared functional group sequence Pixel Value Transformation Sequence entry.
|
static AttributeList |
generateVOILUTFunctionalGroup(AttributeList list,
int numberOfFrames,
double windowWidth,
double windowCenter,
java.lang.String voiLUTFunction)
Insert a shared functional group sequence Frame VOI LUT Sequence entry.
|
static void |
removeFunctionalGroup(AttributeList list,
AttributeTag functionalGroupSequenceTag)
Remove a specified functional group sequences from the shared and per-frame functional group sequences.
|
public static AttributeList createFunctionalGroupsIfNotPresent(AttributeList list, int numberOfFrames)
Create shared and per-frame functional group sequences if not already present.
list - an existing (possibly empty) attribute list, if null, a new one will be created; may already shared and per-frame functional group sequences or they will be addednumberOfFrames - return attribute list with empty per-frame and shared functional group sequences faddedDicomExceptionpublic static AttributeList generatePixelValueTransformationFunctionalGroup(AttributeList list, int numberOfFrames, double rescaleSlope, double rescaleIntercept, java.lang.String rescaleType) throws DicomException
Insert a shared functional group sequence Pixel Value Transformation Sequence entry.
list - an existing (possibly empty) attribute list, if null, a new one will be created; may already shared and per-frame functional group sequences or they will be addednumberOfFrames - rescaleSlope - rescaleIntercept - rescaleType - return attribute list with per-frame and shared functional group sequences for VOI addedDicomExceptionpublic static AttributeList generateVOILUTFunctionalGroup(AttributeList list, int numberOfFrames, double windowWidth, double windowCenter, java.lang.String voiLUTFunction) throws DicomException
Insert a shared functional group sequence Frame VOI LUT Sequence entry.
list - an existing (possibly empty) attribute list, if null, a new one will be created; may already shared and per-frame functional group sequences or they will be addednumberOfFrames - windowWidth - windowCenter - voiLUTFunction - return attribute list with per-frame and shared functional group sequences for VOI addedDicomExceptionpublic static void removeFunctionalGroup(AttributeList list, AttributeTag functionalGroupSequenceTag)
Remove a specified functional group sequences from the shared and per-frame functional group sequences.
list - an attribute listnumberOfFrames - functionalGroupSequenceTag