Hello Luis,<br><br>I'm trying to use the MultiScaleHessianBasedMeasureImageFilter.<br>My problem is that I don't know how to get the "GetScalesOutput()" to work, I have both methods to On "GenerateHessianOutputOn()" and <br>
"GenerateScalesOutputOn()", but the ScalesOutput produces nothing.<br><br>This is my code<br><br>_hessianvessel->SetAlpha1 (0.5);<br> _hessianvessel->SetAlpha2 (2); <br> <br> _hessianmultiscale->SetInput(image);<br>
_hessianmultiscale->SetHessianToMeasureFilter(_hessianvessel);<br> _hessianmultiscale->SetSigmaMinimum(0.5);<br> _hessianmultiscale->SetSigmaMaximum(4.0);<br> _hessianmultiscale->SetNumberOfSigmaSteps(5);<br>
_hessianmultiscale->GenerateHessianOutputOn();<br> _hessianmultiscale->GenerateScalesOutputOn();<br> _hessianmultiscale->Update(); <br> <br> _outputimagefloat = ImageTypeFloat::New(); <br>
_outputimagefloat->SetRegions(_hessianmultiscale->GetOutput()->GetRequestedRegion());<br> _outputimagefloat->Allocate();<br> <br> TypeConstRegionIterator constit( _hessianmultiscale->GetScalesOutput(), <br>
_hessianmultiscale->GetScalesOutput()->GetRequestedRegion() );<br> <br> TypeRegionIterator outputit( _outputimagefloat, _outputimagefloat->GetRequestedRegion() );<br> <br>
for ( constit.GoToBegin(); !constit.IsAtEnd(); ++constit);<br> {<br> cout<<constit.Get()<< " "; //this output produces "0" only<br> }<br> /*for ( constit.GoToBegin(), outputit.GoToBegin(); !constit.IsAtEnd(); ++constit, ++outputit)<br>
{<br> outputit.Set(constit.Get()); //does not work<br> }*/<br><br><br>I hope this is enough information <br> <br>Thank you for your time<br><br>Juan Carlos Prieto<br><br>