[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/insight-users/attachments/20140723/9db6ff78/attachment.html>
More information about the Insight-users
mailing list