draco1023 / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

Equals method #185

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
An overridden Equals method for some "data" classes to easily compare two 
instances.

e.g.
AForge.Math.Geometry.Line
AForge.Math.Geometry.LineSegment
AForge.Imaging.HoughLine
AForge.Imaging.HoughCircle

Original issue reported on code.google.com by tobiasbi...@gmail.com on 10 Feb 2011 at 12:10

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 5 May 2011 at 12:30

GoogleCodeExporter commented 9 years ago
Added equality and inequality operators for Line and LineSegment classes, as 
well as Equals() and GetHashCode() methods.

Did nothing for HoughLine and HoughCircle yet since it does not really make 
sense to have those operators/methods for these classes. First, it is not clear 
what to compare – coordinates only or intensity as well? Second, 
HoughLineTransformation and HoughCircleTransformation make sure that we don’t 
get same lines/circles with single image. So what do we really want to achieve 
with these operators? Please, let me know your thoughts. Otherwise the issue is 
fixed.

Committed in revision 1460. Will be released in version 2.2.0.

Original comment by andrew.k...@gmail.com on 8 May 2011 at 7:58

GoogleCodeExporter commented 9 years ago
Updated in revision 1461 - silly bug was fixed.

Original comment by andrew.k...@gmail.com on 8 May 2011 at 8:04

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 28 Jul 2011 at 9:44

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 10 Aug 2011 at 9:25