如何在图像处理中有效地使用线程? [英] How to Use threads efficiently in Image Processing?

查看:130
本文介绍了如何在图像处理中有效地使用线程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目标:开发一种在给定图像中查找圆圈的算法



实现部分:VC ++ 2010 +使用opencv库查找圆圈



输入:ROI(X,y,宽度,高度),IplImage *(Input_Image)算法:所以在这里调用给定ROI中的Opencv Circle函数



所以对于ex:



如果我有20个圈子的图像,我将有20个ROI'的



问题:所以每次算法都按顺序执行



在循环中

输入 - > ROI功能 - >在给定的投资回报率中找到Cirlce - >返回圆参数 - >输出



待办事项:需要使用多线程减少处理时间



我可以使用两个线程并行执行此操作???

Objective : To Develop an algorithm for finding the Circles in given image

Implementation Part : VC++ 2010 + Using opencv library to find the Circles

Inputs : ROI (X,y,Width,Height) , IplImage* (Input_Image) Algorithm : So here calling the Opencv Circle function in the given ROI

So For ex:

if i have 20 circles in image, i will be having 20 ROI''s

Problem: So every time algorithm is acting on sequence basis

In LOOP
Input -> ROI Function -> Find Cirlce in given ROI -> return Circle Parameter -> Output

TO DO: Need to reduce the processing time using Multithreading

Can I use two threads to do this in parallel ???

推荐答案

你可以用较小的部分剪切图像,但是你可能会遇到麻烦交叠。这是VB中Sobel滤波器的一个实现,但应该很容易理解。

http://visualcore.com/index.php/2008/03/sobel-edge-detector-in-vb-net/ [ ^ ]
You could cut the image up in smaller parts, however you might get in trouble with your circles as they could overlap. Here is one implementation of a Sobel filter in VB, should be easy to understand though.
http://visualcore.com/index.php/2008/03/sobel-edge-detector-in-vb-net/[^]


这篇关于如何在图像处理中有效地使用线程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆