I created an image segmentation algorithm over the past summer in MatLab. However, this algorithm only allows it to be run on my laptop. I want to implement this code into an app on Android Studio. I have already set up the app design/layout and code on Android Studio and plan on just incorporating the algorithm and then running the entire thing on a virtual device in Android Studio. I'm just having trouble trying to figure out how to implement the code from MatLab into something like Android Studio which is a platform for Kotlin and Java. Can someone give me a detailed explanation on how to do this?
I was initially thinking of using MATLAB Compiler to convert the code to Java packages so I could use them in Android Studio, but I'm not exactly sure if that's how it works. Please help if you can!