[Insight-users] Error in EM example
Luis Ibanez
luis.ibanez at kitware.com
Tue Apr 22 14:26:23 EDT 2008
Hi Dario,
Thanks for the additional information.
Could you please do the following;
a) compile this example in Debug mode
b) load it inside gdb (or ddd)
c) put a break point in the SetParameters() line.
d) run it
e) follow the execution step by step after the
break point.
f) post to the list the exact line in which the
program fails.
In the line:
(components[i])->SetParameters( initialParameters[i] );
the problem may be in the access to "components[i]",
or the access to "initialParameters[i]", or in the
internal execution of SetParameters().
BTW: Have you modified the source code of this example
in any way ?
Also, just for the record, this example runs fine
in my Linux build. (CVS updated today).
Please let us know what you find.
Thanks
Luis
-----------------------
Dário Oliveira wrote:
> Hi Luis,
>
> I try to run the executable and it just appears that window "this
> program stopped working..." whithout any special message.
>
> I printed some outputs to check which line was causing that and is the
> SetParameters. I can even print the parameters, they are ok, but when
> I call this method, the program hungs.
>
> Is that a way to get more information about the error?
>
> Thank you
>
> Dário
>
> 2008/4/22, Luis Ibanez <luis.ibanez at kitware.com>:
>
>>Hi Dario,
>>
>>Could you please post to the list the error messages that you are
>>receiving from executing that line ?
>>
>>
>> Thanks
>>
>>
>> Luis
>>
>>
>>-----------------------
>>
>>Dário Oliveira wrote:
>>
>>>Friends,
>>>
>>>I want to apply the EM estimator to detect some vessels, but I
>>>actually can't execute the EM example given in the ITK source code
>>>
>>
>>(Examples/Statistics/ExpectationMaximizationMixtureModelEstimator.cxx.).
>>
>>>I have made some debug and the error occurs right at this line:
>>>(components[i])->SetParameters( initialParameters[i] );
>>>
>>>I'm using ITK 3.2 compiled in MinGW.
>>>
>>>Anyone has any ideia how to work it out?
>>>
>>>thanks in advance!
>>>
>>
>
>
More information about the Insight-users
mailing list