-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fix] Fix leak in test_coregistration and attends various warnings #849
base: main
Are you sure you want to change the base?
Changes from all commits
647c487
0dfa36b
49aa000
787b067
683501b
bdf2854
f276bc5
4e25e63
d118b7c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -171,7 +171,7 @@ int main(int argc, char *argv[]) | |
fTMin, | ||
fTMax, | ||
event, | ||
-1.0f, | ||
true, | ||
-1.0f, | ||
true, | ||
mapReject, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -384,12 +384,12 @@ int main(int argc, char *argv[]) | |
|
||
p3DDataModel->addSurfaceSet(parser.value(subjectOption), "HemiLRSet", t_surfSet, t_annotationSet); | ||
|
||
MneDataTreeItem* pRTDataItem = p3DDataModel->addSourceData(parser.value(subjectOption), | ||
"HemiLRSet", | ||
sourceEstimate, | ||
t_clusteredFwd, | ||
t_surfSet, | ||
t_annotationSet); | ||
// MneDataTreeItem* pRTDataItem = p3DDataModel->addSourceData(parser.value(subjectOption), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you comment out this call, the 3D view will be empty |
||
// "HemiLRSet", | ||
// sourceEstimate, | ||
// t_clusteredFwd, | ||
// t_surfSet, | ||
// t_annotationSet); | ||
|
||
p3DAbstractView->show(); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,9 +157,7 @@ struct RegionData | |
} | ||
}; | ||
|
||
const static FIFFLIB::FiffCov defaultCov; | ||
const static FIFFLIB::FiffInfo defaultInfo; | ||
static Eigen::MatrixXd defaultD; | ||
|
||
|
||
//============================================================================================================= | ||
/** | ||
|
@@ -225,19 +223,32 @@ class MNESHARED_EXPORT MNEForwardSolution | |
* | ||
* @param[in] p_AnnotationSet Annotation set containing the annotation of left & right hemisphere. | ||
* @param[in] p_iClusterSize Maximal cluster size per roi. | ||
* @param[out] p_D The cluster operator. | ||
* @param[in] p_pNoise_cov. | ||
* @param[in] p_pInfo. | ||
* @param[out] p_D The cluster operator. | ||
* @param[in] p_pNoise_cov | ||
* @param[in] p_pInfo | ||
* @param[in] p_sMethod "cityblock" or "sqeuclidean". | ||
* | ||
* @return clustered MNE forward solution. | ||
*/ | ||
MNEForwardSolution cluster_forward_solution(const FSLIB::AnnotationSet &p_AnnotationSet, | ||
qint32 p_iClusterSize, | ||
Eigen::MatrixXd& p_D = defaultD, | ||
const FIFFLIB::FiffCov &p_pNoise_cov = defaultCov, | ||
const FIFFLIB::FiffInfo &p_pInfo = defaultInfo, | ||
QString p_sMethod = "cityblock") const; | ||
Eigen::MatrixXd& p_D, | ||
const FIFFLIB::FiffCov &p_pNoise_cov, | ||
const FIFFLIB::FiffInfo &p_pInfo, | ||
QString p_sMethod) const; | ||
|
||
//========================================================================================================= | ||
/** | ||
* Cluster the forward solution and stores the result to p_fwdOut. | ||
* The clustering is done by using the provided annotations | ||
* | ||
* @param[in] p_AnnotationSet Annotation set containing the annotation of left & right hemisphere. | ||
* @param[in] p_iClusterSize Maximal cluster size per roi. | ||
* | ||
* @return clustered MNE forward solution. | ||
*/ | ||
MNEForwardSolution cluster_forward_solution(const FSLIB::AnnotationSet &p_AnnotationSet, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why creating a new function instead of leaving the old one with the default parameters? Do you maybe have a good reference if this is best practice? Or is it just a personal preference? |
||
qint32 p_iClusterSize) const; | ||
|
||
//========================================================================================================= | ||
/** | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't you want to visualise Digitizer date?