mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
Added implementation of remap on GPU. Minor fixes of convertTo. Added opencv_imgproc to gpu_test dependencies.
This commit is contained in:
@@ -36,10 +36,10 @@ set_target_properties(${the_target} PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/"
|
||||
)
|
||||
|
||||
add_dependencies(${the_target} opencv_ts opencv_gpu opencv_highgui)
|
||||
add_dependencies(${the_target} opencv_ts opencv_gpu opencv_highgui opencv_imgproc)
|
||||
|
||||
# Add the required libraries for linking:
|
||||
target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} opencv_ts opencv_gpu opencv_highgui)
|
||||
target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} opencv_ts opencv_gpu opencv_highgui opencv_imgproc)
|
||||
|
||||
enable_testing()
|
||||
get_target_property(LOC ${the_target} LOCATION)
|
||||
|
||||
@@ -50,22 +50,11 @@ void CV_GpuMatOpConvertTo::run( int /* start_from */)
|
||||
Mat cpumatdst;
|
||||
GpuMat gpumatdst;
|
||||
|
||||
//TickMeter tm;
|
||||
//tm.start();
|
||||
//for(int i = 0; i < 50; ++i)
|
||||
cpumatsrc.convertTo(cpumatdst, dst_type, alpha, beta);
|
||||
//tm.stop();
|
||||
//cout << "SRC_TYPE=" << types_str[i] << "C" << c << " DST_TYPE=" << types_str[j] << endl << "\tCPU FPS = " << 50.0/tm.getTimeSec() << endl;
|
||||
|
||||
//tm.reset();
|
||||
cpumatsrc.convertTo(cpumatdst, dst_type, alpha, beta);
|
||||
|
||||
try
|
||||
{
|
||||
//tm.start();
|
||||
//for(int i = 0; i < 50; ++i)
|
||||
gpumatsrc.convertTo(gpumatdst, dst_type, alpha, beta);
|
||||
//tm.stop();
|
||||
//cout << "\tGPU FPS = " << 50.0/tm.getTimeSec() << endl;
|
||||
gpumatsrc.convertTo(gpumatdst, dst_type, alpha, beta);
|
||||
}
|
||||
catch(cv::Exception& e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user