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

med aweng medswengineer at gmail.com
Wed Jul 23 08:07:24 EDT 2014


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140723/9db6ff78/attachment.html>
-------------- next part --------------
_____________________________________
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