kfritscher/kslice — comment on commit 98a41792e2a7377d6f132d2f184eee4dc12b23c3
File:  line 0
By pkarasev3:

RE, in KSegmentor3D:

"
void KSegmentor3D::Update()
{
//Do we need to initialize again after initializing in CreatSegmentor method
this->initializeData();
this->intializeLevelSet();
"

Emphatically, *no* we should not have to re-initialize! I am almost certain that those 2 lines are the #1 enemy of performance. The segmentor should be able to just cache the phi, label, and various "L" lists until next time it gets called.

We had to do this before because it might be a new slice where we haven't segmented yet; But in 3D the phi and L's should only be initialized once !