<div dir="ltr"><div><div>Hi Jon,<br><br></div>Thanks for your kind reply. For the test, would this be the file I should be looking at? <a href="https://github.com/midas-journal/midas-journal-231/blob/master/Source/itkRunLengthFeaturesTest.cxx">https://github.com/midas-journal/midas-journal-231/blob/master/Source/itkRunLengthFeaturesTest.cxx</a><br>
<br></div>Thanks.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 2:16 PM, Jon Haitz Legarreta <span dir="ltr"><<a href="mailto:jhlegarreta@vicomtech.org" target="_blank">jhlegarreta@vicomtech.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi,<br></div>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.<br>

<br></div><div>It includes a paper on the features of the original filters, and the source code, including a test that shows how to use them.<br></div><div><br></div><div></div>HTH,<br>JON HAITZ<br><br><div class="gmail_extra">

<br>[1] <a href="http://www.insight-journal.org/browse/publication/231" target="_blank">http://www.insight-journal.org/browse/publication/231</a><br><br><br><div class="gmail_quote"><div><div class="h5">On 23 July 2014 14:07, med aweng <span dir="ltr"><<a href="mailto:medswengineer@gmail.com" target="_blank">medswengineer@gmail.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div>Hello,<br><br></div>I have understood how the "Gray Level Run Length" method works, and trying to implement that in ITK.<br>

<br></div>I'm kind of new to ITK, and just need some guidance on how to proceed.<br>
<br></div>This is what I have done so far for instance:<br><br>typedef itk::Image<double, 3> InputImageType;<br>typedef itk::Statistics::ScalarImageToRunLengthMatrixFilter<InputImageType> FilterType;<br>typedef VectorContainer<unsigned char, OffsetType> OffsetVector;<br>


typedef typename OffsetVector::Pointer OffsetVectorPointer;<br>InputImageType::Pointer image = InputImageType::New();<br>FilterType::Pointer filter = FilterType::New();<br>filter->SetInput(image);<br><br>InputImageType::OffsetType offset1 ={{1,0}};<br>


<br>FilterType::OffsetVectorPointer offsetV = FilterType::OffsetVector::New();<br>offsetV.push_back(offset1);<br><br>filter->SetOffsets(offsetV);<br><br></div>Any guidance or hints on how to proceed on that?<br><br>Thanks.<br>


</div>
<br></div></div>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br></div>