[ITK-users] Texture pixel by pixel

Bradley Lowekamp blowekamp at mail.nih.gov
Tue Sep 22 08:27:30 EDT 2015


Hello,

Please try to keep this discussion on the mailing list.

You can find a basic program here [1].  Which provide a good example for usage.

 It allows writing to any file format that ITK supports with vector images. I know that mha, nii, and nrrd should support this. Others may and it varies based what modules are compiled into ITK.

You can see how the texture information is written into the vector here [2]. Contributions to improve the documentation are welcomed.



[1] https://github.com/blowekamp/itkTextureAnalysis/blob/master/test/itkTextureFeatureImageFilterTest.cxx
[2] https://github.com/blowekamp/itkTextureAnalysis/blob/b3911a8ab891859c50c7e3c8819d1a9fa0eaf4af/include/itkTextureFeatureImageFilter.hxx#L217-L224

On Sep 22, 2015, at 3:25 AM, Francisco Lopez de la Franca <franciscolopezdelafranca at gmail.com> wrote:

> Hi Bradley,
> I'd like to use your class. A couple of questions:
> 
> - Which format can the vectorimage generated be saved in? Is it possible to save it in Nifti format?
> 
> - Which information does the vector image contain, I mean, what is the info stored for each voxel? How can I access that info?
> 
> I guess the usage of yourclass is in the same way as any ITK filter:
> 
> yourFilter->setInput(inputImage);
> yourFilter->setWindowSize(windowSize);
> ... // other sets...
> yourFilter->update();
> vectorImage = yourFilter->GetOutput();
> 
> but, how can I read the data of each voxel in the vector image?
> 
> Thank you very much.
> Kind regards.
> 
> 
> 2015-09-21 14:30 GMT+02:00 Bradley Lowekamp <blowekamp at mail.nih.gov>:
> Hello,
> 
> I have a external ITK extension you may find useful:
> https://github.com/blowekamp/itkTextureAnalysis/blob/master/include/itkTextureFeatureImageFilter.h
> 
> This computed the GLCM, for a neighborhood for every pixel and produces a VectorImage with all the features.
> 
> Contributions to improving the class and documentation are welcome.
> 
> HTH,
> Brad
> 
> On Sep 21, 2015, at 7:15 AM, Francisco Lopez de la Franca <franciscolopezdelafranca at gmail.com> wrote:
> 
> > Hi,
> > I've used the itk::Statistics::ScalarImageToTextureFeaturesFilter class with the default parameters and everything was OK.
> >
> > But now, I have to calculate the texture features of a 2D scalar image pixel by pixel, I mean, iterate over the whole image and calculate the texture features of every pixel.
> >
> > I guess I've got to use each pixel as the masked region over which to calculate the texture features, but I think this process could be very slow (I have to do it with a lot of 2D images).
> >
> > Is there a faster way to do it or isn't it possible as I've described?
> >
> > Thanks a lot.
> > Kind regards.
> > _____________________________________
> > 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/20150922/98428115/attachment.html>


More information about the Insight-users mailing list