// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // Copyright (C) 2014, Advanced Micro Devices, Inc., all rights reserved. // Third party copyrights are property of their respective owners. #include "../test_precomp.hpp" #include "opencv2/ts/ocl_test.hpp" #ifdef HAVE_OPENCL namespace cvtest { namespace ocl { PARAM_TEST_CASE(FastNlMeansDenoisingTestBase, Channels, bool, bool) { int cn, templateWindowSize, searchWindowSize; float h[4]; bool use_roi, use_image; TEST_DECLARE_INPUT_PARAMETER(src); TEST_DECLARE_OUTPUT_PARAMETER(dst); virtual void SetUp() { cn = GET_PARAM(0); use_roi = GET_PARAM(1); use_image = GET_PARAM(2); templateWindowSize = 7; searchWindowSize = 21; ASSERT_TRUE(cn > 0 && cn <= 4); for (int i=0; i