[ITK-users] Implementing the Gray Level Run Length algorithm

Jon Haitz Legarreta jhlegarreta at vicomtech.org
Wed Jul 23 08:16:59 EDT 2014


Hi,
I haven't used it personally, but just in case you haven't done it yet,
having a look ar the Insight Journal article [1] that first proposed the
related classes, functions or analysis may be of help.

It includes a paper on the features of the original filters, and the source
code, including a test that shows how to use them.

HTH,
JON HAITZ


[1] http://www.insight-journal.org/browse/publication/231


On 23 July 2014 14:07, med aweng <medswengineer at gmail.com> wrote:

> Hello,
>
> I have understood how the "Gray Level Run Length" method works, and trying
> to implement that in ITK.
>
> I'm kind of new to ITK, and just need some guidance on how to proceed.
>
> This is what I have done so far for instance:
>
> typedef itk::Image<double, 3> InputImageType;
> typedef
> itk::Statistics::ScalarImageToRunLengthMatrixFilter<InputImageType>
> FilterType;
> typedef VectorContainer<unsigned char, OffsetType> OffsetVector;
> typedef typename OffsetVector::Pointer OffsetVectorPointer;
> InputImageType::Pointer image = InputImageType::New();
> FilterType::Pointer filter = FilterType::New();
> filter->SetInput(image);
>
> InputImageType::OffsetType offset1 ={{1,0}};
>
> FilterType::OffsetVectorPointer offsetV = FilterType::OffsetVector::New();
> offsetV.push_back(offset1);
>
> filter->SetOffsets(offsetV);
>
> Any guidance or hints on how to proceed on that?
>
> Thanks.
>
> _____________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20140723/edf3c5bb/attachment.html>


More information about the Insight-users mailing list