sys.path.append(os.environ['GADGETRON_HOME'] + '/share/gadgetron/python') import ismrmrd import ismrmrd.xsd import numpy as np from ismrmrdtools import show from gadgetron import WrapperGadget import GadgetronPythonMRI as g # <gadget> # <name>NoiseAdjust</name> # <dll>gadgetron_mricore</dll> # <classname>NoiseAdjustGadget</classname> # </gadget> g1 = WrapperGadget("gadgetron_mricore", "NoiseAdjustGadget") # <gadget> # <name>PCA</name> # <dll>gadgetron_mricore</dll> # <classname>PCACoilGadget</classname> # </gadget> g2 = WrapperGadget("gadgetron_mricore", "PCACoilGadget", next_gadget=None) g1.next_gadget = g2 # <gadget> # <name>CoilReduction</name> # <dll>gadgetron_mricore</dll> # <classname>CoilReductionGadget</classname> # <property><name>coils_out</name><value>16</value></property>
import ismrmrd import ismrmrd.xsd import numpy as np from ismrmrdtools import show from gadgetron import WrapperGadget import GadgetronPythonMRI as g # <gadget> # <name>NoiseAdjust</name> # <dll>gadgetron_mricore</dll> # <classname>NoiseAdjustGadget</classname> # </gadget> g1 = WrapperGadget("gadgetron_mricore","NoiseAdjustGadget") # <gadget> # <name>PCA</name> # <dll>gadgetron_mricore</dll> # <classname>PCACoilGadget</classname> # </gadget> g2 = WrapperGadget("gadgetron_mricore","PCACoilGadget", next_gadget=None) g1.next_gadget = g2 # <gadget> # <name>CoilReduction</name> # <dll>gadgetron_mricore</dll> # <classname>CoilReductionGadget</classname>
sys.path.append(os.environ['GADGETRON_HOME'] + '/share/gadgetron/python') import ismrmrd import ismrmrd.xsd import numpy as np from ismrmrdtools import show from remove_2x_oversampling import Remove2xOversampling from accumulate_and_recon import AccumulateAndRecon from rms_coil_combine import RMSCoilCombine from gadgetron import WrapperGadget import GadgetronPythonMRI as g import threading import time #%% Setup gadgets g4 = WrapperGadget("gadgetron_mricore", "ExtractGadget", next_gadget=None) g3 = RMSCoilCombine(g4) g2 = AccumulateAndRecon(g3) g1 = Remove2xOversampling(g2) g0 = WrapperGadget("gadgetron_mricore", "NoiseAdjustGadget", next_gadget=g1) def gadget_wait_function(first_gadget): g = first_gadget while (g): g.wait() g = g.next_gadget def gadget_config(first_gadget, conf): g = first_gadget
sys.path.append(os.environ['GADGETRON_HOME'] + '/share/gadgetron/python') import ismrmrd import ismrmrd.xsd import numpy as np from ismrmrdtools import show from remove_2x_oversampling import Remove2xOversampling from accumulate_and_recon import AccumulateAndRecon from rms_coil_combine import RMSCoilCombine from gadgetron import WrapperGadget import GadgetronPythonMRI as g import threading import time #%% Setup gadgets g4 = WrapperGadget("gadgetron_mricore","ExtractGadget", next_gadget=None) g3 = RMSCoilCombine(g4) g2 = AccumulateAndRecon(g3) g1 = Remove2xOversampling(g2) g0 = WrapperGadget("gadgetron_mricore","NoiseAdjustGadget",next_gadget=g1) def gadget_wait_function(first_gadget): g = first_gadget; while (g): g.wait() g = g.next_gadget def gadget_config(first_gadget, conf): g = first_gadget; while (g):