
org.scijava.ops.image.adapt.complexLift.ComputersToFunctionsAndLift 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 ComputersToFunctionsAndLift {
private ComputersToFunctionsAndLift() {
// prevent instantiation of static utility class
}
/**
* Lifting function for mapping Computers Ops to Functions that operate on RAIs.
*
* @param
* Type of the first RAI
* @param
* Type of the output RAI
* @implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI11ComputerToFunctionAndLiftViaSource, RAIO extends RandomAccessibleInterval>
implements Function, Function>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity1> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Function> adapter;
/**
* @param computer the Computer to convert
* @return {@code computer} as a Function
*/
@Override
public Function apply(Computers.Arity1 computer) {
return adapter.apply(lifter.apply(computer));
}
}
/**
* Lifting function for mapping Computers Ops to Functions that operate on RAIs.
*
* @param
* Type of the first RAI
* @param
* The second parameter type
* @param
* Type of the output RAI
* @implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI21ComputerToFunctionAndLiftViaSource, RAIO extends RandomAccessibleInterval>
implements Function, BiFunction>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity2> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, BiFunction> adapter;
/**
* @param computer the Computer to convert
* @return {@code computer} as a Function
*/
@Override
public BiFunction apply(Computers.Arity2 computer) {
return adapter.apply(lifter.apply(computer));
}
}
/**
* Lifting function for mapping Computers Ops to Functions that operate on RAIs.
*
* @param
* Type of the first RAI
* @param
* Type of the second RAI
* @param
* Type of the output RAI
* @implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI22ComputerToFunctionAndLiftViaSource, RAII2 extends RandomAccessibleInterval, RAIO extends RandomAccessibleInterval>
implements Function, BiFunction>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity2> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, BiFunction> adapter;
/**
* @param computer the Computer to convert
* @return {@code computer} as a Function
*/
@Override
public BiFunction apply(Computers.Arity2 computer) {
return adapter.apply(lifter.apply(computer));
}
}
/**
* Lifting function for mapping Computers Ops to Functions that operate on RAIs.
*
* @param
* Type of the first RAI
* @param
* The second parameter type
* @param
* The third parameter type
* @param
* Type of the output RAI
* @implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI31ComputerToFunctionAndLiftViaSource, RAIO extends RandomAccessibleInterval>
implements Function, Functions.Arity3>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity3> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Functions.Arity3> adapter;
/**
* @param computer the Computer to convert
* @return {@code computer} as a Function
*/
@Override
public Functions.Arity3 apply(Computers.Arity3 computer) {
return adapter.apply(lifter.apply(computer));
}
}
/**
* Lifting function for mapping Computers Ops to Functions that operate on RAIs.
*
* @param
* Type of the first RAI
* @param
* Type of the second RAI
* @param
* The third parameter type
* @param
* Type of the output RAI
* @implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI32ComputerToFunctionAndLiftViaSource, RAII2 extends RandomAccessibleInterval, RAIO extends RandomAccessibleInterval>
implements Function, Functions.Arity3>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity3> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Functions.Arity3> adapter;
/**
* @param computer the Computer to convert
* @return {@code computer} as a Function
*/
@Override
public Functions.Arity3 apply(Computers.Arity3 computer) {
return adapter.apply(lifter.apply(computer));
}
}
/**
* Lifting function for mapping Computers Ops to Functions that operate on RAIs.
*
* @param
* Type of the first RAI
* @param
* Type of the second RAI
* @param
* Type of the third RAI
* @param
* Type of the output RAI
* @implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI33ComputerToFunctionAndLiftViaSource, RAII2 extends RandomAccessibleInterval, RAII3 extends RandomAccessibleInterval, RAIO extends RandomAccessibleInterval>
implements Function, Functions.Arity3>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity3> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Functions.Arity3> adapter;
/**
* @param computer the Computer to convert
* @return {@code computer} as a Function
*/
@Override
public Functions.Arity3 apply(Computers.Arity3 computer) {
return adapter.apply(lifter.apply(computer));
}
}
/**
* Lifting function for mapping Computers Ops to Functions that operate on RAIs.
*
* @param
* Type of the first RAI
* @param
* The second parameter type
* @param
* The third parameter type
* @param
* The fourth parameter type
* @param
* Type of the output RAI
* @implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI41ComputerToFunctionAndLiftViaSource, RAIO extends RandomAccessibleInterval>
implements Function, Functions.Arity4>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity4> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Functions.Arity4> adapter;
/**
* @param computer the Computer to convert
* @return {@code computer} as a Function
*/
@Override
public Functions.Arity4 apply(Computers.Arity4 computer) {
return adapter.apply(lifter.apply(computer));
}
}
/**
* Lifting function for mapping Computers Ops to Functions that operate on RAIs.
*
* @param
* Type of the first RAI
* @param
* Type of the second RAI
* @param
* The third parameter type
* @param
* The fourth parameter type
* @param
* Type of the output RAI
* @implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI42ComputerToFunctionAndLiftViaSource, RAII2 extends RandomAccessibleInterval, RAIO extends RandomAccessibleInterval>
implements Function, Functions.Arity4>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity4> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Functions.Arity4> adapter;
/**
* @param computer the Computer to convert
* @return {@code computer} as a Function
*/
@Override
public Functions.Arity4 apply(Computers.Arity4 computer) {
return adapter.apply(lifter.apply(computer));
}
}
/**
* Lifting function for mapping Computers Ops to Functions that operate on RAIs.
*
* @param
* Type of the first RAI
* @param
* Type of the second RAI
* @param
* Type of the third RAI
* @param
* The fourth parameter type
* @param
* Type of the output RAI
* @implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI43ComputerToFunctionAndLiftViaSource, RAII2 extends RandomAccessibleInterval, RAII3 extends RandomAccessibleInterval, RAIO extends RandomAccessibleInterval>
implements Function, Functions.Arity4>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity4> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Functions.Arity4> adapter;
/**
* @param computer the Computer to convert
* @return {@code computer} as a Function
*/
@Override
public Functions.Arity4 apply(Computers.Arity4 computer) {
return adapter.apply(lifter.apply(computer));
}
}
/**
* Lifting function for mapping Computers Ops to Functions that operate on RAIs.
*
* @param
* Type of the first RAI
* @param
* Type of the second RAI
* @param
* Type of the third RAI
* @param
* Type of the fourth RAI
* @param
* Type of the output RAI
* @implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI44ComputerToFunctionAndLiftViaSource, RAII2 extends RandomAccessibleInterval, RAII3 extends RandomAccessibleInterval, RAII4 extends RandomAccessibleInterval, RAIO extends RandomAccessibleInterval>
implements Function, Functions.Arity4>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity4> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Functions.Arity4> adapter;
/**
* @param computer the Computer to convert
* @return {@code computer} as a Function
*/
@Override
public Functions.Arity4 apply(Computers.Arity4 computer) {
return adapter.apply(lifter.apply(computer));
}
}
/**
* Lifting function for mapping Computers Ops to Functions that operate on RAIs.
*
* @param
* Type of the first RAI
* @param
* The second parameter type
* @param
* The third parameter type
* @param
* The fourth parameter type
* @param
* The fifth parameter type
* @param
* Type of the output RAI
* @implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI51ComputerToFunctionAndLiftViaSource, RAIO extends RandomAccessibleInterval>
implements Function, Functions.Arity5>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity5> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Functions.Arity5> adapter;
/**
* @param computer the Computer to convert
* @return {@code computer} as a Function
*/
@Override
public Functions.Arity5 apply(Computers.Arity5 computer) {
return adapter.apply(lifter.apply(computer));
}
}
/**
* Lifting function for mapping Computers Ops to Functions that operate on RAIs.
*
* @param
* Type of the first RAI
* @param
* Type of the second RAI
* @param
* The third parameter type
* @param
* The fourth parameter type
* @param
* The fifth parameter type
* @param
* Type of the output RAI
* @implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI52ComputerToFunctionAndLiftViaSource, RAII2 extends RandomAccessibleInterval, RAIO extends RandomAccessibleInterval>
implements Function, Functions.Arity5>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity5> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Functions.Arity5> adapter;
/**
* @param computer the Computer to convert
* @return {@code computer} as a Function
*/
@Override
public Functions.Arity5 apply(Computers.Arity5 computer) {
return adapter.apply(lifter.apply(computer));
}
}
/**
* Lifting function for mapping Computers Ops to Functions that operate on RAIs.
*
* @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 fifth parameter type
* @param
* Type of the output RAI
* @implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI53ComputerToFunctionAndLiftViaSource, RAII2 extends RandomAccessibleInterval, RAII3 extends RandomAccessibleInterval, RAIO extends RandomAccessibleInterval>
implements Function, Functions.Arity5>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity5> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Functions.Arity5> adapter;
/**
* @param computer the Computer to convert
* @return {@code computer} as a Function
*/
@Override
public Functions.Arity5 apply(Computers.Arity5 computer) {
return adapter.apply(lifter.apply(computer));
}
}
/**
* Lifting function for mapping Computers Ops to Functions that operate on RAIs.
*
* @param
* Type of the first RAI
* @param
* Type of the second RAI
* @param
* Type of the third RAI
* @param
* Type of the fourth RAI
* @param
* The fifth parameter type
* @param
* Type of the output RAI
* @implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI54ComputerToFunctionAndLiftViaSource, RAII2 extends RandomAccessibleInterval, RAII3 extends RandomAccessibleInterval, RAII4 extends RandomAccessibleInterval, RAIO extends RandomAccessibleInterval>
implements Function, Functions.Arity5>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity5> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Functions.Arity5> adapter;
/**
* @param computer the Computer to convert
* @return {@code computer} as a Function
*/
@Override
public Functions.Arity5 apply(Computers.Arity5 computer) {
return adapter.apply(lifter.apply(computer));
}
}
/**
* Lifting function for mapping Computers Ops to Functions that operate on RAIs.
*
* @param
* Type of the first RAI
* @param
* Type of the second RAI
* @param
* Type of the third RAI
* @param
* Type of the fourth RAI
* @param
* Type of the fifth RAI
* @param
* Type of the output RAI
* @implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI55ComputerToFunctionAndLiftViaSource, RAII2 extends RandomAccessibleInterval, RAII3 extends RandomAccessibleInterval, RAII4 extends RandomAccessibleInterval, RAII5 extends RandomAccessibleInterval, RAIO extends RandomAccessibleInterval>
implements Function, Functions.Arity5>,
Op
{
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Computers.Arity5> lifter;
@OpDependency(name = "engine.adapt", hints={"adaptation.FORBIDDEN"})
Function, Functions.Arity5> adapter;
/**
* @param computer the Computer to convert
* @return {@code computer} as a Function
*/
@Override
public Functions.Arity5 apply(Computers.Arity5 computer) {
return adapter.apply(lifter.apply(computer));
}
}
/**
* Lifting function for mapping Computers Ops to Functions that operate on RAIs.
*
* @param
* Type of the first RAI
* @param
* The second parameter type
* @param
* The third parameter type
* @param
* The fourth parameter type
* @param
* The fifth parameter type
* @param
* The sixth parameter type
* @param
* Type of the output RAI
* @implNote op names='engine.adapt', priority='-100.'
*/
public static class RAI61ComputerToFunctionAndLiftViaSource, RAIO extends RandomAccessibleInterval>
implements Function, Functions.Arity6