ImageJ opening imagePlus window as an internal frame inside a desktopPane

前端 未结 1 974
抹茶落季
抹茶落季 2020-12-22 13:06

I am having some trouble in ImageJ with one of its files. Basically set up a desktop pane that analyzes and opens images. But when the program opens the image it opens it as

相关标签:
1条回答
  • 2020-12-22 13:36

    The creation of a new JFrame is hardcoded into ImageJ's ImagePlus class:

    if (stackSize>1)
        win = new StackWindow(this);
    else
        win = new ImageWindow(this);
    

    If you want to adapt the GUI, you can extend the ImageWindow or StackWindow classes. See the Trainable Weka Segmentation plugin for a nice example.

    Alternatively, use the data structures of ImageJ2, namely ImgLib's ImgPlus. These are designed to be independent of any user interface.

    0 讨论(0)
提交回复
热议问题