[Insight-users] Texture Feature Extraction

Cory Quammen cquammen at cs.unc.edu
Wed May 12 07:23:59 EDT 2010


Mohammed,

You apparently are not linking against some libraries. Could you post
a more detailed error message so that we can get a hint as to which
libraries you are missing?

Thanks,
Cory

On Wed, May 12, 2010 at 4:13 AM, mohammed abdel samea
<mohammed_abdel_samea at yahoo.com> wrote:
> Hi,
>
> I've tried to extract texture feature from an image. but wrote the following
> code:
>
> typedef float InternalPixelType;
> const unsigned int Dimension = 2;
> typedef itk::Image< InternalPixelType, Dimension > InternalImageType;
> typedef  itk::ImageFileReader< InternalImageType > ReaderType;
> ReaderType::Pointer reader = ReaderType::New();
> reader->SetFileName( FileName );
> typedef
> itk::Statistics::ScalarImageToGreyLevelCooccurrenceMatrixGenerator<InternalImageType>
> GLCMGeneratorType;
> typede
> fitk::Statistics::GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator
> <GLCMGeneratorType::HistogramType> TexCalcType;
> InternalImageType::Pointer block = InternalImageType::New();
> block->SetRegions(reader->GetOutput()->GetRequestedRegion());
> block->Allocate();
> GLCMGeneratorType::Pointer glcm = GLCMGeneratorType::New();
> glcm->SetInput(block);
> InternalImageType::OffsetType offset = {1,0};
> glcm->SetOffset(offset);
> glcm->SetNumberOfBinsPerAxis(256);
> glcm->Compute();
> TexCalcType::Pointer texCalc = TexCalcType::New();
> texCalc->SetHistogram(glcm->GetOutput());
> double contrast = texCalc->GetInertia();
>
> But I've got errors: fatal error LNK1120: 12 unresolved externals. How can I
> solve this problem! help is really appreciated about that matter!.
>
> Best Regards,
>  Mohammed
>
>
>
> _____________________________________
> 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.html
>
> 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://www.itk.org/mailman/listinfo/insight-users
>
>



-- 
Cory Quammen
Center for Computer Integrated Systems for Microscopy and Manipulation (CISMM)
Department of Computer Science
University of North Carolina at Chapel Hill
http://www.cs.unc.edu/~cquammen


More information about the Insight-users mailing list