BRAINSia/BRAINSStandAlone — pull request #46 by reginakim (2012-02-27 21:47:09+00:00)
Title: Another issue on the noise generator

Hello all,

Yes I am back, and started to bug you. Sorry and thanks.

If any of you remember this, I fixed the stupid error I created in the xml file. This time, it looks like the 'New' command of the 'itkAdditiveGaussianNoiseImageFilter.h' having an issue.

The code only gives a warning (no error!) as following:

/ipldev/scratch/eunyokim/src/BRAINS20111028/BRAINSStandAlone/BRAINSCut/BRAINSFeatureCreators/NoiseGenerator/itkAdditiveGaussianNoiseImageFilter.h: In instantiation of ‘itk::AdditiveGaussianNoiseImageFilter, itk::Image >’:
/ipldev/scratch/eunyokim/src/BRAINS20111028/BRAINSStandAlone/BRAINSCut/BRAINSFeatureCreators/NoiseGenerator/NoiseGenerator.cxx:38: instantiated from here
/ipldev/scratch/eunyokim/src/BRAINS20111028/build-Darwin-Debug/ITKv4/Modules/Core/Common/include/itkImageSource.hxx:288: warning: ‘void itk::ImageSource::ThreadedGenerateData(const typename TOutputImage::RegionType&, itk::ThreadIdType) [with TOutputImage = itk::Image]’ was hidden
/ipldev/scratch/eunyokim/src/BRAINS20111028/BRAINSStandAlone/BRAINSCut/BRAINSFeatureCreators/NoiseGenerator/itkAdditiveGaussianNoiseImageFilter.hxx:42: warning: by ‘void itk::AdditiveGaussianNoiseImageFilter::ThreadedGenerateData(const typename itk::InPlaceImageFilter::OutputImageRegionType&, int) [with TInputImage = itk::Image, TOutputImage = itk::Image]’
Linking CXX shared library /ipldev/scratch/eunyokim/src/BRAINS20111028/build-Darwin-Debug/lib/libNoiseGeneratorLib.dylib
ld: warning: directory not found for option '-L/IPLlinux/ipldev/scratch/eunyokim/src/BRAINS20111028/build-Darwin-Debug/OpenCV-install/share/OpenCV/3rdparty/lib'
[ 99%] Built target NoiseGeneratorLib
Linking CXX executable /ipldev/scratch/eunyokim/src/BRAINS20111028/build-Darwin-Debug/lib/NoiseGenerator
ld: warning: directory not found for option '-L/IPLlinux/ipldev/scratch/eunyokim/src/BRAINS20111028/build-Darwin-Debug/OpenCV-install/share/OpenCV/3rdparty/lib'
[100%] Built target NoiseGenerator
[ 78%] No install step for 'BRAINSTools'
[ 78%] Completed 'BRAINSTools'
[100%] Built target BRAINSTools

And then if I try to run the binary, I get the following error::

/ipldev/scratch/eunyokim/src/BRAINS20111028/build-Darwin-Debug/lib/NoiseGenerator --inputVolume /ipldev/scratch/eunyokim/src/BRAINS20111028/build-Darwin-Debug/ReferenceAtlas-build/Atlas/Atlas_20120104/template_t1.nii.gz --outputVolume ~/Desktop/outputTest.nii.gz --inputGaissianMean 0 --inputGaussianStandardDeviation 1
10::/ipldev/scratch/eunyokim/src/BRAINS20111028/BRAINSStandAlone/BRAINSCut/BRAINSFeatureCreators/NoiseGenerator/NoiseGenerator.cxx
12::/ipldev/scratch/eunyokim/src/BRAINS20111028/BRAINSStandAlone/BRAINSCut/BRAINSFeatureCreators/NoiseGenerator/NoiseGenerator.cxx
32::/ipldev/scratch/eunyokim/src/BRAINS20111028/BRAINSStandAlone/BRAINSCut/BRAINSFeatureCreators/NoiseGenerator/itkAdditiveGaussianNoiseImageFilter.hxx

It fails at the 'New' part. Can any one please help me? The warning message says something has been 'hidden' and I am guessint that part causes the issue.

Thanks.

Regina