javaimage-processingawtbufferedimageimagej

ImageJ compatibility with BufferedImage


Can I use BufferedImage objects from java.awt.image.BufferedImage with ImageJ class instances? For example can I use BufferedImage object instead of an ImagePlus object?


Solution

  • From the docs for ImagePlus(String,java.awt.Image).

    Constructs an ImagePlus from an Image or BufferedImage. ..

    Result: Create an ImagePlus using that constructor whenever needed.