Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/127.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 为什么在imagemagick c++;_C++_Imagemagick - Fatal编程技术网

C++ 为什么在imagemagick c++;

C++ 为什么在imagemagick c++;,c++,imagemagick,C++,Imagemagick,大家好,, 我没有任何经验IMAGE MigaGeC++,但我已经做了扭曲变形使用扭曲函数。但是这个过程太慢了。你能帮我加快这个过程吗。我想这个过程会晚一点到这里 #pragma omp parallel for schedule(static,4) shared(progress,status) \ magick_threads(image,distort_image,distort_image->rows,1) 什么算“太慢”,图像有多大?需要3秒钟以上。实际图像大小为480x

大家好,, 我没有任何经验IMAGE MigaGeC++,但我已经做了扭曲变形使用扭曲函数。但是这个过程太慢了。你能帮我加快这个过程吗。我想这个过程会晚一点到这里

 #pragma omp parallel for schedule(static,4) shared(progress,status) \
  magick_threads(image,distort_image,distort_image->rows,1)

什么算“太慢”,图像有多大?需要3秒钟以上。实际图像大小为480x640。谢谢@Mats-peterson,听起来确实很慢-一个线程需要多长时间?实际上我必须对usb摄像头图像进行透视失真。摄像机每秒提供30帧。但我可以在3秒钟内扭曲一个图像。所以这就是为什么我要问。。我怎么知道单线程的速度呢?我想,通过在
计划(静态,4)
中使用1而不是4来运行。