In a java application I need to use a specific image processing algorithm that is currently implemented in python. What would be the best approach, knowing that this script
For using numpy within a Java process, Jep now supports numpy. You can also use jpy or JyNI.
With those libraries you could pass the images between Java and Python as byte arrays and ndarrays as you do your calculations.