在Android的MATLAB任何可行的选择吗? [英] any viable option for matlab in android?

查看:140
本文介绍了在Android的MATLAB任何可行的选择吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始在Android上,这将需要计算机视觉和图像处理技术的项目。现在我知道有一些图书馆流行的一个是opencv的(这是在C / C ++),这将需要NDK.Is有什么办法的程序可以在MATLAB来完成自身和可转换为Java code,然后在android app.I使用知道Matlab的code可以转换为C / C ++ code.However我不是那么熟悉纳入C / C ++ code和也我已阅读,它不科技支撑MATLAB的所有功能。
使用OpenCV的与Android任何好的教程将非常helpful.I发现MATLAB是最好的。不过,我需要让我的选择权

I am starting a project on android which will need computer vision and image processing techniques. Now i know there are some libraries the popular one being Opencv(which is in C/C++) which would require the NDK.Is there any way the programs can be done in matlab itself and can be converted to java code and then used in the android app.I know that Matlab code can be converted to C/C++ code.However i am not that familiar with incorporating C/C++ code and also i have read that it doesn't support all the features of matlab. Any good tutorial on using opencv with android will be very helpful.I find matlab to be the best. However I need to keep my options open

推荐答案

这是可能使用附加产品MATLAB生成器JA生产从MATLAB code Java组件。然而,这部分不适合在Android上运行,因为它依赖于MATLAB编译器运行时(MCR),其中有一个足迹太大了一个典型的Andr​​oid设备。

It's possible to produce a Java component from MATLAB code using the add-on product MATLAB Builder JA. However, this component isn't suitable for running on Android as it depends on the MATLAB Compiler Runtime (MCR), which has a footprint much too large for a typical Android device.

通常情况下,如果你有MATLAB code,你想将其纳入一个Android应用程序,你会做下列操作之一,这取决于$ C $的目的和规模c您要包括:

Typically, if you have MATLAB code that you'd like to incorporate into an Android app you would do one of the following, depending on the purpose and scale of the code you want to include:


  1. 部署您的code使用MATLAB或者JA生成的Java或MATLAB生成器NE的.NET独立组件,把这个组件的服务器上,让你的Andr​​oid应用通过Web服务,或
  2. 使用其他附加产品MATLAB codeR自动转换您的MATLAB code到C,然后可以直接加入到你的Andr​​oid应用程序。

通过路线2,你是正确的,MATLAB codeR只支持MATLAB语言的子集,和你需要确保你的算法属于该子集范围内。不过,当你避开那些它通常不是太麻烦了,只有几个主要的限制,这么久。大多数的图像处理工具箱和计算机视觉系统工具箱中的算法支持。

With route 2, you're correct that MATLAB Coder only supports a subset of the MATLAB language, and you'll need to make sure your algorithm falls within that subset. However, there are only a few major limitations, and so long as you avoid those it's usually not too much trouble. A majority of the algorithms in Image Processing Toolbox and Computer Vision Systems Toolbox are supported.

这篇关于在Android的MATLAB任何可行的选择吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆