@@ -0,0 +1,1223 @@
+package net.imagej.ops.views;%0A%0Aimport net.imagej.ops.OpService;%0Aimport net.imagej.ops.view.ViewOps;%0Aimport net.imagej.ops.view.ViewOps.AddDimension;%0Aimport net.imagej.ops.view.ViewOps.View;%0Aimport net.imglib2.RandomAccessibleInterval;%0Aimport net.imglib2.view.IntervalView;%0A%0Aimport org.scijava.ItemIO;%0Aimport org.scijava.plugin.Parameter;%0Aimport org.scijava.plugin.Plugin;%0A%0A@Plugin(type = ViewOps.AddDimension.class, name = ViewOps.AddDimension.NAME)%0Apublic class AddDimensionMinMax%3CT%3E extends%0A%09%09AbstractView%3CRandomAccessibleInterval%3CT%3E, IntervalView%3CT%3E%3E implements%0A%09%09AddDimension%3CRandomAccessibleInterval%3CT%3E, IntervalView%3CT%3E%3E %7B%0A%0A%09@Parameter(type = ItemIO.INPUT)%0A%09private long minOfNewDim;%0A%0A%09@Parameter(type = ItemIO.INPUT)%0A%09private long maxOfNewDim;%0A%0A%09@Parameter%0A%09private OpService ops;%0A%0A%09@Override%0A%09public IntervalView%3CT%3E compute(RandomAccessibleInterval%3CT%3E input) %7B%0A%09%09final int m = input.numDimensions();%0A%09%09final long%5B%5D min = new long%5Bm + 1%5D;%0A%09%09final long%5B%5D max = new long%5Bm + 1%5D;%0A%09%09for (int d = 0; d %3C m; ++d) %7B%0A%09%09%09min%5Bd%5D = input.min(d);%0A%09%09%09max%5Bd%5D = input.max(d);%0A%09%09%7D%0A%09%09min%5Bm%5D = minOfNewDim;%0A%09%09max%5Bm%5D = maxOfNewDim;%0A%09%09return (IntervalView%3CT%3E) ops.run(View.class,%0A%09%09%09%09ops.run(AddDimension.class, input), min, max);%0A%09%7D%0A%0A%7D%0A

Add AddDimensionMinMax implementation of AddDiemension interface.