Ignore:
Timestamp:
03/26/11 15:18:44 (9 years ago)
Author:
curtis
Message:

Eliminate dependencies on old IJ2 projects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/projects/slim-plugin/src/main/java/loci/slim/analysis/plugins/VisADAnalysisPlugin.java

    r7668 r7676  
    3838import ij.ImagePlus; 
    3939 
    40 // CTR FIXME: remove dependency on ij1bridge 
    41 import imagej.ij1bridge.process.OldLegacyImageUtils; 
    42  
    4340import loci.slim.ui.IUserInterfacePanel.FitFunction; 
    4441import loci.slim.ui.IUserInterfacePanel.FitRegion; 
     
    4744 
    4845import mpicbg.imglib.image.Image; 
     46import mpicbg.imglib.image.display.imagej.ImageJFunctions; 
    4947import mpicbg.imglib.type.numeric.real.DoubleType; 
    5048 
     
    6260@SLIMAnalyzer(name="VisAD") 
    6361public class VisADAnalysisPlugin implements ISLIMAnalyzer { 
    64     public void analyze(Image<DoubleType> image, FitRegion region, FitFunction function) { 
    65         ImagePlus imp = OldLegacyImageUtils.createImagePlus(image, "Fitted results"); 
     62    @Override 
     63                public void analyze(Image<DoubleType> image, FitRegion region, FitFunction function) { 
     64                ImagePlus imp = ImageJFunctions.displayAsVirtualStack(image); 
     65                imp.setTitle("Fitted results"); 
    6666        IJ.runPlugIn(imp, "imagej.visad.VisADPlugin", ""); 
    6767    } 
Note: See TracChangeset for help on using the changeset viewer.