예제 #1
0
  /**
   * Defines body of run method, which was declared in the interface.
   *
   * @param parentFrame parent frame
   * @param image current ModelImage - this is an image already loaded into MIPAV. Can be null.
   * @see ModelImage
   * @see ViewJFrameImage
   */
  public void run(Frame parentFrame, ModelImage image) {

    if (parentFrame instanceof ViewJFrameImage) {
      new PlugInDialogFociStrandMesh(parentFrame, image);
    } else {
      MipavUtil.displayError("PlugIn FociStrandMesh only runs on an image frame.");
    }
  }
예제 #2
0
  public void run(Frame parentFrame, ModelImage imageA, ModelImage imageB) {

    if (parentFrame instanceof ViewJFrameImage) new PlugInDialogVOIIntensities(parentFrame, imageA);
    else MipavUtil.displayError("PlugIn Wrap Fix only runs on an image frame.");
  }
예제 #3
0
  /**
   * defines body of run method, which was declared in the interface. This sample run method creates
   * a new image in a new frame and calls methods in PlugInSampleDrawing to add a few VOIs.
   *
   * @param parentFrame parent frame
   * @param image current ModelImage - this is an image already loaded into MIPAV. Can be null.
   * @see ModelImage
   * @see ViewJFrameImage
   */
  public void run(Frame parentFrame, ModelImage image) {

    if (parentFrame instanceof ViewJFrameImage) new PlugInDialogProcessICG(parentFrame, image);
    else MipavUtil.displayError("PlugIn Wrap Fix only runs on an image frame.");
  }