v2.0.0
Loading...
Searching...
No Matches
mne_source_space.cpp File Reference

Definition of the MNESourceSpace Class. More...

#include "mne_source_space.h"
#include "mne_nearest.h"
#include "mne_patch_info.h"
#include "mne_mgh_tag_group.h"
#include "mne_surface.h"
#include "filter_thread_arg.h"
#include <fiff/fiff_coord_trans.h>
#include <fiff/fiff_constants.h>
#include <fiff/fiff_sparse_matrix.h>
#include <fiff/fiff_stream.h>
#include <fiff/fiff_tag.h>
#include <utils/ioutils.h>
#include <QFile>
#include <QTextStream>
#include <QtConcurrent>
#include <math.h>
Include dependency graph for mne_source_space.cpp:

Go to the source code of this file.

Classes

class  FiffCoordTrans
 Coordinate transformation description. More...

Macros

#define _USE_MATH_DEFINES
#define X_51   0
#define Y_51   1
#define Z_51   2
#define ALLOC_INT_51(x)
#define MALLOC_51(x, t)
#define ALLOC_CMATRIX_51(x, y)
#define TRUE   1
#define FALSE   0
#define FAIL   -1
#define OK   0
#define X_17   0
#define Y_17   1
#define Z_17   2
#define VEC_DOT_17(x, y)
#define VEC_LEN_17(x)
#define VEC_DIFF_17(from, to, diff)
#define VEC_COPY_17(to, from)
#define FREE_17(x)
#define MALLOC_17(x, t)
#define ALLOC_CMATRIX_17(x, y)
#define ALLOC_ICMATRIX_17(x, y)
#define FREE_CMATRIX_17(m)
#define FREE_ICMATRIX_17(m)
#define NNEIGHBORS   26
#define CURVATURE_FILE_MAGIC_NUMBER   (16777215)
#define TAG_OLD_MGH_XFORM   30
#define TAG_OLD_COLORTABLE   1
#define TAG_OLD_USEREALRAS   2
#define TAG_USEREALRAS   4
#define EVEN(n)
#define LH_LABEL_TAG   "-lh.label"
#define RH_LABEL_TAG   "-rh.label"

Functions

float ** mne_cmatrix_51 (int nr, int nc)

Detailed Description

Definition of the MNESourceSpace Class.

Author
Lorenz Esch lesch.nosp@m.@mgh.nosp@m..harv.nosp@m.ard..nosp@m.edu; Matti Hamalainen msh@n.nosp@m.mr.m.nosp@m.gh.ha.nosp@m.rvar.nosp@m.d.edu; Christoph Dinh chdin.nosp@m.h@nm.nosp@m.r.mgh.nosp@m..har.nosp@m.vard..nosp@m.edu
Since
0.1.0
Date
January, 2017

LICENSE

Copyright (C) 2017, Lorenz Esch, Matti Hamalainen, Christoph Dinh. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of MNE-CPP authors nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file mne_source_space.cpp.

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 60 of file mne_source_space.cpp.

◆ ALLOC_CMATRIX_17

#define ALLOC_CMATRIX_17 ( x,
y )
Value:
mne_cmatrix_17((x),(y))

Definition at line 115 of file mne_source_space.cpp.

◆ ALLOC_CMATRIX_51

#define ALLOC_CMATRIX_51 ( x,
y )
Value:
float ** mne_cmatrix_51(int nr, int nc)

Definition at line 73 of file mne_source_space.cpp.

◆ ALLOC_ICMATRIX_17

#define ALLOC_ICMATRIX_17 ( x,
y )
Value:
mne_imatrix_17((x),(y))

Definition at line 117 of file mne_source_space.cpp.

◆ ALLOC_INT_51

#define ALLOC_INT_51 ( x)
Value:
MALLOC_51(x,int)
#define MALLOC_51(x, t)

Definition at line 69 of file mne_source_space.cpp.

◆ CURVATURE_FILE_MAGIC_NUMBER

#define CURVATURE_FILE_MAGIC_NUMBER   (16777215)

Definition at line 125 of file mne_source_space.cpp.

◆ EVEN

#define EVEN ( n)
Value:
((((n) / 2) * 2) == n)

◆ FAIL

#define FAIL   -1

Definition at line 84 of file mne_source_space.cpp.

◆ FALSE

#define FALSE   0

Definition at line 80 of file mne_source_space.cpp.

◆ FREE_17

#define FREE_17 ( x)
Value:
if ((char *)(x) != NULL) free((char *)(x))

Definition at line 111 of file mne_source_space.cpp.

◆ FREE_CMATRIX_17

#define FREE_CMATRIX_17 ( m)
Value:
mne_free_cmatrix_17((m))

Definition at line 119 of file mne_source_space.cpp.

◆ FREE_ICMATRIX_17

#define FREE_ICMATRIX_17 ( m)
Value:
mne_free_icmatrix_17((m))

Definition at line 121 of file mne_source_space.cpp.

◆ LH_LABEL_TAG

#define LH_LABEL_TAG   "-lh.label"

Definition at line 2176 of file mne_source_space.cpp.

◆ MALLOC_17

#define MALLOC_17 ( x,
t )
Value:
(t *)malloc((x)*sizeof(t))

Definition at line 113 of file mne_source_space.cpp.

◆ MALLOC_51

#define MALLOC_51 ( x,
t )
Value:
(t *)malloc((x)*sizeof(t))

Definition at line 71 of file mne_source_space.cpp.

◆ NNEIGHBORS

#define NNEIGHBORS   26

Definition at line 123 of file mne_source_space.cpp.

◆ OK

#define OK   0

Definition at line 88 of file mne_source_space.cpp.

◆ RH_LABEL_TAG

#define RH_LABEL_TAG   "-rh.label"

Definition at line 2177 of file mne_source_space.cpp.

◆ TAG_OLD_COLORTABLE

#define TAG_OLD_COLORTABLE   1

Definition at line 128 of file mne_source_space.cpp.

◆ TAG_OLD_MGH_XFORM

#define TAG_OLD_MGH_XFORM   30

Definition at line 127 of file mne_source_space.cpp.

◆ TAG_OLD_USEREALRAS

#define TAG_OLD_USEREALRAS   2

Definition at line 129 of file mne_source_space.cpp.

◆ TAG_USEREALRAS

#define TAG_USEREALRAS   4

Definition at line 130 of file mne_source_space.cpp.

◆ TRUE

#define TRUE   1

Definition at line 76 of file mne_source_space.cpp.

◆ VEC_COPY_17

#define VEC_COPY_17 ( to,
from )
Value:
{\
(to)[X_17] = (from)[X_17];\
(to)[Y_17] = (from)[Y_17];\
(to)[Z_17] = (from)[Z_17];\
}
#define Z_17
#define Y_17
#define X_17

Definition at line 105 of file mne_source_space.cpp.

◆ VEC_DIFF_17

#define VEC_DIFF_17 ( from,
to,
diff )
Value:
{\
(diff)[X_17] = (to)[X_17] - (from)[X_17];\
(diff)[Y_17] = (to)[Y_17] - (from)[Y_17];\
(diff)[Z_17] = (to)[Z_17] - (from)[Z_17];\
}

Definition at line 99 of file mne_source_space.cpp.

◆ VEC_DOT_17

#define VEC_DOT_17 ( x,
y )
Value:
((x)[X_17]*(y)[X_17] + (x)[Y_17]*(y)[Y_17] + (x)[Z_17]*(y)[Z_17])

Definition at line 95 of file mne_source_space.cpp.

◆ VEC_LEN_17

#define VEC_LEN_17 ( x)
Value:
sqrt(VEC_DOT_17(x,x))
#define VEC_DOT_17(x, y)

Definition at line 97 of file mne_source_space.cpp.

◆ X_17

#define X_17   0

Definition at line 91 of file mne_source_space.cpp.

◆ X_51

#define X_51   0

Definition at line 65 of file mne_source_space.cpp.

◆ Y_17

#define Y_17   1

Definition at line 92 of file mne_source_space.cpp.

◆ Y_51

#define Y_51   1

Definition at line 66 of file mne_source_space.cpp.

◆ Z_17

#define Z_17   2

Definition at line 93 of file mne_source_space.cpp.

◆ Z_51

#define Z_51   2

Definition at line 67 of file mne_source_space.cpp.

Function Documentation

◆ mne_cmatrix_51()

float ** mne_cmatrix_51 ( int nr,
int nc )

Definition at line 212 of file mne_source_space.cpp.