[ITK-dev] Problem with hash using LabelGeometryImageFilter

Lowekamp, Bradley (NIH/NLM/LHC) [C] blowekamp at mail.nih.gov
Mon Aug 14 11:38:36 EDT 2017


Hello,

I would recommend using the itk::LabelImageToShapeLabelMapFilter in the current master branch of the ITK repository:
https://itk.org/Doxygen/html/classitk_1_1LabelImageToShapeLabelMapFilter.html

The LabelGeometryImageFilter is only in the Review module and has several known computational and performance issues.

Brad


From: "Pfaehler, EAG (ngmb)" <e.a.g.pfaehler at umcg.nl>
Date: Monday, August 14, 2017 at 10:55 AM
To: "insight-developers at itk.org" <insight-developers at itk.org>
Subject: [ITK-dev] Problem with hash using LabelGeometryImageFilter

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/5e4ac21c/attachment.html>


More information about the Insight-developers mailing list