cureos / accord

Machine learning, computer vision, statistics and general scientific computing for .NET
http://code.google.com/p/accord/
Other
12 stars 2 forks source link

iOS: System.PlatformNotSupported exception when using HarrisCornersDetector #14

Open AndrewKaplanovsky opened 8 years ago

AndrewKaplanovsky commented 8 years ago

The iOS app fails with Exception: System.PlatformNotSupported when using HarrisCornersDetector:

System.PlatformNotSupported Source Shim Message PCL

at System.Array_.ConvertAll[TInput,TOutput](System.TInput[] array, System.Converter`2 converter) [0x00000] in :0 at Accord.Imaging.HarrisCornersDetector.createGaussian () [0x00017] in :0 at Accord.Imaging.HarrisCornersDetector.initialize (HarrisCornerMeasure measure, Single k, Single threshold, Double sigma, Int32 suppression, Int32 size) [0x0002d] in :0 at Accord.Imaging.HarrisCornersDetector..ctor (Single k) [0x00039] in :0 at BitPlanner.Library.BoardDetector.DetectCornersHarris (Accord.Imaging.UnmanagedImage imgToProcess) [0x00017] in D:\Work\BitPlanner\Library\BoardDetector.cs:138

portable.accord.* nugets version: 3.1.0-pre shim 2.1.0-pre shim.drawing 3.0.1

AndrewKaplanovsky commented 8 years ago

iOS version 9.3.3

AndrewKaplanovsky commented 8 years ago

I think the reason of a problem is shim version. I moved back to portable.accord 3.0.2 and shim 2.0.1 and it works now.

anders9ustafsson commented 8 years ago

@AndrewKaplanovsky Thanks for identifying this problem. I will have a look at it as soon as possible.