[vtkusers] image island removal and hole filling
Jonathan Morra
jonmorra at gmail.com
Thu Dec 2 17:39:44 EST 2010
Thanks, let me know where I can download it from.
On Thu, Dec 2, 2010 at 2:36 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> For Step 1, I have a VTK flood-fill class that do the job. I'll upload it
> to
> gerrit so that you can try it out. I don't think anything exists for your
> Step 2, though.
>
> David
>
>
> On Thu, Dec 2, 2010 at 3:14 PM, Jonathan Morra <jonmorra at gmail.com> wrote:
>
>> I have a binary vtkImageData class and I want to do 2 things with it, and
>> I don't know how.
>>
>> 1. I want to remove all islands from the image except one. I want to
>> identify the island not to be removed by a pixel location. I have seen
>> vtkImageIslandRemoval2D, and I don't think that'll work for me, because I do
>> not know anything about the island's size that I want to keep (it could be
>> big, small, or in the middle), all that I know is one point which
>> is guaranteed to be interior to one island, and that's the island I want to
>> keep.
>>
>> 2. I want to do hole filling on the output of step 1 and I don't know how
>> to do that. I saw vtkFillHolesFilter but that appears only to work on poly
>> data. I'd like something analogous to that for vtkImageData.
>>
>> If anyone knows how to do these things, I'd appreciate it. Also, if it
>> matters, I'm coding in Java.
>>
>> Thanks
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101202/83497dd7/attachment.htm>
More information about the vtkusers
mailing list