[Insight-users] ask help for DeformableModel1

Julien Jomier jjomier at cs.unc.edu
Sun Jan 2 03:49:14 EST 2005


Hi Kingaza,

Sorry for the late reply.

There were some issues with the itkBinaryMask3DMeshSource filter.
I put a fix in the cvs repository so if you use the current ITK cvs it 
should work.
One of the problem came from the fact that this filter didn't use the 
pipeline mechanism and therefore was not calling Update() when the user 
was requesting the output mesh. More issues were also fixed regarding 
the spacing and origin as well as bugs when calling multiple times the 
Update() function.

Let us know if you have any other problems,
Happy New Year,

Julien

kingaza at gmail.com wrote:
> hi Julien,
> 
> I am still a little puzzled.
> 
> as I metioned before, first i convert a ct head series into a mha file.
> this is the code In ConfidenceConnected:
>   confidenceConnected->SetReplaceValue( 255 );
> and I find the file HeadModel.mha is made of 0x00 and 0xff
> 
> then i do as you tell me in DeformableModel1
>   meshSource->SetObjectValue( 255 );
> 
> but the same error occurs.
> could you give me some tip?
> 
> 
> regards,
> kingaza
> 
> 
> 
> On Tue, 21 Dec 2004 06:19:54 -0500, Julien Jomier <jjomier at cs.unc.edu> wrote:
> 
>>Hi Kingaza,
>>
>>As you probably noticed from the code, a mesh is created using the
>>binary image your provide as second argument. In the code the value of
>>the mask is set to 200 (arbitrary value). This might not be true in your
>>case, therefore no mesh is created and the application crashes.
>>
>>Can you check the pixel values of your binary mask and set this value in
>>the code?
>>
>>Let us know if that was the problem,
>>
>>Julien
>>
>>kingaza at gmail.com wrote:
>>
>>>hi Julien and all,
>>>
>>>I have this attempt:
>>>first, I choose a CT series and save it as into Head.mha (3D) using
>>>DicomSeriesReadImageWrite
>>>second, I modify the ConfidenceConnected for 3D, and select a 3D seed
>>>to build a model: HeadModel.mha
>>>at last I try DeformableModel1 use the command:
>>>DeformableModel1 Head.mha HeadModel.mha
>>>
>>>but unfortunely, the application breaks down when it runs to
>>>deformableModelFilter->Update();
>>>
>>>could you help me?
>>>
>>>regards,
>>>kingaza
>>>
>>>
>>>
>>>
>>>On Mon, 20 Dec 2004 11:51:40 -0500, Julien Jomier <jjomier at cs.unc.edu> wrote:
>>>
>>>
>>>>Hi Kingaza,
>>>>
>>>>DeformableModel1 works only for 3D images as input and 3D binary masks.
>>>>Also, you have to make sure that the dimensions of your image in each
>>>>direction is at least 4 pixels (for the itkRecursiveGaussianImageFilter).
>>>>
>>>>I'm adding a try/catch() around the gradientMapFilter->Update() to write
>>>>out the description of the exception.
>>>>
>>>>Hope that helps,
>>>>
>>>>Julien
>>>>
>>>>kingaza at gmail.com wrote:
>>>>
>>>>
>>>>>hi all,
>>>>>
>>>>>I am trying DeformableModel1, and meet some troubles
>>>>>i run it in the command line:
>>>>>DeformableModel1 BrainProtonDensitySlice.png ConfidenceConnectedOutput1.png
>>>>>which the last png file is the output from the example ConfidentConnected
>>>>>
>>>>>but it tell me that:
>>>>>This application has requested the Runtime to terminate it in an
>>>>>unusual wa. Please contact the application's support team for more
>>>>>information.
>>>>>
>>>>>I debug the project DeformableModel1, and find there is an exception throw in
>>>>>gradientMapFilter->Update();
>>>>>
>>>>>please tell me what happens
>>>>>
>>>>>regards,
>>>>>kingaza
>>>>>_______________________________________________
>>>>>Insight-users mailing list
>>>>>Insight-users at itk.org
>>>>>http://www.itk.org/mailman/listinfo/insight-users
>>>>
>>>_______________________________________________
>>>Insight-users mailing list
>>>Insight-users at itk.org
>>>http://www.itk.org/mailman/listinfo/insight-users
>>


More information about the Insight-users mailing list