[ITK] [ITK-users] extending label object's line iterator / cpp question

Matt McCormick matt.mccormick at kitware.com
Mon Jan 12 08:44:14 EST 2015


Hi Mathew,

If some required members are private that need to be protected for
your extension, we can do that.  Please submit a patch with the
changes required [1].

Thanks,
Matt

[1] https://insightsoftwareconsortium.github.io/ITKBarCamp-doc/CommunitySoftwareProcess/SubmitAPatchToGerrit/index.html

On Mon, Jan 12, 2015 at 4:36 AM, mathew
<mathias.richter at informatik.uni-luebeck.de> wrote:
> Dear ITK users,
>
> Currently, I am working with the LabelObject class and its iterators (i.e.
> the line iterator).
> I have noticed that I can only advance the iterator by one. Unfortunately I
> want to step to any element in one step.
>
> I thought of deriving a subclass (ExtIterLabelObject) of the LabelObject,
> which lacks on loosing access on the private stuff of the LabelObject.
>
> The only way I see is defining a new ExtIterLabelObject class, which
> inherits from the LightObject and replaces the given LabelObject
> implementation.
>
> Since this is very ugly, I want to ask if there is a better way to extend
> the functionality of the LineIterator, so that I can increase the iterator
> by an arbitrary (valid) step.
>
> Thanks for your help.
>
>
>
>
> --
> View this message in context: http://itk-insight-users.2283740.n2.nabble.com/extending-label-object-s-line-iterator-cpp-question-tp7586769.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://public.kitware.com/mailman/listinfo/insight-users
_____________________________________
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://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list