VeereshKulli / accord

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

FastRetinaKeypointDetector should be marked as serialiable #75

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Creating a bag of visual words for FREAK makes it impossible to save it, since 
the FastRetianKeypointDetector is not marked serializable.

// The following example raises a SerializationExample.
FastCornersDetector fast = new FastCornersDetector();
FastRetinaKeypointDetector freak = new FastRetinaKeypointDetector(fast);

var kmodes = new KModes<byte[]>(32, Distance.BitwiseHamming);
var bagOfVisualWords = new BagOfVisualWords<FastRetinaKeypoint, byte[]>(freak, 
kmodes);

using (FileStream stream = new FileStream("bag-of-visual-words", 
FileMode.Create))
{
    bagOfVisualWords.Save(stream);
}

Original issue reported on code.google.com by boots...@gmail.com on 29 Sep 2013 at 6:37

GoogleCodeExporter commented 8 years ago
Should of course be a SerializationException.

Original comment by boots...@gmail.com on 29 Sep 2013 at 6:39

GoogleCodeExporter commented 8 years ago

Original comment by cesarso...@gmail.com on 30 Sep 2013 at 2:01

GoogleCodeExporter commented 8 years ago
Thanks, changes have been added in 
https://github.com/accord-net/framework/commit/457f0e81916257a5b9eb0293199e9255f
94bf620

Original comment by cesarso...@gmail.com on 4 Oct 2013 at 1:36

GoogleCodeExporter commented 8 years ago
Should be fixed in the 2.11 release.

Original comment by cesarso...@gmail.com on 27 Oct 2013 at 4:53