[ITK-dev] Problem with hash using LabelGeometryImageFilter
Pfaehler, EAG (ngmb)
e.a.g.pfaehler at umcg.nl
Mon Aug 14 10:55:04 EDT 2017
Dear all,
I need some help with the following problem:
I have a mask representing the ROI of an image. I wanted now to use the LabelGeometryImageFilter to calculate the volume and eigenvalues of this mask.
For this I have the following code:
typedef itk::Image< T, R > ImageType;
typename ImageType::Pointer mask;
typedef itk::ImageFileReader< ImageType > ReaderType;
typename ReaderType::Pointer readerMask = ReaderType::New();
readerMask->SetFileName(config.voiName);
//get the output of the VOI mask
mask = readerMask->GetOutput();
try{
readerMask->Update();
}
catch(itk::ExceptionObject &excp){
std::cerr << excp <<std::endl;
}
double origin[3] = {0.0, 0.0, 0.0};
mask->SetOrigin(origin);
typedef itk::LabelGeometryImageFilter< ImageType > LabelGeometryImageFilterType;
typename LabelGeometryImageFilterType::Pointer labelGeometryImageFilter = LabelGeometryImageFilterType::New();
If I want to compile this, I already get the error:
Error: no match for call to '{const hasher {aka const __gnu_cxx: hash<float>}) (const key_type&)
Does anyone know where the problem is coming from and how I could solve this?
Thanks a lot !
Regards
Elli
________________________________
De inhoud van dit bericht is vertrouwelijk en alleen bestemd voor de geadresseerde(n). Anderen dan de geadresseerde(n) mogen geen gebruik maken van dit bericht, het niet openbaar maken of op enige wijze verspreiden of vermenigvuldigen. Het UMCG kan niet aansprakelijk gesteld worden voor een incomplete aankomst of vertraging van dit verzonden bericht.
The contents of this message are confidential and only intended for the eyes of the addressee(s). Others than the addressee(s) are not allowed to use this message, to make it public or to distribute or multiply this message in any way. The UMCG cannot be held responsible for incomplete reception or delay of this transferred message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-developers/attachments/20170814/3f9a36fd/attachment.html>
More information about the Insight-developers
mailing list