
org.scijava.ops.image.adapt.complexLift.FunctionsToComputersAndLift Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scijava-ops-image Show documentation
Show all versions of scijava-ops-image Show documentation
Image processing operations for SciJava Ops.
The newest version!
/*-
* #%L
* Image processing operations for SciJava Ops.
* %%
* Copyright (C) 2014 - 2024 SciJava developers.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
* #L%
*/
/*
* This is autogenerated source code -- DO NOT EDIT. Instead, edit the
* corresponding template in templates/ and rerun bin/generate.groovy.
*/
package org.scijava.ops.image.adapt.complexLift;
import net.imglib2.RandomAccessibleInterval;
import org.scijava.function.Computers;
import org.scijava.function.Functions;
import org.scijava.ops.spi.Op;
import org.scijava.ops.spi.OpDependency;
import java.util.function.BiFunction;
import java.util.function.Function;
public final class FunctionsToComputersAndLift {
private FunctionsToComputersAndLift() {
// prevent instantiation of static utility class
}
/**
* Lifting function for mapping Functions Ops to Computers that operate on RandomAccessibleIntervals.
* Adapts first, then lifts.
*
* @param
* Type of the first RAI
* @param
* The RAI return type
*@implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI11FunctionToComputerAndLiftAfter, RAIO extends RandomAccessibleInterval>
implements Function, Computers.Arity1>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity1> adapter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity1> lifter;
/**
* @param function - the Function to convert
* @return {@code function} as a computer
*/
@Override
public Computers.Arity1 apply(Function function) {
return lifter.apply(adapter.apply(function));
}
}
/**
* Lifting function for mapping Functions Ops to Computers that operate on RandomAccessibleIntervals.
* Lifts first, then adapts.
*
* @param
* Type of the first RAI
* @param
* The RAI return type
*@implNote op names='engine.adapt', priority='-99.'
*/
public static class RAI11FunctionToComputerAndLiftBefore, RAIO extends RandomAccessibleInterval>
implements Function, Computers.Arity1>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Function> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity1> adapter;
/**
* @param function - the Function to convert
* @return {@code function} as a computer
*/
@Override
public Computers.Arity1 apply(Function function) {
return adapter.apply(lifter.apply(function));
}
}
/**
* Lifting function for mapping Functions Ops to Computers that operate on RandomAccessibleIntervals.
* Adapts first, then lifts.
*
* @param
* Type of the first RAI
* @param
* The second parameter type
* @param
* The RAI return type
*@implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI21FunctionToComputerAndLiftAfter, RAIO extends RandomAccessibleInterval>
implements Function, Computers.Arity2>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity2> adapter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity2> lifter;
/**
* @param function - the Function to convert
* @return {@code function} as a computer
*/
@Override
public Computers.Arity2 apply(BiFunction function) {
return lifter.apply(adapter.apply(function));
}
}
/**
* Lifting function for mapping Functions Ops to Computers that operate on RandomAccessibleIntervals.
* Lifts first, then adapts.
*
* @param
* Type of the first RAI
* @param
* The second parameter type
* @param
* The RAI return type
*@implNote op names='engine.adapt', priority='-99.'
*/
public static class RAI21FunctionToComputerAndLiftBefore, RAIO extends RandomAccessibleInterval>
implements Function, Computers.Arity2>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, BiFunction> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity2> adapter;
/**
* @param function - the Function to convert
* @return {@code function} as a computer
*/
@Override
public Computers.Arity2 apply(BiFunction function) {
return adapter.apply(lifter.apply(function));
}
}
/**
* Lifting function for mapping Functions Ops to Computers that operate on RandomAccessibleIntervals.
* Adapts first, then lifts.
*
* @param
* Type of the first RAI
* @param
* Type of the second RAI
* @param
* The RAI return type
*@implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI22FunctionToComputerAndLiftAfter, RAII2 extends RandomAccessibleInterval, RAIO extends RandomAccessibleInterval>
implements Function, Computers.Arity2>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity2> adapter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity2> lifter;
/**
* @param function - the Function to convert
* @return {@code function} as a computer
*/
@Override
public Computers.Arity2 apply(BiFunction function) {
return lifter.apply(adapter.apply(function));
}
}
/**
* Lifting function for mapping Functions Ops to Computers that operate on RandomAccessibleIntervals.
* Lifts first, then adapts.
*
* @param
* Type of the first RAI
* @param
* Type of the second RAI
* @param
* The RAI return type
*@implNote op names='engine.adapt', priority='-99.'
*/
public static class RAI22FunctionToComputerAndLiftBefore, RAII2 extends RandomAccessibleInterval, RAIO extends RandomAccessibleInterval>
implements Function, Computers.Arity2>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, BiFunction> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity2> adapter;
/**
* @param function - the Function to convert
* @return {@code function} as a computer
*/
@Override
public Computers.Arity2 apply(BiFunction function) {
return adapter.apply(lifter.apply(function));
}
}
/**
* Lifting function for mapping Functions Ops to Computers that operate on RandomAccessibleIntervals.
* Adapts first, then lifts.
*
* @param
* Type of the first RAI
* @param
* The second parameter type
* @param
* The third parameter type
* @param
* The RAI return type
*@implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI31FunctionToComputerAndLiftAfter, RAIO extends RandomAccessibleInterval>
implements Function, Computers.Arity3>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity3> adapter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity3> lifter;
/**
* @param function - the Function to convert
* @return {@code function} as a computer
*/
@Override
public Computers.Arity3 apply(Functions.Arity3 function) {
return lifter.apply(adapter.apply(function));
}
}
/**
* Lifting function for mapping Functions Ops to Computers that operate on RandomAccessibleIntervals.
* Lifts first, then adapts.
*
* @param
* Type of the first RAI
* @param
* The second parameter type
* @param
* The third parameter type
* @param
* The RAI return type
*@implNote op names='engine.adapt', priority='-99.'
*/
public static class RAI31FunctionToComputerAndLiftBefore, RAIO extends RandomAccessibleInterval>
implements Function, Computers.Arity3>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Functions.Arity3> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity3> adapter;
/**
* @param function - the Function to convert
* @return {@code function} as a computer
*/
@Override
public Computers.Arity3 apply(Functions.Arity3 function) {
return adapter.apply(lifter.apply(function));
}
}
/**
* Lifting function for mapping Functions Ops to Computers that operate on RandomAccessibleIntervals.
* Adapts first, then lifts.
*
* @param
* Type of the first RAI
* @param
* Type of the second RAI
* @param
* The third parameter type
* @param
* The RAI return type
*@implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI32FunctionToComputerAndLiftAfter, RAII2 extends RandomAccessibleInterval, RAIO extends RandomAccessibleInterval>
implements Function, Computers.Arity3>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity3> adapter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity3> lifter;
/**
* @param function - the Function to convert
* @return {@code function} as a computer
*/
@Override
public Computers.Arity3 apply(Functions.Arity3 function) {
return lifter.apply(adapter.apply(function));
}
}
/**
* Lifting function for mapping Functions Ops to Computers that operate on RandomAccessibleIntervals.
* Lifts first, then adapts.
*
* @param
* Type of the first RAI
* @param
* Type of the second RAI
* @param
* The third parameter type
* @param
* The RAI return type
*@implNote op names='engine.adapt', priority='-99.'
*/
public static class RAI32FunctionToComputerAndLiftBefore, RAII2 extends RandomAccessibleInterval, RAIO extends RandomAccessibleInterval>
implements Function, Computers.Arity3>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Functions.Arity3> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity3> adapter;
/**
* @param function - the Function to convert
* @return {@code function} as a computer
*/
@Override
public Computers.Arity3 apply(Functions.Arity3 function) {
return adapter.apply(lifter.apply(function));
}
}
/**
* Lifting function for mapping Functions Ops to Computers that operate on RandomAccessibleIntervals.
* Adapts first, then lifts.
*
* @param
* Type of the first RAI
* @param
* Type of the second RAI
* @param
* Type of the third RAI
* @param
* The RAI return type
*@implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI33FunctionToComputerAndLiftAfter, RAII2 extends RandomAccessibleInterval, RAII3 extends RandomAccessibleInterval, RAIO extends RandomAccessibleInterval>
implements Function, Computers.Arity3>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity3> adapter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity3> lifter;
/**
* @param function - the Function to convert
* @return {@code function} as a computer
*/
@Override
public Computers.Arity3 apply(Functions.Arity3 function) {
return lifter.apply(adapter.apply(function));
}
}
/**
* Lifting function for mapping Functions Ops to Computers that operate on RandomAccessibleIntervals.
* Lifts first, then adapts.
*
* @param
* Type of the first RAI
* @param
* Type of the second RAI
* @param
* Type of the third RAI
* @param
* The RAI return type
*@implNote op names='engine.adapt', priority='-99.'
*/
public static class RAI33FunctionToComputerAndLiftBefore, RAII2 extends RandomAccessibleInterval, RAII3 extends RandomAccessibleInterval, RAIO extends RandomAccessibleInterval>
implements Function, Computers.Arity3>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Functions.Arity3> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity3> adapter;
/**
* @param function - the Function to convert
* @return {@code function} as a computer
*/
@Override
public Computers.Arity3 apply(Functions.Arity3 function) {
return adapter.apply(lifter.apply(function));
}
}
/**
* Lifting function for mapping Functions Ops to Computers that operate on RandomAccessibleIntervals.
* Adapts first, then lifts.
*
* @param
* Type of the first RAI
* @param
* The second parameter type
* @param
* The third parameter type
* @param
* The fourth parameter type
* @param
* The RAI return type
*@implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI41FunctionToComputerAndLiftAfter, RAIO extends RandomAccessibleInterval>
implements Function, Computers.Arity4>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity4> adapter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity4> lifter;
/**
* @param function - the Function to convert
* @return {@code function} as a computer
*/
@Override
public Computers.Arity4 apply(Functions.Arity4 function) {
return lifter.apply(adapter.apply(function));
}
}
/**
* Lifting function for mapping Functions Ops to Computers that operate on RandomAccessibleIntervals.
* Lifts first, then adapts.
*
* @param
* Type of the first RAI
* @param
* The second parameter type
* @param
* The third parameter type
* @param
* The fourth parameter type
* @param
* The RAI return type
*@implNote op names='engine.adapt', priority='-99.'
*/
public static class RAI41FunctionToComputerAndLiftBefore, RAIO extends RandomAccessibleInterval>
implements Function, Computers.Arity4>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Functions.Arity4> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity4> adapter;
/**
* @param function - the Function to convert
* @return {@code function} as a computer
*/
@Override
public Computers.Arity4 apply(Functions.Arity4 function) {
return adapter.apply(lifter.apply(function));
}
}
/**
* Lifting function for mapping Functions Ops to Computers that operate on RandomAccessibleIntervals.
* Adapts first, then lifts.
*
* @param
* Type of the first RAI
* @param
* Type of the second RAI
* @param
* The third parameter type
* @param
* The fourth parameter type
* @param
* The RAI return type
*@implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI42FunctionToComputerAndLiftAfter, RAII2 extends RandomAccessibleInterval, RAIO extends RandomAccessibleInterval>
implements Function, Computers.Arity4>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity4> adapter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity4> lifter;
/**
* @param function - the Function to convert
* @return {@code function} as a computer
*/
@Override
public Computers.Arity4 apply(Functions.Arity4 function) {
return lifter.apply(adapter.apply(function));
}
}
/**
* Lifting function for mapping Functions Ops to Computers that operate on RandomAccessibleIntervals.
* Lifts first, then adapts.
*
* @param
* Type of the first RAI
* @param
* Type of the second RAI
* @param
* The third parameter type
* @param
* The fourth parameter type
* @param
* The RAI return type
*@implNote op names='engine.adapt', priority='-99.'
*/
public static class RAI42FunctionToComputerAndLiftBefore, RAII2 extends RandomAccessibleInterval, RAIO extends RandomAccessibleInterval>
implements Function, Computers.Arity4>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Functions.Arity4> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity4> adapter;
/**
* @param function - the Function to convert
* @return {@code function} as a computer
*/
@Override
public Computers.Arity4 apply(Functions.Arity4 function) {
return adapter.apply(lifter.apply(function));
}
}
/**
* Lifting function for mapping Functions Ops to Computers that operate on RandomAccessibleIntervals.
* Adapts first, then lifts.
*
* @param
* Type of the first RAI
* @param
* Type of the second RAI
* @param
* Type of the third RAI
* @param
* The fourth parameter type
* @param
* The RAI return type
*@implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI43FunctionToComputerAndLiftAfter, RAII2 extends RandomAccessibleInterval, RAII3 extends RandomAccessibleInterval, RAIO extends RandomAccessibleInterval>
implements Function, Computers.Arity4>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity4> adapter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity4> lifter;
/**
* @param function - the Function to convert
* @return {@code function} as a computer
*/
@Override
public Computers.Arity4 apply(Functions.Arity4 function) {
return lifter.apply(adapter.apply(function));
}
}
/**
* Lifting function for mapping Functions Ops to Computers that operate on RandomAccessibleIntervals.
* Lifts first, then adapts.
*
* @param
* Type of the first RAI
* @param
* Type of the second RAI
* @param
* Type of the third RAI
* @param