SIVIC API  0.9.26
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
svkVarianCSFidMapper.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2009-2014 The Regents of the University of California.
3  * All Rights Reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  * • Redistributions of source code must retain the above copyright notice,
8  * this list of conditions and the following disclaimer.
9  * • Redistributions in binary form must reproduce the above copyright notice,
10  * this list of conditions and the following disclaimer in the documentation
11  * and/or other materials provided with the distribution.
12  * • None of the names of any campus of the University of California, the name
13  * "The Regents of the University of California," or the names of any of its
14  * contributors may be used to endorse or promote products derived from this
15  * software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20  * IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
21  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
26  * OF SUCH DAMAGE.
27  */
28 
29 
30 
31 /*
32  * $URL$
33  * $Rev$
34  * $Author$
35  * $Date$
36  *
37  * Authors:
38  * Jason C. Crane, Ph.D.
39  * Beck Olson
40  */
41 
42 #ifndef SVK_VARIAN_CS_FID_MAPPER_H
43 #define SVK_VARIAN_CS_FID_MAPPER_H
44 
45 
46 #include <vtkImageData.h>
47 #include <svkVarianFidMapper.h>
48 
49 #include <vector>
50 
51 
52 namespace svk {
53 
54 
86 {
87 
88  public:
89 
91  static svkVarianCSFidMapper* New();
92 
93  virtual void ReadFidFile( string fidFileName, svkImageData* data );
94 
95 
96  protected:
97 
100 
102  virtual void InitAcquisitionContextModule();
103  virtual void InitPlaneOrientationMacro();
104  virtual void InitSharedFunctionalGroupMacros();
105  virtual void InitPerFrameFunctionalGroupMacros();
106  virtual void InitPixelMeasuresMacro();
107  virtual void InitMRReceiveCoilMacro();
109  virtual void InitMRSpectroscopyModule();
110  virtual void InitMRSpectroscopyFOVGeometryMacro();
111  virtual void InitMRSpectroscopyDataModule();
112 
113  virtual void SetCellSpectrum(
114  vtkImageData* data,
115  int x, int y, int z,
116  int timePt,
117  int coilNum
118  );
119 
120  private:
121 
122  float*** paddedData;
123  float**** rectilinearData;
124  void ReOrderSamples( float* specDataReordered, int numberDataPointsInFIDFile );
125  void ReOrderFlyback();
126  void ZeroPadCompressedSensingData( int numberDataPointsInFIDFile );
127  vector<int> GetBlips();
128  void GetBlipString(string* blipString);
129 
130  int numXReordered;
131  int numYReordered;
132  int numZReordered;
133  int numTReordered;
134 
135 };
136 
137 
138 } //svk
139 
140 #endif //SVK_VARIAN_CS_FID_MAPPER_H
141 
virtual void InitPerFrameFunctionalGroupMacros()
Definition: svkVarianCSFidMapper.cc:307
virtual void InitMRSpectroscopyModule()
Definition: svkVarianCSFidMapper.cc:643
virtual void InitMRSpectroscopyFOVGeometryMacro()
Definition: svkVarianCSFidMapper.cc:403
Definition: svkVarianFidMapper.h:74
svkVarianCSFidMapper()
Definition: svkVarianCSFidMapper.cc:64
~svkVarianCSFidMapper()
Definition: svkVarianCSFidMapper.cc:88
virtual void InitMultiFrameFunctionalGroupsModule()
Definition: svkVarianCSFidMapper.cc:136
Definition: svkVarianCSFidMapper.h:85
virtual void InitPlaneOrientationMacro()
Definition: svkVarianCSFidMapper.cc:200
virtual void InitMRSpectroscopyPulseSequenceModule()
Definition: svkVarianCSFidMapper.cc:785
virtual void InitMRSpectroscopyDataModule()
Definition: svkVarianCSFidMapper.cc:869
virtual void InitMRReceiveCoilMacro()
Definition: svkVarianCSFidMapper.cc:611
vtkTypeMacro(svkVarianCSFidMapper, svkVarianFidMapper)
virtual void InitSharedFunctionalGroupMacros()
Definition: svkVarianCSFidMapper.cc:159
virtual void InitAcquisitionContextModule()
Definition: svkVarianCSFidMapper.cc:635
virtual void ReadFidFile(string fidFileName, svkImageData *data)
Definition: svkVarianCSFidMapper.cc:890
virtual void SetCellSpectrum(vtkImageData *data, int x, int y, int z, int timePt, int coilNum)
Definition: svkVarianCSFidMapper.cc:1421
Definition: svkImageData.h:107
static svkVarianCSFidMapper * New()
virtual void InitPixelMeasuresMacro()
Definition: svkVarianCSFidMapper.cc:369