msl 1.1.0
 
Loading...
Searching...
No Matches
KSpace.h
Go to the documentation of this file.
1// Copyright 2025 Julien Lamy, ICube, Université de Strasbourg-CNRS.
2// Part of msl, distributed under the terms of the MIT license.
3
4#ifndef _9285b743_fdb6_43af_8fe6_1577d9a187d7
5#define _9285b743_fdb6_43af_8fe6_1577d9a187d7
6
7#include <MrProtSrv/Domain/MrProtData/MrProt/MrProt.h>
8
9#include "Vector.h"
10
11namespace msl
12{
13
15class KSpace
16{
17public:
18
19 KSpace(MrProt & protocol);
20
21 KSpace(KSpace const &) = default;
22 KSpace(KSpace &&) = default;
23 KSpace & operator=(KSpace const &) = default;
24 KSpace & operator=(KSpace &&) = default;
25 ~KSpace() = default;
26
28 Vector3l const & nMin() const;
29
31 Vector3l const & nCenter() const;
32
34 Vector3l const & nMax() const;
35
37 Vector3l const & shape() const;
38
40 Vector3d k(Vector3l const & p) const;
41
42private:
43 bool _is3D;
44 Vector3l _shape, _nMin, _nCenter, _nMax;
45 Vector3d _delta;
46};
47
48}
49
50#endif // _9285b743_fdb6_43af_8fe6_1577d9a187d7
Vector3l const & nMax() const
Return the discrete coordinates of the maximum point.
Vector3l const & shape() const
Return the shape of the discrete k-space.
~KSpace()=default
KSpace(KSpace const &)=default
KSpace & operator=(KSpace &&)=default
Vector3l const & nCenter() const
Return the index of the center point.
Vector3l const & nMin() const
Return the discrete coordinates of the minimum point.
KSpace(MrProt &protocol)
KSpace(KSpace &&)=default
KSpace & operator=(KSpace const &)=default
Vector3d k(Vector3l const &p) const
Return the continuous coordinates in mT/m*µs of a discrete point.
Definition acceleration.h:17
Vector< 3, double > Vector3d
3D vector of doubles
Definition Vector.h:110
Vector< 3, long > Vector3l
3D vector of longs
Definition Vector.h:113