[Insight-users] Frequency container saturated for Instance (ITK 3.20)
Liu,Wei
WLiu3 at mdanderson.org
Fri Apr 12 12:33:25 EDT 2013
Hi Hans:
I have built ITK 3.20.1 with options: ITK_USE_REVIEW = ON, ITK_USE_STATISTICS = ON, BUILD_SHARED_LIBS = ON, CMAKE_BUILD_TYPE = Release, ITK_USE_OPTIMIZED_REGISTRATION = ON.
Then i followed the instructions to compile the code with:
cmake -DITK_DIR=/work/01515/wliu3/ITK_Binary/ -DCMAKE_BUILD_TYPE=Release ../LogSymmetricDemons-master
and
make -j2
However, the compiling cannot be finished successfully. Here are the error message:
Scanning dependencies of target MakeTestImages
Scanning dependencies of target itkDisplacementFieldCompositionFilterTest
[ 11%] Building CXX object Testing/CMakeFiles/itkDisplacementFieldCompositionFilterTest.dir/itkDisplacementFieldCompositionFilterTest.cxx.o
[ 11%] Building CXX object Testing/CMakeFiles/MakeTestImages.dir/MakeTestImages.cxx.o
/work/01515/wliu3/LogSymmetricDemons-master/Testing/MakeTestImages.cxx: In function ‘void GetRegion(typename ImageType::Pointer&, typename SpatialObjectType::Pointer&, typename ImageType::RegionType&) [with SpatialObjectType = itk::EllipseSpatialObject<2u>, ImageType = itk::Image<unsigned char, 2u>]’:
/work/01515/wliu3/LogSymmetricDemons-master/Testing/MakeTestImages.cxx:134: instantiated from here
/work/01515/wliu3/LogSymmetricDemons-master/Testing/MakeTestImages.cxx:69: warning: converting to ‘long unsigned int’ from ‘double’
/work/01515/wliu3/LogSymmetricDemons-master/Testing/MakeTestImages.cxx:77: error: ‘class itk::ImageRegion<2u>’ has no member named ‘GetUpperIndex’
/work/01515/wliu3/LogSymmetricDemons-master/Testing/MakeTestImages.cxx:134: instantiated from here
/work/01515/wliu3/LogSymmetricDemons-master/Testing/MakeTestImages.cxx:85: error: ‘class itk::ImageRegion<2u>’ has no member named ‘GetUpperIndex’
/work/01515/wliu3/LogSymmetricDemons-master/Testing/MakeTestImages.cxx: In function ‘void GetRegion(typename ImageType::Pointer&, typename SpatialObjectType::Pointer&, typename ImageType::RegionType&) [with SpatialObjectType = itk::BoxSpatialObject<2u>, ImageType = itk::Image<unsigned char, 2u>]’:
/work/01515/wliu3/LogSymmetricDemons-master/Testing/MakeTestImages.cxx:171: instantiated from here
/work/01515/wliu3/LogSymmetricDemons-master/Testing/MakeTestImages.cxx:69: warning: converting to ‘long unsigned int’ from ‘double’
/work/01515/wliu3/LogSymmetricDemons-master/Testing/MakeTestImages.cxx:77: error: ‘class itk::ImageRegion<2u>’ has no member named ‘GetUpperIndex’
/work/01515/wliu3/LogSymmetricDemons-master/Testing/MakeTestImages.cxx:85: error: ‘class itk::ImageRegion<2u>’ has no member named ‘GetUpperIndex’
make[2]: *** [Testing/CMakeFiles/MakeTestImages.dir/MakeTestImages.cxx.o] Error 1
make[1]: *** [Testing/CMakeFiles/MakeTestImages.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Linking CXX executable ../tests/itkDisplacementFieldCompositionFilterTest
[ 11%] Built target itkDisplacementFieldCompositionFilterTest
make: *** [all] Error 2
It seems that class::ImageRegion does not have the member named 'GetUpperIndex'
So i have to install ITK 4.3.0? I am a little bit concerned that my old codes based on ITK 3.20.1 could run well using ITK 4.3.0?
Thanks
Wei
________________________________
From: Johnson, Hans J [hans-johnson at uiowa.edu]
Sent: Wednesday, April 10, 2013 5:04 PM
To: Liu,Wei; insight-users at itk.org
Subject: Re: [Insight-users] Frequency container saturated for Instance (ITK 3.20)
Wei,
You may want to try using an ITKv4 version of the symmetric force demon: We have an updated version of the original on github.
https://github.com/BRAINSia/LogSymmetricDemons
Hans
From: <Liu>, Wei <WLiu3 at mdanderson.org<mailto:WLiu3 at mdanderson.org>>
Date: Wednesday, April 10, 2013 4:22 PM
To: "insight-users at itk.org<mailto:insight-users at itk.org>" <insight-users at itk.org<mailto:insight-users at itk.org>>
Subject: [Insight-users] Frequency container saturated for Instance (ITK 3.20)
I am using ITK 3.20 to do symmetric force demon registration, which uses histogram matching. I found that for some CTs, it works fine. However, for some CTs, it does not work with the following error message.
itk::ExceptionObject (0x1c1679e0)
Location: "bool itk::Statistics::DenseFrequencyContainer::IncreaseFrequency(long unsigned int, float)"
File: /work/01515/wliu3/InsightToolkit-3.20.0/Code/Numerics/Statistics/itkDenseFrequencyContainer.cxx
Line: 84
Description: itk::ERROR: DenseFrequencyContainer(0x1c1431b0): Frequency container saturated for Instance
I understood that this problem was in ITK 3.16, but i supposed this problem was fixed in ITK 3.20 by using the new statistics framework. Is my understanding wrong? Could you please give me some hints how to solve this problem?
Thanks
Wei
Wei Liu, PhD
Assistant Professor
The University of Texas M.D. Anderson Cancer Center
Department of Radiation Physics - Unit 94
Houston, Texas 77030
wliu3 at mdanderson.org<mailto:agatson at mdanderson.org>
Office: 713.794.4112
Fax: 713.563.2545
Pager: 713.404.6064
[cid:image001.png at 01CE3607.91D30600]
________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130412/fd4a3d68/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 14292 bytes
Desc: image001.png
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130412/fd4a3d68/attachment.png>
More information about the Insight-users
mailing list