How can I speed up random circle detection?

Hi, All.

I have made Montecarlo Random Circle Detection code.

sarching-1
result

But detection speed is so slow… :sweat_smile:

My code is not optimized for openframeworks, at all.
How can I speed up detection time ?

Thanks in advance.

Best,
@bemoregt.

Montecarlo method for computer vision is a potential subject.
But there is not headlighted yet.