mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
raise allowed num of error pixels a bit
This commit is contained in:
parent
78e3cbb501
commit
268e882c97
@ -41,7 +41,7 @@ inline VTKM_CONT ImageDifference::ImageDifference()
|
||||
: vtkm::filter::FilterField<ImageDifference>()
|
||||
, AverageRadius(0)
|
||||
, PixelShiftRadius(0)
|
||||
, AllowedPixelErrorRatio(0.0001f)
|
||||
, AllowedPixelErrorRatio(0.00025f)
|
||||
, PixelDiffThreshold(0.05f)
|
||||
, ImageDiffWithinThreshold(true)
|
||||
, SecondaryFieldName("image-2")
|
||||
|
@ -38,11 +38,12 @@
|
||||
/// missing the image will be generated for that file and the test will continue.
|
||||
///
|
||||
template <typename ViewType>
|
||||
inline TestEqualResult test_equal_images(const std::shared_ptr<ViewType> view,
|
||||
inline TestEqualResult test_equal_images(
|
||||
const std::shared_ptr<ViewType> view,
|
||||
const std::vector<std::string>& fileNames,
|
||||
const vtkm::IdComponent& averageRadius = 0,
|
||||
const vtkm::IdComponent& pixelShiftRadius = 0,
|
||||
const vtkm::FloatDefault& allowedPixelErrorRatio = 0.0001f,
|
||||
const vtkm::FloatDefault& allowedPixelErrorRatio = 0.00025f,
|
||||
const vtkm::FloatDefault& threshold = 0.05f,
|
||||
const bool& writeDiff = true,
|
||||
const bool& returnOnPass = true)
|
||||
@ -137,11 +138,12 @@ inline TestEqualResult test_equal_images(const std::shared_ptr<ViewType> view,
|
||||
}
|
||||
|
||||
template <typename ViewType>
|
||||
inline TestEqualResult test_equal_images(const std::shared_ptr<ViewType> view,
|
||||
inline TestEqualResult test_equal_images(
|
||||
const std::shared_ptr<ViewType> view,
|
||||
const std::string& fileName,
|
||||
const vtkm::IdComponent& averageRadius = 0,
|
||||
const vtkm::IdComponent& pixelShiftRadius = 0,
|
||||
const vtkm::FloatDefault& allowedPixelErrorRatio = 0.0001f,
|
||||
const vtkm::FloatDefault& allowedPixelErrorRatio = 0.00025f,
|
||||
const vtkm::FloatDefault& threshold = 0.05f,
|
||||
const bool& writeDiff = true)
|
||||
{
|
||||
@ -169,7 +171,7 @@ inline TestEqualResult test_equal_images_matching_name(
|
||||
const std::string& fileName,
|
||||
const vtkm::IdComponent& averageRadius = 0,
|
||||
const vtkm::IdComponent& pixelShiftRadius = 0,
|
||||
const vtkm::FloatDefault& allowedPixelErrorRatio = 0.0001f,
|
||||
const vtkm::FloatDefault& allowedPixelErrorRatio = 0.00025f,
|
||||
const vtkm::FloatDefault& threshold = 0.05f,
|
||||
const bool& writeDiff = true,
|
||||
const bool& returnOnPass = true)
|
||||
|
Loading…
Reference in New Issue
Block a user