android 洪水填充 opencv UnsatisfiedLinkError
故事:
在 Android 屏幕上,我显示了一张带有标尺的图片。我在标尺内部单击并像这样填充它:
1Imgproc.floodFill(image0, mask, seed, new Scalar(20,40,60));
不幸的是,结果很糟糕,因为标尺的轮廓没有闭合并且图片几乎完全被填充。
我的台式电脑上的洪水填充.cpp 示例返回了更好的结果,我尝试在 Android 上执行类似的操作,如下所示:
2Imgproc.floodFill(image0, mask, seed, new Scalar(50,70,90), rect, new Scalar(20,20,20), new Scalar(20,20,20), Imgproc.FLOODFILL_FIXED_RANGE);
这里我得到了 UnsatisfiedLinkError。 这怎么可能? Improc.floodfill(...
提供四种不同的洪水填充变体(具有不同的参数),并且只有第一个(数字 1)有效。所有其他:UnsatisfiedLinkError
问题:
这是否意味着提供了其他变体但只是没有实现?
Story:
On the android screen I display a picture with a ruler in it. I klick inside the ruler and floodfill it like this:
1Imgproc.floodFill(image0, mask, seed, new Scalar(20,40,60));
Unfortunately the results are bad, because the contours of the ruler are not closed and the picture is filled nearly completely.
Better results returned from the floodfill.cpp sample on my desktop pc which I tried to execute analogical on the android like this:
2Imgproc.floodFill(image0, mask, seed, new Scalar(50,70,90), rect, new Scalar(20,20,20), new Scalar(20,20,20), Imgproc.FLOODFILL_FIXED_RANGE);
Here I get the UnsatisfiedLinkError.
How is this possible? Improc.floodfill(...
offers four different floodfill variations (with different parameters) and only the first one (number 1) works. All others: UnsatisfiedLinkError
Question:
Does this mean that the other variations are offered but just not implemented?
€dit: The error occurs here in line 96. And the logcat output can be found here.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论