oesteban / RegSeg

RegSeg is a simultaneous segmentation and registration method that uses active contours without edges (ACWE) extracted from structural images. The contours evolve through a free-form deformation field supported by the B-spline basis to optimally map the contours onto the data in the target space.
MIT License
12 stars 9 forks source link

Write transform parameters after each level #232

Closed oesteban closed 9 years ago

oesteban commented 9 years ago

For #231 this piece of code in the end of regseg has been disabled:

    for (size_t i = 0; i < nlevels; i++) {
        std::stringstream sb;
        sb << outPrefix << "_coeff_" << i << ".vtu";
        typename CoeffWriter::Pointer w = CoeffWriter::New();
        w->SetFileName(sb.str().c_str());
        w->SetInput(acwereg->GetOptimizerOfLevel(i)->GetTransform()->GetFlatParameters());
        w->Update();
    }