You are here: Start » AVL.NET » AVL.DetectSingleCircle Method

AVL.DetectSingleCircle Method

Finds the strongest circle of a given radius in the input image.



public static void DetectSingleCircle(
	AvlNet.Image inImage,
	AvlNet.Region inRoi,
	float inRadius,
	float inMinScore,
	float inEdgeThreshold,
	out AvlNet.HoughCircle? outCircle,
	out AvlNet.Image diagGradientMagnitudeImage,
	out AvlNet.Image diagScoreImage


Name Type Range Default Description
inImageAvlNet.ImageInput image.
inRoiAvlNet.RegionInput region of interest. Default value: atl::NIL, or null.
inRadiusfloat<0.0f, INF>10.0fCircle's radius. Default value: 10.0f.
inMinScorefloat<0.0f, INF>20.0fMinimum matching score. Default value: 20.0f.
inEdgeThresholdfloat10.0fMinimum accepted edge magnitude. Default value: 10.0f.
outCircleAvlNet.HoughCircle?Found circle.
diagGradientMagnitudeImageAvlNet.ImageVisualized gradients magnitude of an input image.
diagScoreImageAvlNet.ImageCalculated score for each pixel of an input image.


The operation detects circular object of given radius (in pixels) in the inImage using the Hough Transform approach.


DetectSingleCircle performed on the sample image.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Hardware acceleration settings may be manipulated with Settings class.

See also