Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from imglib/io-package
ImgMath updates
- Loading branch information
Showing
53 changed files
with
1,284 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package net.imglib2.algorithm.math; | ||
|
||
import java.util.Map; | ||
|
||
import net.imglib2.algorithm.math.abstractions.AUnaryFunction; | ||
import net.imglib2.algorithm.math.abstractions.OFunction; | ||
import net.imglib2.algorithm.math.execution.Exponential; | ||
import net.imglib2.algorithm.math.execution.LetBinding; | ||
import net.imglib2.algorithm.math.execution.Variable; | ||
import net.imglib2.converter.Converter; | ||
import net.imglib2.type.numeric.RealType; | ||
|
||
public final class Exp extends AUnaryFunction | ||
{ | ||
public Exp( final Object o1 ) | ||
{ | ||
super( o1 ); | ||
} | ||
|
||
@Override | ||
public < O extends RealType< O > > Exponential< O > reInit( | ||
final O tmp, | ||
final Map< String, LetBinding< O > > bindings, | ||
final Converter< RealType< ? >, O > converter, | ||
final Map< Variable< O >, OFunction< O > > imgSources ) | ||
{ | ||
return new Exponential< O >( tmp.copy(), | ||
this.a.reInit( tmp, bindings, converter, imgSources ) ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package net.imglib2.algorithm.math; | ||
|
||
import java.util.Map; | ||
|
||
import net.imglib2.algorithm.math.abstractions.AUnaryFunction; | ||
import net.imglib2.algorithm.math.abstractions.OFunction; | ||
import net.imglib2.algorithm.math.execution.Logarithm; | ||
import net.imglib2.algorithm.math.execution.LetBinding; | ||
import net.imglib2.algorithm.math.execution.Variable; | ||
import net.imglib2.converter.Converter; | ||
import net.imglib2.type.numeric.RealType; | ||
|
||
public final class Log extends AUnaryFunction | ||
{ | ||
public Log( final Object o1 ) | ||
{ | ||
super( o1 ); | ||
} | ||
|
||
@Override | ||
public < O extends RealType< O > > Logarithm< O > reInit( | ||
final O tmp, | ||
final Map< String, LetBinding< O > > bindings, | ||
final Converter< RealType< ? >, O > converter, | ||
final Map< Variable< O >, OFunction< O > > imgSources ) | ||
{ | ||
return new Logarithm< O >( tmp.copy(), | ||
this.a.reInit( tmp, bindings, converter, imgSources ) ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.