suicao / aforge

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

Blob and BlobCounter cannot be extended as their constructors are internal. It would be good if we can extend these class. #279

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Describe the feature you are interested and which may bring benefit to the
project ...

Summary:
I wanted to create an accurateblob object which inherited from blob but gave 
the center of gravity as floats which we need for increased precision. 
Unfortunately blob's constructors are internal blocking inheritance scheme. 
Also for this I need to inherit and create an accurate blob counter too. If we 
can inherit from this I will use nuget package manager for further updates. 

Full link:
http://www.aforgenet.com/forum/viewtopic.php?f=2&t=2483

Extra info:
Also I can share the code for this classes. I dont think we wrote them anyway 
we probably find it from somewhere so credits goes to there.

Provide any references/links to publications/algorithms/etc. which could
help in development ...

This is a simple non-technical suggestion for improving re usability and 
extension capabilities.

Original issue reported on code.google.com by Ali.Akdu...@gmail.com on 11 Jan 2012 at 12:56

GoogleCodeExporter commented 9 years ago
1) Blob'c constructor is made public, so could be reused by using inheritance.
2) Blob.CenterOfGravity property is changed to have AForge.Point type, which is 
float, so now calculated CoG is more accurate.

Committed in revision 1653. Will be release in version 2.2.4+.

Original comment by andrew.k...@gmail.com on 11 Jan 2012 at 2:48

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 23 Feb 2012 at 9:13