Hope that you are all fine. I’m not very advanced with ImageJ, I hope you guys can help. I have sets of images with structures (figure) I need to find the angle between center points of structures. Of course I can use angle tool and measure the angle, but since there are so many structures, I want to write a program so that user gets the angle by clicking center of the structures using muliti-point.
I didn’t do a lot of programming in ImageJ just by digging in Built-in Macro Functions in imagej website i started my code as following,
if (!isOpen("Log")) print("Instructions:\n Select three points\n "); // open an image Imagename = File.openDialog("Open an Image to analyze"); if (Imagename=="") exit(); write("Image name = "+Imagename); open(Imagename); getPixelSize(unit, pw, ph, pd); // User Selects three points setTool("multipoint"); run("Select All"); waitForUser("ROI Selection", "Select Points"); getStatistics(area, mean, min, max); run("Measure");
I want to know how to define my equations and get the data from measured box.
Your help is appreciated.