<div dir="ltr">another question please<br> <br>If I work on DICOM series and want to segment in 3D <br>the code will be <br>itkImageBase<br>input = itk.itkImage_UC3.New(); // This is your input image <br>input.ReadDicomDirectory(<br>
@""); <br>itkImageBase<br>output = itk.itkImage_UC3.New(); // This is your output image <br>itkConfidenceConnectedImageFilter<br>filter = <br>itkConfidenceConnectedImageFilter<br>.New(input, output); // This willautomatically select the "IUC2IUC2" version of the filter <br>
<br>is this true <br> <br>how can I reconstruct teh output of the segmentation in 3D (for example I want to extract the jaw and display it)<br> <br>any idea regards that <br><br>
<div class="gmail_quote">On Tue, Feb 23, 2010 at 12:30 PM, Dan Mueller <span dir="ltr"><<a href="mailto:dan.muel@gmail.com">dan.muel@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi Ali,<br><br>It seems strange that you only get the following explicit types:<br>
<div class="im">>> itkConfidenceConnectedImageFilter_IF2IF2<br>>> itkConfidenceConnectedImageFilter_IF3IF3<br>>> itkConfidenceConnectedImageFilter_ISS2ISS2<br>>> itkConfidenceConnectedImageFilter_IUC2IUC2<br>
<br></div>When I build the latest ManagedITK (or look at the pre-built binaries<br>on the Google Code page) I see the following types:<br>
<div class="im">itkConfidenceConnectedImageFilter_IF2IF2<br>itkConfidenceConnectedImageFilter_IF3IF3<br>itkConfidenceConnectedImageFilter_ISS2ISS2<br></div>itkConfidenceConnectedImageFilter_ISS3ISS3<br>itkConfidenceConnectedImageFilter_IUC2IUC2<br>
itkConfidenceConnectedImageFilter_IUC3IUC3<br><br>Regarding your question about how to create a new instance of the filter:<br><br>There are two ways:<br><br>1. Decide the type at compile time. eg.<br>itkConfidenceConnectedImageFilter filter =<br>
itkConfidenceConnectedImageFilter_IF2IF2.New();<br><br>2. Decide the type at run-time. eg.<br>itkImageBase input = itk.itkImage_UC2.New();<br>itkImageBase output = itk.itkImage_UC2.New();<br>// Select the IUC2IUC2 explicit type<br>
itkConfidenceConnectedImageFilter filter =<br>itkConfidenceConnectedImageFilter.New(input, output);<br><br>Hope this helps.<br><br>Regards, Dan<br>
<div>
<div></div>
<div class="h5"><br>On 23 February 2010 10:24, Lodron, Gerald <<a href="mailto:Gerald.Lodron@joanneum.at">Gerald.Lodron@joanneum.at</a>> wrote:<br>> Short is the same as signed short so you need:<br>><br>> itkConfidenceConnectedImageFilter_ISS3ISS3<br>
><br>> if the class does not exist you must build it first for that image type<br>> (this classes are automatically build from the original templated C++<br>> classes) but as i said i don't use managed code because of such problems<br>
> and can't support you with that.<br>><br>> A workaround would be to convert your image from short to float then you can<br>> use itkConfidenceConnectedImageFilter_IF3IF3, note that there already exists<br>
> some caster classes in itk which will do that for you<br>> ________________________________<br>> Von: Ali Habib [mailto:<a href="mailto:ali.mahmoud.habib@gmail.com">ali.mahmoud.habib@gmail.com</a>]<br>> Gesendet: Dienstag, 23. Februar 2010 10:17<br>
> An: Lodron, Gerald<br>> Betreff: Re: [Insight-users] Managed ITK itkConfidenceConnectedImageFilter<br>><br>><br>> thanks for your reply<br>><br>> What if my Input is DICOM series of type short , which type shall I do ,<br>
> specially I want to segment in 3D<br>><br>> Best regards<br>><br>> On Tue, Feb 23, 2010 at 11:12 AM, Lodron, Gerald <<a href="mailto:Gerald.Lodron@joanneum.at">Gerald.Lodron@joanneum.at</a>><br>> wrote:<br>
>><br>>> itkConfidenceConnectedImageFilter_IF2IF2 - input = 2D image of type<br>>> float, output = 2D image of type float<br>>> itkConfidenceConnectedImageFilter_IF3IF3 - input = 3D image of type<br>
>> float, output =3D image of type float<br>>> itkConfidenceConnectedImageFilter_ISS2ISS2 - input = 2D image of type<br>>> signed short, output = 2D image of type signed short<br>>><br>>> and so on....<br>
>><br>>> I don't use managed code because of this strange behaviour so i can't give<br>>> you more support on error codes<br>>> ________________________________<br>>> Von: <a href="mailto:insight-users-bounces@itk.org">insight-users-bounces@itk.org</a> [mailto:<a href="mailto:insight-users-bounces@itk.org">insight-users-bounces@itk.org</a>]<br>
>> Im Auftrag von Ali Habib<br>>> Gesendet: Dienstag, 23. Februar 2010 09:39<br>>> An: <a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>>> Betreff: [Insight-users] Managed ITK itkConfidenceConnectedImageFilter<br>
>><br>>> I am trying to apply itkConfidenceConnectedImageFilter to image DICOM<br>>> series , so I will use the watersheed example as guide<br>>><br>>><br>>> when use itkConfidenceConnectedImageFilter . it give error that this class<br>
>> can't be accessed due to its protection<br>>><br>>> and discovered that there're 4 classes for<br>>> itkConfidenceConnectedImageFilter<br>>><br>>> itkConfidenceConnectedImageFilter_IF2IF2<br>
>> itkConfidenceConnectedImageFilter_IF3IF3<br>>> itkConfidenceConnectedImageFilter_ISS2ISS2<br>>> itkConfidenceConnectedImageFilter_IUC2IUC2<br>>><br>>> I want to do<br>>> itkConfidenceConnectedImageFilter<br>
>> x = new itkConfidenceConnectedImageFilter (input); // input is the<br>>> itkimage that read the dicom series<br>>> and continue as in watersheed example<br>>> what's the difference between those classses<br>
>> any suggestion please<br>>> Best regards<br></div></div></blockquote></div><br></div>