I am converting a script that I did not write from IJM to Java and I am stuck with the methods getPixel and more importantly setPixel.
I found that there is ImagePlus.getPixel(x, y) and ImageProcessor.setPixel(Object) but I don’t know how to make the translation.
Indeed, in the code I am translating, the result of getPixel is a simple int (in my case 255), not an array like in ImagePlus.getPixel(x, y).
Similarly, the setPixel invocation is as simple as setPixel(x, y, value) with value being 255 in my case (I guess, just a white pixel).
Can you help?
Bonus question: is there a documentation or a “readable” code where I could dig up how IJ interprets ijm code and converts it to Java equivalents ?