将ImageJ宏命令实现到现有插件

时间:2015-05-03 15:12:17

标签: java plugins imagej

我正在尝试更改ImageJ的现有插件OpenComet。我不是Java,所以也许这是一件容易的事。

我想要实现的是以下内容

  1. run("Bio-Formats Windowless Importer", "open=path autoscale color_mode=Default view=Hyperstack stack_order=XYCZT");
    在Bioformat Importer插件的帮助下打开我的文件

  2. run("Flip Horizontally");

  3. 这应该放在以下代码中:

    // Iterate over each input file
                for(int i=0;i<inFiles.length;i++){
                    // Try to open file as image
    //NUMBER 1 BIOFORMAT IMPORT AT THIS POINT               
                    ImagePlus imp = IJ.openImage(inFiles[i].getPath());
                                    // If image could be opened, run comet analysis
                    if(imp!=null){
    //NUMBER 2 FLIPPING AT THIS POINT
                        String imageKey =  inFiles[i].getName();
    

    此外,我需要导入BioFormat Importer的类或类似的东西。我不是吗?

    提前多多感谢。

0 个答案:

没有答案