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

Jon Haitz Legarreta jhlegarreta at vicomtech.org
Wed Jul 23 08:24:46 EDT 2014


Yes.

JON HAITZ


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

> Hi Jon,
>
> Thanks for your kind reply. For the test, would this be the file I should
> be looking at?
> https://github.com/midas-journal/midas-journal-231/blob/master/Source/itkRunLengthFeaturesTest.cxx
>
> Thanks.
>
>
> On Wed, Jul 23, 2014 at 2:16 PM, Jon Haitz Legarreta <
> jhlegarreta at vicomtech.org> wrote:
>
>> 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/78d1a3d5/attachment.html>


More information about the Insight-users mailing list