Basic Image AlgorithmS Library
2.8.0
|
helper class for testing individual filters More...
#include <Filter/Tests/TestFilterBase.hh>
Public Member Functions | |
void | AddTestData (const FilterTestPair< InputStorageType, OutputStorageType > &data) |
bool | Test () |
TestFilterBase () | |
~TestFilterBase () | |
Protected Member Functions | |
bool | CompareHeader_ (const Image< InputStorageType > &src, const Image< OutputStorageType > &dst) const |
bool | CompareImageData_ (const Image< OutputStorageType > >, const Image< OutputStorageType > &dst) const |
bool | TestBorderHandling_ () |
bool | TestData_ () |
Protected Attributes | |
std::vector< FilterTestPair < InputStorageType, OutputStorageType > > | Data_ |
FILTER< InputStorageType, OutputStorageType > | Filter_ |
helper class for testing individual filters
Instatiate this class with the approriat filter, add some grond truth test data using the function AddTestData() and finally call Test() to do some basic testing of the filter
See TestFilterBinomial as an example
Definition at line 72 of file TestFilterBase.hh.
|
inline |
Definition at line 75 of file TestFilterBase.hh.
|
inline |
Definition at line 77 of file TestFilterBase.hh.
void BIAS::TestFilterBase< FILTER, InputStorageType, OutputStorageType >::AddTestData | ( | const FilterTestPair< InputStorageType, OutputStorageType > & | data | ) |
Definition at line 131 of file TestFilterBase.hh.
|
protected |
Definition at line 209 of file TestFilterBase.hh.
References BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetColorModel(), BIAS::ImageBase::GetHeight(), BIAS::ImageBase::GetWidth(), and BIAS::ImageBase::IsInterleaved().
|
protected |
Definition at line 223 of file TestFilterBase.hh.
References BIAS::Equal(), BIAS::ImageBase::GetChannelCount(), BIAS::Image< StorageType >::GetImageDataArray(), BIAS::ImageBase::GetROICorners(), and BIAS::ImageBase::SamePixelAndChannelCount().
bool BIAS::TestFilterBase< FILTER, InputStorageType, OutputStorageType >::Test | ( | ) |
Definition at line 117 of file TestFilterBase.hh.
|
protected |
Definition at line 142 of file TestFilterBase.hh.
References BIAS::Image< StorageType >::FillImageWithConstValue(), BIAS::ImageBase::GetROICorners(), and BIAS::ImageBase::SetROICorners().
|
protected |
Definition at line 193 of file TestFilterBase.hh.
|
protected |
Definition at line 88 of file TestFilterBase.hh.
|
protected |
Definition at line 86 of file TestFilterBase.hh.