<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:10pt">Hi,<br><br>I've tried to extract texture feature from an image. but wrote the following code:<br><br>typedef float InternalPixelType;<br>const unsigned int Dimension = 2;<br>typedef itk::Image< InternalPixelType, Dimension > InternalImageType;<br>typedef itk::ImageFileReader< InternalImageType > ReaderType;<br>ReaderType::Pointer reader = ReaderType::New();<br>reader->SetFileName( FileName );<br><div style="text-align: left;">typedef itk::Statistics::ScalarImageToGreyLevelCooccurrenceMatrixGenerator<InternalImageType> GLCMGeneratorType;<br>typede fitk::Statistics::GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator<br><GLCMGeneratorType::HistogramType> TexCalcType;<br>InternalImageType::Pointer block =
InternalImageType::New();<br>block->SetRegions(reader->GetOutput()->GetRequestedRegion());<br>block->Allocate();<br>GLCMGeneratorType::Pointer glcm = GLCMGeneratorType::New();<br>glcm->SetInput(block);<br>InternalImageType::OffsetType offset = {1,0};<br>glcm->SetOffset(offset);<br>glcm->SetNumberOfBinsPerAxis(256);<br>glcm->Compute();<br>TexCalcType::Pointer texCalc = TexCalcType::New();<br>texCalc->SetHistogram(glcm->GetOutput());<br>double contrast = texCalc->GetInertia();<br></div><br>But I've got errors: fatal error LNK1120: 12 unresolved externals. How can I solve this problem! help is really appreciated about that matter!. <br><br>Best Regards,<br> Mohammed<br><br></div><br>
</body></html>