Difference between revisions of "Projects:ARRA:SlicerEM Meeting 07202010"
From NAMIC Wiki
m (Created page with 'Back to SlicerEM:Developer page = Purpose= * Address question related to EMSegmentLogic = Attendants = * Kilian Pohl * Sebastien Barre * J…') |
|||
| Line 48: | Line 48: | ||
// } | // } | ||
</pre> | </pre> | ||
| + | See [http://viewvc.slicer.org/viewcvs.cgi/trunk/Modules/EMSegment/Tcl/EMSegmentAutoSample.tcl?rev=13198&view=markup Modules/EMSegment/Tcl/EMSegmentAutoSample.tcl] | ||
Revision as of 00:19, 20 July 2010
Home < Projects:ARRA:SlicerEM Meeting 07202010Back to SlicerEM:Developer page
Purpose
- Address question related to EMSegmentLogic
Attendants
- Kilian Pohl
- Sebastien Barre
- Jean-Christophe Fillion-Robin
- Julien Finet
Questions
- vtkSlicerEMSegmentLogic - Old vs New pipeline
What the status regarding the two sets of methods ?
- ComputeIntensityDistributionsFromSpatialPrior / UpdateIntensityDistributionAuto
int numTargetImages = workingTarget->GetNumberOfVolumes();
//
// // Sample
// {
// vtksys_stl::stringstream CMD ;
// CMD << "::EMSegmenterAutoSampleTcl::EMSegmentGaussCurveCalculationFromID " << vtkKWTkUtilities::GetTclNameFromPointer(app->GetMainInterp(), this->MRMLManager) << " 0.95 1 { " ;
// for (int i = 0 ; i < numTargetImages; i++) {
// CMD << workingTarget->GetNthVolumeNodeID(i) << " " ;
// }
// CMD << " } " << this->MRMLManager->GetVolumeNode(this->MRMLManager->GetTreeNodeSpatialPriorVolumeID(nodeID))->GetID() << " {" << this->MRMLManager->GetTreeNodeName(nodeID) << "} \n";
// // cout << CMD.str().c_str() << endl;
// if (atoi(app->Script(CMD.str().c_str()))) { return; }
// }
//
// //
// // propogate data to mrml node
// //
//
// vtkMRMLEMSTreeParametersLeafNode* leafNode = this->MRMLManager->GetTreeNode(nodeID)->GetParametersNode()->GetLeafParametersNode();
// for (int r = 0; r < numTargetImages; ++r)
// {
// {
// double value = atof(app->Script("expr $::EMSegment(GaussCurveCalc,Mean,%d)",r));
// leafNode->SetAutoLogMean(r, value);
// }
// for (int c = 0; c < numTargetImages; ++c)
// {
// double value = atof(app->Script("expr $::EMSegment(GaussCurveCalc,Covariance,%d,%d)",r,c));
// leafNode->SetAutoLogCovariance(r, c, value);
// }
// }