<div dir="ltr">Hi Tim,<div><br></div><div>Thank you for your help.</div><div>I will do as you suggested.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 17, 2016 at 3:25 PM, Timothee Evain <span dir="ltr"><<a href="mailto:tevain@telecom-paristech.fr" target="_blank">tevain@telecom-paristech.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can refer to the description of the filter which is quite complete [1] and to the wiki example for the global structure [2] (even if the example mimic the full process to feature image as in the ScalarImageToTextureFeaturesFi<wbr>lter case, look to the lines concerning the "glcmGenerator").<br>
After setting-up and updating the filter, the ->GetOutput() method will return the GLCM matrix, in the form of an itk Histogram [3].<br>
Basically you could acces to each element through the ->GetFrequency (const IndexType &index) method where the "index" is an itk Index containing the line/row indexes to acces.<br>
<br>
HTH,<br>
<br>
Tim<br>
<br>
<br>
[1]<a href="https://itk.org/Doxygen/html/classitk_1_1Statistics_1_1ScalarImageToCooccurrenceMatrixFilter.html" rel="noreferrer" target="_blank">https://itk.org/Doxygen/<wbr>html/classitk_1_1Statistics_1_<wbr>1ScalarImageToCooccurrenceMatr<wbr>ixFilter.html</a><br>
[2]<a href="https://itk.org/Wiki/ITK/Examples/Statistics/TextureFeatures" rel="noreferrer" target="_blank">https://itk.org/Wiki/ITK/<wbr>Examples/Statistics/<wbr>TextureFeatures</a><br>
[3]<a href="https://itk.org/Doxygen/html/classitk_1_1Statistics_1_1Histogram.html" rel="noreferrer" target="_blank">https://itk.org/Doxygen/<wbr>html/classitk_1_1Statistics_1_<wbr>1Histogram.html</a><br>
<br>
----- Mail original -----<br>
De: "Taman Upadhaya" <<a href="mailto:tamanupadhaya@gmail.com">tamanupadhaya@gmail.com</a>><br>
À: "Timothee Evain" <<a href="mailto:tevain@telecom-paristech.fr">tevain@telecom-paristech.fr</a>><br>
Envoyé: Lundi 17 Octobre 2016 14:52:10<br>
Objet: Re: [ITK] [ITK-users] ITK GLCM Matrix<br>
<div class="HOEnZb"><div class="h5"><br>
Hi Tim,<br>
<br>
First of all thank you for your reply.<br>
Can you direct me to the piece of code to do that.<br>
I am still new to ITK.<br>
<br>
Thanks<br>
<br>
On Mon, Oct 17, 2016 at 2:50 PM, Timothee Evain <<a href="mailto:tevain@telecom-paristech.fr">tevain@telecom-paristech.fr</a><br>
> wrote:<br>
<br>
> Hi,<br>
><br>
> If you want to access directly to the matrix, I would suggest to use the<br>
> Statistics::<wbr>ScalarImageToCooccurrenceMatri<wbr>xFilter, which output what you<br>
> want as a histogram.<br>
><br>
> HTH,<br>
><br>
> Tim<br>
><br>
> ----- Mail original -----<br>
> De: "Tmn" <<a href="mailto:tamanupadhaya@gmail.com">tamanupadhaya@gmail.com</a>><br>
> À: <a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>
> Envoyé: Lundi 17 Octobre 2016 14:35:23<br>
> Objet: [ITK] [ITK-users] ITK GLCM Matrix<br>
><br>
> I am using itk library to extract Haralick texture feature using<br>
> itk::Statistics::<wbr>ScalarImageToTextureFeaturesFi<wbr>lter<>; But I am unable to<br>
> find the function to print GLCM matrix.<br>
><br>
> Can someone please provide me a small example on how to print the GLCM<br>
> matrix?<br>
><br>
> Thank you for your time!<br>
><br>
><br>
><br>
> --<br>
> View this message in context: <a href="http://itk-insight-users" rel="noreferrer" target="_blank">http://itk-insight-users</a>.<br>
> <a href="http://2283740.n2.nabble.com/ITK-GLCM-Matrix-tp7589370.html" rel="noreferrer" target="_blank">2283740.n2.nabble.com/ITK-<wbr>GLCM-Matrix-tp7589370.html</a><br>
> Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
> ______________________________<wbr>_______<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br>
> ______________________________<wbr>_________________<br>
> Community mailing list<br>
> <a href="mailto:Community@itk.org">Community@itk.org</a><br>
> <a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/community</a><br>
><br>
</div></div></blockquote></div><br></div>