I am doing some steps to a image. Here I am taking and image and doing some processing on that and creating an mask. Then I multiply those two to get final result.
When I do this in separate steps using Fiji it works fine. 1st I have create the mask then save it. The Open both images and multiply it.
My actual task is to automate this process. So following is my sample code in java.
ImagePlus img = IJ.openImage(); img.show(); ImagePlus image2 = image1.duplicate(); image2.show(); // Steps to create the mask from image two ImageCalculator Cal1 = new ImageCalculator(); ImagePlus FinalImage = Cal1.run("Multiply create 32-bit", img, image2); FinalImage.show(); From these steps I cant the the expected result. When a user using this user has to open the image one time the rest of the steps should automate. Can any one tell whats the step I am doing wrong. I thing something happen with the memory.
This is the result what I get through coding…!
Thank you very much…!