21 #include <odinpara/ldrblock.h>
22 #include <odinpara/ldrnumbers.h>
23 #include <odinpara/ldrarrays.h>
24 #include <odinpara/odinpara.h>
41 enum sampleDim { frameDim=0, freqDim, zDim, yDim, xDim, n_sampleDim };
64 Sample(
const STD_string& label=
"unnamedSample",
bool uniformFOV=
true,
bool uniformT1T2=
false);
143 Sample&
resize(
unsigned int framesize,
unsigned int freqsize,
unsigned int zsize,
unsigned int ysize,
unsigned int xsize);
153 Sample&
set_T1(
float relaxation_time) {T1=relaxation_time; haveT1map=
false;
return *
this;}
158 Sample&
set_T2(
float relaxation_time) {T2=relaxation_time; haveT2map=
false;
return *
this;}
223 int append_all_members();
225 bool check_and_correct(
const char* mapname,
const farray& srcmap,
farray& dstmap);
245 mutable bool haveT1map;
246 mutable bool haveT2map;
249 mutable bool have_ppmMap;
252 mutable bool have_DcoeffMap;
Virtual Sample for Simulation.
Sample(const STD_string &label="unnamedSample", bool uniformFOV=true, bool uniformT1T2=false)
Sample & set_frame_durations(const dvector &intervals)
Sample & set_FOV(float fov)
Sample & set_FOV(axis direction, float fov)
const farray & get_ppmMap() const
const dvector & get_frame_durations() const
Sample & set_ppmMap(const farray &ppmmap)
Sample & resize(unsigned int framesize, unsigned int freqsize, unsigned int zsize, unsigned int ysize, unsigned int xsize)
Sample & set_freqoffset(float offs)
int load(const STD_string &filename, const LDRserBase &serializer=LDRserJDX())
Sample & set_T2map(const farray &t2map)
Sample & set_T1map(const farray &t1map)
const ndim & get_extent() const
const farray & get_spinDensity() const
Sample & set_freqrange(float range)
const farray & get_T1map() const
Sample & set_spatial_offset(axis direction, float offs)
float get_FOV(axis direction) const
float get_spatial_offset(axis direction) const
Sample & set_spinDensity(const farray &sd)
const farray & get_DcoeffMap() const
float get_freqoffset() const
Sample & operator=(const Sample &ss)
float get_freqrange() const
const farray & get_T2map() const
Sample & set_T1(float relaxation_time)
Sample & set_DcoeffMap(const farray &dmap)
Sample & set_T2(float relaxation_time)
MAGSI-based Magnetization Simulator.
const ndim & get_extent() const