0

I have a Windows C++ application from which I would like to call python's scipy package to perform certain image processing functions. I would also like to include the necessary python interpreter and additional packages (numpy, scipy) along with the executable so that the user does not have to install anything.

Is this possible and what is the simples way to do it? Would it be possible with something like Boost/Python?

pseudomarvin
  • 1,477
  • 2
  • 17
  • 32
  • 1
    Try it. See [Boost.Python](https://www.boost.org/doc/libs/1_67_0/libs/python/doc/html/index.html). Supports numpy. Don't know about scipy. – JHBonarius Jun 21 '18 at 18:48
  • 1
    Of course it is possible to package up that stuff. Learn how to build an installer or just throw everything in a zip file depending on how fancy you want/need to be. – Jesper Juhl Jun 21 '18 at 18:52
  • 1
    Btw., for image processing in C++ I would use OpenCV. – ypnos Jun 21 '18 at 22:19
  • Thanks for the comments. @ypnos I actually need to process 3D volumes so scipy's ndimage module comes handy. – pseudomarvin Jun 22 '18 at 09:17
  • 1
    @pseudomarvin OpenCV has added support for nd arrays some years ago, see for examples: https://stackoverflow.com/questions/8809517/multi-dimensional-data-in-a-matrix-in-opencv-with-c Constructor is here: https://docs.opencv.org/3.4/d3/d63/classcv_1_1Mat.html#a156df5a1326dd5c30b187b0e721a5f57 Just in case you didn't know, it might be helpful for you. – ypnos Jun 22 '18 at 10:42
  • @ypnos Yeah thanks, I know about that, unfortunately there is not support for the functionality that I require in OpenCV (e.g., affine transforms for 3D volumes) so it does not help that much. – pseudomarvin Jun 22 '18 at 11:02

0 Answers0