[ismrmrd] 51/281: Added first draft for a parallel imaging section in the schema defintion
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Jan 14 20:00:54 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag ismrmrd0.5
in repository ismrmrd.
commit 6980aba9777d3ffa3c73945cf7739447d78cba2e
Author: Michael S. Hansen <michael.hansen at nih.gov>
Date: Fri Sep 14 13:33:59 2012 -0400
Added first draft for a parallel imaging section in the schema defintion
---
schema/ismrmrd.xsd | 36 ++++++++++++++++++++++++++++++++++++
test_create_dataset.cpp | 5 +++++
2 files changed, 41 insertions(+)
diff --git a/schema/ismrmrd.xsd b/schema/ismrmrd.xsd
index eac214a..ba2e5df 100644
--- a/schema/ismrmrd.xsd
+++ b/schema/ismrmrd.xsd
@@ -18,6 +18,7 @@
</xs:all>
</xs:complexType>
</xs:element>
+ <xs:element maxOccurs="1" minOccurs="0" name="parallelImaging" type="parallelImagingType"/>
<xs:element maxOccurs="1" minOccurs="0" name="sequenceTiming" type="sequenceTimingType"/>
<xs:element maxOccurs="1" minOccurs="0" name="userParameters">
<xs:complexType>
@@ -141,4 +142,39 @@
<xs:element name="value" type="xs:double"/>
</xs:all>
</xs:complexType>
+
+ <xs:complexType name="accelerationFactorType">
+ <xs:all>
+ <xs:element name="kspace_encoding_step_1" type="xs:unsignedShort"/>
+ <xs:element name="kspace_encoding_step_2" type="xs:unsignedShort"/>
+ </xs:all>
+ </xs:complexType>
+
+ <xs:simpleType name="calibrationModeType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="embedded"/>
+ <xs:enumeration value="interleaved"/>
+ <xs:enumeration value="separate"/>
+ <xs:enumeration value="external"/>
+ <xs:enumeration value="other"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="interleavingDimensionType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="phase"/>
+ <xs:enumeration value="repetition"/>
+ <xs:enumeration value="contrast"/>
+ <xs:enumeration value="average"/>
+ <xs:enumeration value="other"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:complexType name="parallelImagingType">
+ <xs:sequence>
+ <xs:element type="accelerationFactorType" name="accelerationFactor"/>
+ <xs:element maxOccurs="1" minOccurs="0" type="calibrationModeType" name="calibrationMode"/>
+ <xs:element maxOccurs="1" minOccurs="0" type="interleavingDimensionType" name="interleavingDimension"/>
+ </xs:sequence>
+ </xs:complexType>
</xs:schema>
diff --git a/test_create_dataset.cpp b/test_create_dataset.cpp
index 51eb93b..a67331d 100644
--- a/test_create_dataset.cpp
+++ b/test_create_dataset.cpp
@@ -150,6 +150,11 @@ int main(int argc, char** argv)
//Add any additional fields that you may want would go here....
+ //e.g. parallel imaging
+ //ISMRMRD::parallelImagingType parallel(ISMRMRD::accelerationFactorType(2,1));
+ //parallel.calibrationMode(ISMRMRD::calibrationModeType::embedded);
+ //h.parallelImaging(parallel);
+
//Serialize the header
xml_schema::namespace_infomap map;
map[""].name = "http://www.ismrm.org/ISMRMRD";
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ismrmrd.git
More information about the debian-science-commits
mailing list