static void CreateImage(ImageType::Pointer);
int
main(int, char *[])
{
ImageType::Pointer image = ImageType::New();
CreateImage(image);
TextureFilterType::Pointer textureFilter = TextureFilterType::New();
textureFilter->SetInput(image);
textureFilter->Update();
const TextureFilterType::FeatureValueVector * output = textureFilter->GetFeatureMeans();
for (unsigned int i = 0; i < output->size(); ++i)
{
std::cout << (*output)[i] << std::endl;
}
return EXIT_SUCCESS;
}
static void
CreateImage(ImageType::Pointer image)
{
image->SetRegions(region);
image->Allocate();
}
This class computes texture descriptions from an image.