Click here to Skip to main content
15,886,199 members
Articles / Desktop Programming / Win32

Line Fitting in Images Using Orthogonal Linear Regression

Rate me:
Please Sign up or sign in to vote.
5.00/5 (8 votes)
12 Apr 2013CPOL9 min read 35.1K   1.8K   20  
Describes an algorithm for calculating the equation of a line in an image using orthogonal linear regression.

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual C# Express 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OrthogonalLinearRegression", "OrthogonalLinearRegression.csproj", "{E1DDC7BE-4403-463E-8E70-0F356FC94E39}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Regression", "Regression\Regression.csproj", "{09FE4D9D-A879-4E69-B61E-0C054D012623}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RegressionTest", "RegressionTest\RegressionTest.csproj", "{9B9915F0-F0F4-42A1-BF0E-C5313B6F9ACB}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Debug|Mixed Platforms = Debug|Mixed Platforms
		Debug|x86 = Debug|x86
		Release|Any CPU = Release|Any CPU
		Release|Mixed Platforms = Release|Mixed Platforms
		Release|x86 = Release|x86
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{E1DDC7BE-4403-463E-8E70-0F356FC94E39}.Debug|Any CPU.ActiveCfg = Debug|x86
		{E1DDC7BE-4403-463E-8E70-0F356FC94E39}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
		{E1DDC7BE-4403-463E-8E70-0F356FC94E39}.Debug|Mixed Platforms.Build.0 = Debug|x86
		{E1DDC7BE-4403-463E-8E70-0F356FC94E39}.Debug|x86.ActiveCfg = Debug|x86
		{E1DDC7BE-4403-463E-8E70-0F356FC94E39}.Debug|x86.Build.0 = Debug|x86
		{E1DDC7BE-4403-463E-8E70-0F356FC94E39}.Release|Any CPU.ActiveCfg = Release|x86
		{E1DDC7BE-4403-463E-8E70-0F356FC94E39}.Release|Mixed Platforms.ActiveCfg = Release|x86
		{E1DDC7BE-4403-463E-8E70-0F356FC94E39}.Release|Mixed Platforms.Build.0 = Release|x86
		{E1DDC7BE-4403-463E-8E70-0F356FC94E39}.Release|x86.ActiveCfg = Release|x86
		{E1DDC7BE-4403-463E-8E70-0F356FC94E39}.Release|x86.Build.0 = Release|x86
		{09FE4D9D-A879-4E69-B61E-0C054D012623}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{09FE4D9D-A879-4E69-B61E-0C054D012623}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{09FE4D9D-A879-4E69-B61E-0C054D012623}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{09FE4D9D-A879-4E69-B61E-0C054D012623}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{09FE4D9D-A879-4E69-B61E-0C054D012623}.Debug|x86.ActiveCfg = Debug|Any CPU
		{09FE4D9D-A879-4E69-B61E-0C054D012623}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{09FE4D9D-A879-4E69-B61E-0C054D012623}.Release|Any CPU.Build.0 = Release|Any CPU
		{09FE4D9D-A879-4E69-B61E-0C054D012623}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{09FE4D9D-A879-4E69-B61E-0C054D012623}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{09FE4D9D-A879-4E69-B61E-0C054D012623}.Release|x86.ActiveCfg = Release|Any CPU
		{9B9915F0-F0F4-42A1-BF0E-C5313B6F9ACB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{9B9915F0-F0F4-42A1-BF0E-C5313B6F9ACB}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{9B9915F0-F0F4-42A1-BF0E-C5313B6F9ACB}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{9B9915F0-F0F4-42A1-BF0E-C5313B6F9ACB}.Debug|x86.ActiveCfg = Debug|Any CPU
		{9B9915F0-F0F4-42A1-BF0E-C5313B6F9ACB}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{9B9915F0-F0F4-42A1-BF0E-C5313B6F9ACB}.Release|Any CPU.Build.0 = Release|Any CPU
		{9B9915F0-F0F4-42A1-BF0E-C5313B6F9ACB}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{9B9915F0-F0F4-42A1-BF0E-C5313B6F9ACB}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{9B9915F0-F0F4-42A1-BF0E-C5313B6F9ACB}.Release|x86.ActiveCfg = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) CodeWrite Ltd.
United Kingdom United Kingdom
Jon is a Software engineer with over 30 years of experience, the last 18 of which have been using C# and ASP.NET. Previously he has used C++ and MFC. He has a degree in Electronic Systems Engineering and is also a fully licensed radio amateur (M0TWM).

Comments and Discussions