WEMDicomSave¶
-
MacroModule
¶ genre DICOM
author MeVis Medical Solutions AG
package MeVisLab/Standard
definition WEMDicomSave.def see also WEMDicomLoad
,WEMSave
,WEMLoad
keywords save
,store
,write
,mesh
,surface
,segmentation
,object
,sso
Purpose¶
The module WEMDicomSave
saves a WEM object as a DICOM Surface Segmentation Object.
Usage¶
Connect a WEM to inWEM
and some reference DICOM tree to inRefTree
, fill in the required fields, and press Save
.
Details¶
The module will copy a number of required tags from inRefTree
.
Each WEM patch will be put into its own segment. If you require something different, you need to copy this module (or use the wrapper used in this module directly) and modify the use of addSurface and addSegment accordingly.
Input Fields¶
inWEM¶
-
name:
inWEM
, type:
WEM(MLBase)
¶ Connect a WEM object to this input.
For accessing this object via scripting see the Scripting Reference:MLWEMWrapper
.
inRefTree¶
-
name:
inRefTree
, type:
DicomTree(MLBase)
¶ Connect a reference DICOM tree to this input. If you only have a reference image, you can use
GetDicomTreeFromImage
to extract the DICOM information.For accessing this object via scripting see the Scripting Reference:MLABDicomTree
.
Parameter Fields¶
Field Index¶
Algorithm Name : String |
Copy Equipment Tags From Reference : Bool |
Save : Trigger |
Algorithm Type : Enum |
Device Serial Number : String |
Scheme : String |
Algorithm Version : String |
Filename : String |
segmentationPropertyMappingJSON : String |
Code : String |
Instance Number : Integer |
Series Number : Integer |
Content Creators Name : String |
Manufacturer : String |
Set Now : Trigger |
Content Date : String |
Manufacturers Model Name : String |
Software Versions : String |
Content Description : String |
Meaning : String |
Status : String |
Content Label : String |
Ok : Bool |
|
Content Time : String |
referenceReferenceTree : Bool |
Visible Fields¶
Save¶
-
name:
save
, type:
Trigger
¶ When pressed, the generation and saving of the DICOM file is triggered.
Status¶
Ok¶
-
name:
ok
, type:
Bool
, persistent:
no
¶ Shows whether the last save operation performed without problems.
Copy Equipment Tags From Reference¶
Manufacturers Model Name¶
-
name:
manufacturersModelName
, type:
String
¶ Sets the value of the ManufacturersModelName (0008,1090) tag.
Device Serial Number¶
-
name:
deviceSerialNumber
, type:
String
¶ Sets the value of the DeviceSerialNumber (0008,1000) tag.
Software Versions¶
-
name:
softwareVersions
, type:
String
¶ Sets the value of the SoftwareVersions (0008,1020) tag.
Set Now¶
-
name:
setContentDateTimeToNow
, type:
Trigger
¶ Sets the value of
Content Date
andContent Time
to the current time.
Content Label¶
-
name:
contentLabel
, type:
String
¶ Sets the value of the ContentLabel (0070,0080) tag.
Content Description¶
-
name:
contentDescription
, type:
String
¶ Sets the value of the ContentDescription (0070,0081) tag.
Content Creators Name¶
-
name:
contentCreatorsName
, type:
String
¶ Sets the value of the ContentCreatorsName (0070,0084) tag.
Series Number¶
-
name:
seriesNumber
, type:
Integer
, default:
1
, minimum:
1
¶ Sets the value of the SeriesNumber (0020,0011) tag.
This should be the number of the (generated) series in the study given by
inRefTree
. To be correct, one would need to know how many series have been generated for the study already, but probably one can get away with an incorrect number (there is always the SeriesInstanceUID that is guaranteed to be unique).
Instance Number¶
-
name:
instanceNumber
, type:
Integer
, default:
1
, minimum:
1
¶ Sets the value of the InstanceNumber (0020,0013) tag.
The number of the generated instance in the current (generated) series. 1 should always be correct.
Algorithm Type¶
-
name:
algorithmType
, type:
Enum
, default:
AUTOMATIC
¶ Sets the value of the SegmentAlgorithmType (0062,0008) tag in the SegmentSequence (0062,0002) sequence.
Values:
Title | Name |
---|---|
Automatic | AUTOMATIC |
Semiautomatic | SEMIAUTOMATIC |
Manual | MANUAL |
Algorithm Name¶
-
name:
algorithmName
, type:
String
¶ Sets the value of the AlgorithmName (0066,0036) tag in the SegmentSurfaceGenerationAlgorithmIdentificationSequence (0066,002D) sequence in the ReferencedSurfaceSequence (0066,002B) sequence in the SegmentSequence (0062,0002) sequence.
This should be the user-defined name of the algorithm used to generate the surface.
Algorithm Version¶
-
name:
algorithmVersion
, type:
String
¶ Sets the value of the AlgorithmVersion (0066,0031) tag in the SegmentSurfaceGenerationAlgorithmIdentificationSequence (0066,002D) sequence in the ReferencedSurfaceSequence (0066,002B) sequence in the SegmentSequence (0062,0002) sequence.
This should be the user-defined version string of the algorithm used to generate the surface.
Code¶
-
name:
algorithmCode
, type:
String
¶ Sets the value of the CodeValue (0008,0100) tag (or LongCodeValue (0008,0119) tag) in the AlgorithmFamilyCodeSequence (0066,002F) sequence in the SegmentSurfaceGenerationAlgorithmIdentificationSequence (0066,002D) sequence in the ReferencedSurfaceSequence (0066,002B) sequence in the SegmentSequence (0062,0002) sequence.
This identifies the principal type of algorithm employed. This will be automatically set if the user selects one of the predefined values offered for
Meaning
.
Scheme¶
-
name:
algorithmScheme
, type:
String
¶ Sets the value of the CodingSchemeDesignator (0008,0102) tag in the AlgorithmFamilyCodeSequence (0066,002F) sequence in the SegmentSurfaceGenerationAlgorithmIdentificationSequence (0066,002D) sequence in the ReferencedSurfaceSequence (0066,002B) sequence in the SegmentSequence (0062,0002) sequence.
This serves as a namespace for
Code
value. This will be automatically set if the user selects one of the predefined values offered forMeaning
.
Meaning¶
-
name:
algorithmMeaning
, type:
String
¶ Sets the value of the CodeMeaning (0008,0104) tag in the AlgorithmFamilyCodeSequence (0066,002F) sequence in the SegmentSurfaceGenerationAlgorithmIdentificationSequence (0066,002D) sequence in the ReferencedSurfaceSequence (0066,002B) sequence in the SegmentSequence (0062,0002) sequence.
This is the user-readable description for
Code
. There is a list of predefined values. Selecting one of these will also setCode
andScheme
.