@@ -0,0 +1,1250 @@
+package net.imagej.ops.create;%0A%0Aimport net.imagej.ops.OpService;%0Aimport net.imagej.ops.Ops.Create;%0Aimport net.imagej.ops.OutputOp;%0Aimport net.imagej.ops.create.CreateOps.CreateIntegerType;%0Aimport net.imagej.ops.create.CreateOps.CreateLabelingMapping;%0Aimport net.imglib2.roi.labeling.LabelingMapping;%0Aimport net.imglib2.type.numeric.IntegerType;%0A%0Aimport org.scijava.ItemIO;%0Aimport org.scijava.plugin.Parameter;%0Aimport org.scijava.plugin.Plugin;%0A%0A/**%0A * %0A * Create a LabelingMapping which can store at least maxNumSets different Sets%0A * %0A * @author Christian Dietz, University of Konstanz%0A *%0A * @param %3CL%3E%0A *            label type%0A */%0A@Plugin(type = Create.class)%0Apublic class DefaultCreateLabelingMapping%3CL%3E implements CreateLabelingMapping,%0A%09%09OutputOp%3CLabelingMapping%3CL%3E%3E %7B%0A%0A%09@Parameter%0A%09private OpService ops;%0A%0A%09@Parameter(type = ItemIO.OUTPUT)%0A%09private LabelingMapping%3CL%3E output;%0A%0A%09@Parameter(required = false)%0A%09private int maxNumSets;%0A%0A%09@Override%0A%09public void run() %7B%0A%09%09output = new LabelingMapping%3CL%3E((IntegerType%3C?%3E) ops.run(%0A%09%09%09%09CreateIntegerType.class, maxNumSets));%0A%09%7D%0A%0A%09@Override%0A%09public LabelingMapping%3CL%3E getOutput() %7B%0A%09%09return output;%0A%09%7D%0A%0A%09@Override%0A%09public void setOutput(final LabelingMapping%3CL%3E output) %7B%0A%09%09this.output = output;%0A%09%7D%0A%0A%7D%0A

add DefaultCreateLabelingMapping