[Insight-developers] HI I have some problems with submitting the test code.
Bill Lorensen
bill.lorensen at gmail.com
Tue Sep 27 06:46:23 EDT 2011
There is a new procedure for adding data to itkv4. We are phasing out
Testing/Data. Please look at the instructions here:
http://itk.org/Wiki/ITK/Git/Develop/Data
Bill
2011/9/27 丁昊 <tin.dinghao at gmail.com>:
> Hi Bill
> Thank you so much for your reply
> Following your guide I have modified my code to ITKv4. And the code is
> working by itself.
> But when I was doing the ctest it gives me
> 179:
> Failed: /Users/haoding/project/ITK/Testing/Data/Baseline/SupervisedBayes.png
> is an invalid test name.
> 1/1 Test #179: itkSupervisedBayesianClassifierInitializationImageFilterTest
> ...***Failed 0.07 sec
>
> The input png is under /Users/haoding/project/ITK/Testing/Data/Baseline/.
> And I wrote the CMakeList as follow
> itk_add_test(NAME
> itkSupervisedBayesianClassifierInitializationImageFilterTest
> COMMAND ITKReviewTestDriver
> ${BASELINE_ROOT}/SupervisedBayes.png
> ${ITK_TEST_OUTPUT_DIR}/SupervisedBayesOutput.mha
> 6 42 208 135 25 37 249 407 460 606 300 708 146)
> All the digite on the last line is my input parameters.
>
>
> Hao
> 在 2011年9月14日 下午11:03,Bill Lorensen <bill.lorensen at gmail.com>写道:
>>
>> itkGaussianDensityFunction does not exist in ITKv4. Please look at the
>> statistics migration page to see the new equivalent:
>>
>> http://www.vtk.org/Wiki/Proposals:Refactoring_Statistics_Framework_2007_Migration_Users_Guide
>>
>> Bill
>>
>> 2011/9/14 丁昊 <tin.dinghao at gmail.com>
>>>
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:5:40:
>>> error: itkGaussianDensityFunction.h: No such file or directory
>>> In file included from
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/test/itkSupervisedBayesianClassifierInitializationImageFilterTest.cxx:20:
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.h:78:
>>> error: 'Statistics' has not been declared
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.h:78:
>>> error: ISO C++ forbids declaration of 'DensityFunction' with no type
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.h:78:
>>> error: typedef name may not be a nested-name-specifier
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.h:78:
>>> error: expected ';' before '<' token
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.h:81:
>>> error: 'MembershipFunctionType' has not been declared
>>> In file included from
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.h:127,
>>> from
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/test/itkSupervisedBayesianClassifierInitializationImageFilterTest.cxx:20:
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:
>>> In member function 'virtual void
>>> itk::SupervisedBayesianClassifierInitializationImageFilter<TInputImage,
>>> TProbabilityPrecisionType>::InitializeMembershipFunctions()':
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:80:
>>> error: expected initializer before '<' token
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:83:
>>> error: template argument 2 is invalid
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:83:
>>> error: invalid type in declaration before ';' token
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:85:
>>> error: template argument 2 is invalid
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:85:
>>> error: invalid type in declaration before ';' token
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:118:
>>> error: 'MeanEstimatorsContainerType' is not a class or namespace
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:118:
>>> error: expected initializer before 'meanEstimatorsContainer'
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:120:
>>> error: 'CovarianceEstimatorsContainerType' is not a class or namespace
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:120:
>>> error: expected initializer before 'covarianceEstimatorsContainer'
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:122:
>>> error: 'meanEstimatorsContainer' was not declared in this scope
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:123:
>>> error: 'covarianceEstimatorsContainer' was not declared in this scope
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:131:
>>> error: 'GaussianMembershipFunctionType' has not been declared
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:133:
>>> error: 'GaussianMembershipFunctionType' has not been declared
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:134:
>>> error: 'GaussianMembershipFunctionType' has not been declared
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:134:
>>> error: expected initializer before '*' token
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:137:
>>> error: 'GaussianMembershipFunctionType' has not been declared
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:137:
>>> error: expected initializer before '*' token
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:140:
>>> error: 'meanEstimators' was not declared in this scope
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:141:
>>> error: 'covarianceEstimators' was not declared in this scope
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:145:
>>> error: 'GaussianMembershipFunctionType' has not been declared
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:145:
>>> error: expected initializer before 'gaussianDensityFunction'
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:147:
>>> error: 'gaussianDensityFunction' was not declared in this scope
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:152:
>>> error: expected type-specifier before 'MembershipFunctionType'
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:152:
>>> error: expected `>' before 'MembershipFunctionType'
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:152:
>>> error: expected `(' before 'MembershipFunctionType'
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:152:
>>> error: 'MembershipFunctionType' was not declared in this scope
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:152:
>>> error: expected primary-expression before '>' token
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:
>>> In member function 'virtual void
>>> itk::SupervisedBayesianClassifierInitializationImageFilter<TInputImage,
>>> TProbabilityPrecisionType>::GenerateData()':
>>>
>>> /Users/haoding/project/ITK/Modules/Nonunit/Review/include/itkSupervisedBayesianClassifierInitializationImageFilter.hxx:192:
>>> error: base operand of '->' is not a pointer
>>> make[2]: ***
>>> [Modules/Nonunit/Review/test/CMakeFiles/ITKReviewTestDriver.dir/itkSupervisedBayesianClassifierInitializationImageFilterTest.cxx.o]
>>> Error 1
>>> make[1]: ***
>>> [Modules/Nonunit/Review/test/CMakeFiles/ITKReviewTestDriver.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>> 2011/9/14 Bill Lorensen <bill.lorensen at gmail.com>
>>>>
>>>> Nonunit/Review should include the statistics library. What errors are
>>>> you getting?
>>>>
>>>> Bill
>>>>
>>>> On Wed, Sep 14, 2011 at 8:40 PM, 丁昊 <tin.dinghao at gmail.com> wrote:
>>>>>
>>>>> Hi Bill
>>>>> My name is Hao Ding. I m working under Raghu Machiraju. Me and Arindam
>>>>> were trying to submit some ITK filter.
>>>>> My problem is different form Arindam's.
>>>>> In my filter I need to use the Statistic library. I put the test case
>>>>> under the Nonunit/Review/test module, and modified the CMakeList.
>>>>> But I noticed the default ITKReview-Test_LIBRARIES doesn't include the
>>>>> Statistic, I believed that is the reason why my test code can not be
>>>>> compiled locally.
>>>>> Should I create another folder for my test and write my own CMakeList
>>>>> or should I put the test code under other module?
>>>>> Hao
>>>
>>
>
>
More information about the Insight-developers
mailing list