How to convert code using Image Processing Tool Box to Java for the use of Android?
조회 수: 7 (최근 30일)
이전 댓글 표시
krishna sravani
2017년 3월 1일
댓글: Suvitha Palani
2020년 12월 26일
I have written code in Matlab using Image Processing Toolbox for the purpose of compression technique...Now I want to know any procedure of converting it into Java Package for Android use.How to package it and deploy it??Thanks in advance for any help..
댓글 수: 0
채택된 답변
Subin Kuttappan Stellal Mary
2017년 3월 2일
One way to achieve this is by following the below steps :
1. Convert the MATLAB code that you have written into C code. This can be achieved by using MATLAB Coder toolbox.
Note: The in-built MATLAB functions used in your code must be supported for C/C++ code generation. For the list of MATLAB functions that are supported for code generation, refer this link .
2. Build this C code to a .so library.
3. Create a new Android project in Android Studio . From the base JAVA code of the sample application, call the C functions present in the .so file through JNI(Java Native Interface).
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Setup and Configuration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!