mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-21 06:11:09 +08:00

Add Radon transform function to ximgproc * resolve rebash conflict * add test for hough_space_transform * add perf for hough_space_transform * add sample for hough_space_transform * fix compatible issue and trailing space * fix EOF issue * resolve rebash conflict * update radon transform fix always cropping corner when rotate transpose the output - now each column is integral add support for float number add comment * add float type to perf test * add float type to accu test * update document * fix trailing space * resolve rebase conflict * Resolve coding style issues
36 lines
837 B
C++
36 lines
837 B
C++
// 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.
|
|
|
|
#include "perf_precomp.hpp"
|
|
|
|
namespace opencv_test { namespace {
|
|
|
|
typedef tuple<Size, MatType> RadonTransformPerfTestParam;
|
|
typedef perf::TestBaseWithParam<RadonTransformPerfTestParam> RadonTransformPerfTest;
|
|
|
|
PERF_TEST_P(RadonTransformPerfTest, perf,
|
|
testing::Combine(
|
|
testing::Values(TYPICAL_MAT_SIZES),
|
|
testing::Values(CV_8UC1, CV_32FC1, CV_64FC1)
|
|
)
|
|
)
|
|
{
|
|
Size srcSize = get<0>(GetParam());
|
|
int srcType = get<1>(GetParam());
|
|
|
|
Mat src(srcSize, srcType);
|
|
Mat radon;
|
|
|
|
declare.in(src, WARMUP_RNG);
|
|
|
|
TEST_CYCLE()
|
|
{
|
|
RadonTransform(src, radon);
|
|
}
|
|
|
|
SANITY_CHECK_NOTHING();
|
|
}
|
|
|
|
} }
|