<div dir="ltr">Hi Bill,<div><br></div><div>Yes, I intend to do that one of these days.  The vtkMRIBrainExtractor filter</div><div>in particular is a very useful tool for visualization, but it really doesn't</div><div>belong in VTK as a core class.  Remote modules are the perfect solution</div><div>for such classes.</div><div><br></div><div> - David</div><div><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 6, 2015 at 1:38 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">David,<br>
<br>
Should you add your ImageSegmentation as an External Module?<br>
<br>
Bill<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, Nov 6, 2015 at 12:49 PM, David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>> wrote:<br>
> Hi Darya,<br>
><br>
> The vtkConnectivityFilter is meant for use on mesh data.  It suspect<br>
> that when you used it on image data, it caused your computer to run<br>
> out of memory.<br>
><br>
> I have a connectivity filter that I wrote specifically for images, but it<br>
> is on github.  I haven't contributed it to VTK yet.  But you can try it<br>
> if you are interested:<br>
><br>
> <a href="https://github.com/dgobbi/AIRS/tree/master/ImageSegmentation" rel="noreferrer" target="_blank">https://github.com/dgobbi/AIRS/tree/master/ImageSegmentation</a><br>
><br>
> You can also try the vtkImageThresholdConnectivity filter that comes<br>
> with VTK:<br>
> <a href="http://www.vtk.org/doc/nightly/html/classvtkImageThresholdConnectivity.html" rel="noreferrer" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkImageThresholdConnectivity.html</a><br>
><br>
>  - David<br>
><br>
><br>
><br>
> On Fri, Nov 6, 2015 at 10:36 AM, Darya Yelshyna via vtkusers<br>
> <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>> wrote:<br>
>><br>
>> Hi everyone!<br>
>><br>
>> I was trying to apply vtkConnectivityFilter to vtkImageData, but the<br>
>> program crashes at this step.<br>
>> "This application has requested the Runtime to terminate it in an unusual<br>
>> way." This is this a part of my code:<br>
>><br>
>> dilateFilter = vtk.vtkImageContinuousDilate3D()<br>
>> dilateFilter.SetKernelSize(5, 5, 5)<br>
>> dilateFilter.SetInputConnection(logic2.GetOutputPort())<br>
>> dilateFilter.Update()<br>
>><br>
>> connectFilter = vtk.vtkConnectivityFilter()<br>
>> connectFilter.SetExtractionModeToLargestRegion()<br>
>> connectFilter.SetInputConnection(dilateFilter.GetOutputPort())<br>
>> connectFilter.Update()<br>
>><br>
>> I don't understand what is happening.. Can anybody help me?<br>
>><br>
>> Thank you in advance.<br>
>><br>
>> Best regards,<br>
>> Darya<br></div></div></blockquote></div></div></div></div>