[Insight-users] Question about StatisticsOpeningLabelMapFilter
Cagatay Bilgin
bilgincc at gmail.com
Tue Aug 21 02:47:42 EDT 2012
Hi Kamil,
statisticsOpening->SetAttribute(StatisticsOpeningLabelMapFilterType::LabelObjectType::MEAN
should do the trick. The attributes are on the objects.
Cheers,
Cagatay
On Mon, Aug 20, 2012 at 11:39 PM, kumis <kkumis at gmail.com> wrote:
> Hi,
> I wanted to ask You about how to use StatisticsOpeningLabelMapFilter. I am
> by no means programming/itk expert and it bugged me for some time now and I
> was unsuccesfull in any attempts to find a clue or solution to my problem.
> I am trying to remove objects from an image based on their mean and then
> variance value. I decided to use StatisticsOpeningLabelMapFilter but I have
> encountered a problem with setting attribute for this filter. I tried to do
> it in a simillar way to LabelShapeKeepNObjectsImageFilter (
>
> shapeKeepNObjectsFilter->
>
> SetAttribute(LabelShapeKeepNObjectsImageFilterType::LabelObjectType::NUMBER_OF_PIXELS);
>
> )but it didn't work.
>
> When I type
>
>
> statisticsOpening->SetAttribute(StatisticsOpeningLabelMapFilterType::AttributeType::
>
> the IDE doesn't see anything inside that namespace. I have tried to do this
> in few different ways but it haven't worked so far.
>
> Could You please tell me how to properly set arguments for this filter?
>
> Regards
>
> Kamil
>
>
>
> --
> View this message in context:
> http://itk-insight-users.2283740.n2.nabble.com/Question-about-StatisticsOpeningLabelMapFilter-tp7580805.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120820/4bee0de4/attachment.htm>
More information about the Insight-users
mailing list