@@ -0,0 +1,2669 @@
+//%0A// DuplicateImage.java%0A//%0A%0A/*%0AImageJ software for multidimensional image processing and analysis.%0A%0ACopyright (c) 2010, ImageJDev.org.%0AAll rights reserved.%0A%0ARedistribution and use in source and binary forms, with or without%0Amodification, are permitted provided that the following conditions are met:%0A    * Redistributions of source code must retain the above copyright%0A      notice, this list of conditions and the following disclaimer.%0A    * Redistributions in binary form must reproduce the above copyright%0A      notice, this list of conditions and the following disclaimer in the%0A      documentation and/or other materials provided with the distribution.%0A    * Neither the names of the ImageJDev.org developers nor the%0A      names of its contributors may be used to endorse or promote products%0A      derived from this software without specific prior written permission.%0A%0ATHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS %22AS IS%22%0AAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE%0AIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE%0AARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE%0ALIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR%0ACONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF%0ASUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS%0AINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN%0ACONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)%0AARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE%0APOSSIBILITY OF SUCH DAMAGE.%0A*/%0A%0Apackage imagej.core.plugins;%0A%0Aimport mpicbg.imglib.image.Image;%0Aimport imagej.data.AxisLabel;%0Aimport imagej.data.Dataset;%0Aimport imagej.data.Metadata;%0Aimport imagej.plugin.ImageJPlugin;%0Aimport imagej.plugin.Menu;%0Aimport imagej.plugin.Parameter;%0Aimport imagej.plugin.Plugin;%0A%0A/**%0A * Fills an output Dataset with the contents of an input Dataset.%0A * %0A * @author Barry DeZonia%0A */%0A@Plugin(menu = %7B%0A%09@Menu(label = %22Image%22, mnemonic = 'i'),%0A%09@Menu(label = %22Duplicate...%22, accelerator=%22shift control D%22)%7D)%0Apublic class DuplicateImage implements ImageJPlugin %7B%0A%0A%09// -- instance variables that are Parameters --%0A%0A%09@Parameter%0A%09private Dataset input;%0A%0A%09@Parameter(output = true)%0A%09private Dataset output;%0A%0A%09@Parameter(label=%22Output filename%22)%0A%09private String outputFilename;%0A%0A%09// -- public interface --%0A%0A%09@Override%0A%09public void run() %7B%0A%09%09Image%3C?%3E image = input.getImage().clone();%0A%09%09Metadata metadata = new Metadata();%0A%09%09metadata.copyFrom(input.getMetadata());%0A%09%09metadata.setName(outputFilename);%0A%09%09output = new Dataset(image, metadata);%0A%09%7D%0A%7D%0A

fix this plugin so it works. cleanup UI. simplify it to use Imglib more directly.