title: How can I use ImageJ as a library for a separate Java application?
body: <p>In a regular Java application, I have a BufferedImage that I would like to manipulate with ImageJ. I have a macro that is exactly what I need to execute. I suspect that the first step is to make an ImagePlus object, but I am not sure how to then run a macro on the ImagePlus object from within Java. Section 7.3 of the ImageJ tutorial found <a href="http://www.imagingbook.com/fileadmin/goodies/ijtutorial/tutorial171.pdf" rel="noreferrer">here</a> says:</p>
  
  <blockquote>
    <p>If you decide to use ImagePlus as your internal image format you can also use all plugins
    and macros from the ImageJ distribution as well as all other ImageJ plugins.</p>
  </blockquote>
  
  <p>But does not indicate how to do so. If someone could explain how, or point me towards a resource that does, I would very much appreciate it.</p>