Login  Register

AIJ2 problem -- Aperture Photom on Debayered RGB stack.

Posted by Jeffrey Larsen on Dec 14, 2012; 11:08am
URL: http://astroimagej.170.s1.nabble.com/AIJ2-problem-Aperture-Photom-on-Debayered-RGB-stack-tp14.html

I am really impressed by AstroImageJ and its new display, in fact I want to put some asteroid measurement plugins in when I come up to speed.

I have a student processing Celestron Nightscape images we took with this.  Of course they are Bayer filtered so we apply the Debayer first.  An "RGB Stack" comes up which is easily measured both with the original ImageJ with Astro plugins and AstroImageJ version 1.0.  In 2.0, however you get the following message the moment you try to photometer the first slice in the stack:

java.lang.NullPointerException
        at Aperture_.checkResultsTable(Aperture_.java:797)
        at Aperture_.storeResults(Aperture_.java:639)
        at Aperture_.run(Aperture_.java:330)
        at ij.plugin.filter.PlugInFilterRunner.processOneImage(PlugInFilterRunner.java:256)
        at ij.plugin.filter.PlugInFilterRunner.<init>(PlugInFilterRunner.java:105)
        at ij.IJ.runUserPlugIn(IJ.java:187)
        at ij.IJ.runPlugIn(IJ.java:152)
        at ij.Executer.runCommand(Executer.java:127)
        at ij.Executer.run(Executer.java:64)
        at ij.IJ.run(IJ.java:251)
        at ij.IJ.run(IJ.java:229)
        at ij.macro.Functions.doRun(Functions.java:581)
        at ij.macro.Functions.doFunction(Functions.java:82)
        at ij.macro.Interpreter.doStatement(Interpreter.java:216)
        at ij.macro.Interpreter.doBlock(Interpreter.java:539)
        at ij.macro.Interpreter.runMacro(Interpreter.java:131)
        at ij.macro.MacroRunner.run(MacroRunner.java:143)
        at java.lang.Thread.run(Thread.java:662)

The expected measurement table never appears.  For the first star attempted the aperture sum and aperture are plotted on the overlay but subsequent clicks are denied with the message "RGB Stack Locked" in the main window.

My lack of Java programming shows now (and this is the first Java program that ever interested me enough to have me wanting to get at its internals) and I guess I need to rectify that.  

Any chance of a quick fix for this?