I want to use wolfram mathematica in C#. But I also don’t undesrstand how I can cet parametres into wolfram. I need to write something like this. The result should be array, not an image. Can anybody help me to write this code in C# using wolfram? I want to get result of the listClust into C#
I imported files in C#. I want to conver image in C# to type ImageData, but I don’t understand how can I do this. Also I should calculate desult if this code.
I think that I should do something like this, bu I don’t understand how can I write parametre’s name:
Please read through the documentation. You replied in 18 minutes of my post. That is not enough time to have read the documentation and try the basic examples there. Please try running the examples in the documentation so you can gain familiarity with the basics of how NETLink works.
To begin with, try using NETLink to do basic things like, computing “2+2” in Mathematica. Make sure you can compile and run these examples.
Are you able to run the basic examples there? Are you able to execute some simple code in Mathematica via NETLink? Please make sure that all the examples in the documentation are working for you first.
ImageData is not a type. It is just a function in Mathematica.
To keep things simple, convert the image into an array of floating point values or an array of integers. Use this array with NetLink. Once you pass the array in, the Mathematica code will have to turn the array into an image, do the necessary image processing and then convert it back to an array of floating point values or integers.