学习图像处理知识---Emgu3.4 CvInvoke Class类学习(四)

霍夫变换

经典霍夫变换用来检测图像中的直线,后来霍夫变换扩展到任意形状的识别,多为圆和椭圆。霍夫变换将在一个空间中具
有相同的形状的曲线或直线映射到另一个坐标空间的一个点上形成峰值。Image<TColor,TDepth>类中也此类型函数。

public static void HoughLines(
	IInputArray image,
	IOutputArray lines,
	double rho,
	double theta,
	int threshold,
	double srn = 0,
	double stn = 0
)
public static LineSegment2D[] HoughLinesP(
	IInputArray image,
	double rho,
	double theta,
	int threshold,
	double minLineLength = 0,
	double maxGap = 0
)
public static void HoughLinesP(
	IInputArray image,
	IOutputArray lines,
	double rho,
	double theta,
	int threshold,
	double minLineLength = 0,
	double maxGap = 0
)
public static CircleF[] HoughCircles(
	IInputArray image,
	HoughType method,
	double dp,
	double minDist,
	double param1 = 100,
	double param2 = 100,
	int minRadius = 0,
	int maxRadius = 0
)
public static void HoughCircles(
	IInputArray image,
	IOutputArray circles,
	HoughType method,
	double dp,
	double minDist,
	double param1 = 100,
	double param2 = 100,
	int minRadius = 0,
	int maxRadius = 0
)

猜你喜欢

转载自blog.csdn.net/tuto7534/article/details/80139568