net.imglib2.type.numeric.ComplexType Java Examples
The following examples show how to use
net.imglib2.type.numeric.ComplexType.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DeconvolveNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 6 votes |
@OpMethod(op = net.imagej.ops.deconvolve.RichardsonLucyC.class) public <I extends RealType<I>, O extends RealType<O>, K extends RealType<K>, C extends ComplexType<C>> RandomAccessibleInterval<O> richardsonLucy( final RandomAccessibleInterval<O> out, final RandomAccessibleInterval<I> in1, final RandomAccessibleInterval<K> in2, final RandomAccessibleInterval<C> fftInput, final RandomAccessibleInterval<C> fftKernel, final boolean performInputFFT, final int maxIterations) { @SuppressWarnings("unchecked") final RandomAccessibleInterval<O> result = (RandomAccessibleInterval<O>) ops().run( net.imagej.ops.deconvolve.RichardsonLucyC.class, out, in1, in2, fftInput, fftKernel, performInputFFT, maxIterations); return result; }
Example #2
Source File: FilterNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 6 votes |
/** Executes the "correlate" operation on the given arguments. */ @OpMethod(op = net.imagej.ops.filter.correlate.CorrelateFFTC.class) public <I extends RealType<I>, O extends RealType<O>, K extends RealType<K>, C extends ComplexType<C>> RandomAccessibleInterval<O> correlate( final RandomAccessibleInterval<O> output, final RandomAccessibleInterval<I> raiExtendedInput, final RandomAccessibleInterval<K> raiExtendedKernel, final RandomAccessibleInterval<C> fftInput, final RandomAccessibleInterval<C> fftKernel, final boolean performInputFFT) { @SuppressWarnings("unchecked") final RandomAccessibleInterval<O> result = (RandomAccessibleInterval<O>) ops().run(Ops.Filter.Correlate.class, output, raiExtendedInput, raiExtendedKernel, fftInput, fftKernel, performInputFFT); return result; }
Example #3
Source File: DeconvolveNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 6 votes |
@OpMethod(op = net.imagej.ops.deconvolve.RichardsonLucyC.class) public <I extends RealType<I>, O extends RealType<O>, K extends RealType<K>, C extends ComplexType<C>> RandomAccessibleInterval<O> richardsonLucy( final RandomAccessibleInterval<O> out, final RandomAccessibleInterval<I> in1, final RandomAccessibleInterval<K> in2, final RandomAccessibleInterval<C> fftInput, final RandomAccessibleInterval<C> fftKernel, final boolean performInputFFT, final boolean performKernelFFT, final int maxIterations, final UnaryInplaceOp<O, O> accelerator, final UnaryComputerOp<RandomAccessibleInterval<O>, RandomAccessibleInterval<O>> update) { @SuppressWarnings("unchecked") final RandomAccessibleInterval<O> result = (RandomAccessibleInterval<O>) ops().run( net.imagej.ops.deconvolve.RichardsonLucyC.class, out, in1, in2, fftInput, fftKernel, performInputFFT, performKernelFFT, maxIterations, accelerator, update); return result; }
Example #4
Source File: DeconvolveNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 6 votes |
@OpMethod(op = net.imagej.ops.deconvolve.RichardsonLucyC.class) public <I extends RealType<I>, O extends RealType<O>, K extends RealType<K>, C extends ComplexType<C>> RandomAccessibleInterval<O> richardsonLucy( final RandomAccessibleInterval<O> out, final RandomAccessibleInterval<I> in1, final RandomAccessibleInterval<K> in2, final RandomAccessibleInterval<C> fftInput, final RandomAccessibleInterval<C> fftKernel, final boolean performInputFFT, final boolean performKernelFFT, final int maxIterations, final UnaryInplaceOp<O, O> accelerator, final UnaryComputerOp<RandomAccessibleInterval<O>, RandomAccessibleInterval<O>> update, RandomAccessibleInterval<O> raiExtendedEstimate) { @SuppressWarnings("unchecked") final RandomAccessibleInterval<O> result = (RandomAccessibleInterval<O>) ops().run( net.imagej.ops.deconvolve.RichardsonLucyC.class, out, in1, in2, fftInput, fftKernel, performInputFFT, performKernelFFT, maxIterations, accelerator, update, raiExtendedEstimate); return result; }
Example #5
Source File: DeconvolveNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 6 votes |
@Deprecated public <I extends RealType<I>, O extends RealType<O> & NativeType<O>, K extends RealType<K>, C extends ComplexType<C>> RandomAccessibleInterval<O> richardsonLucy( final RandomAccessibleInterval<I> in1, final RandomAccessibleInterval<K> in2, final RandomAccessibleInterval<C> fftInput, final RandomAccessibleInterval<C> fftKernel, final boolean performInputFFT, final boolean performKernelFFT, final int maxIterations, final UnaryInplaceOp<O, O> accelerator, final UnaryComputerOp<RandomAccessibleInterval<O>, RandomAccessibleInterval<O>> update, RandomAccessibleInterval<O> raiExtendedEstimate, final ArrayList<UnaryInplaceOp<RandomAccessibleInterval<O>, RandomAccessibleInterval<O>>> iterativePostProcessing) { final RandomAccessibleInterval<O> out = create(in1, raiExtendedEstimate); return richardsonLucy(out, in1, in2, fftInput, fftKernel, performInputFFT, performKernelFFT, maxIterations, accelerator, update, raiExtendedEstimate, iterativePostProcessing); }
Example #6
Source File: DeconvolveNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 6 votes |
@Deprecated public <I extends RealType<I>, O extends RealType<O> & NativeType<O>, K extends RealType<K>, C extends ComplexType<C>> RandomAccessibleInterval<O> richardsonLucy( final RandomAccessibleInterval<I> in1, final RandomAccessibleInterval<K> in2, final RandomAccessibleInterval<C> fftInput, final RandomAccessibleInterval<C> fftKernel, final boolean performInputFFT, final boolean performKernelFFT, final int maxIterations, final UnaryInplaceOp<O, O> accelerator, final UnaryComputerOp<RandomAccessibleInterval<O>, RandomAccessibleInterval<O>> update, RandomAccessibleInterval<O> raiExtendedEstimate) { final RandomAccessibleInterval<O> out = create(in1, raiExtendedEstimate); return richardsonLucy(out, in1, in2, fftInput, fftKernel, performInputFFT, performKernelFFT, maxIterations, accelerator, update, raiExtendedEstimate); }
Example #7
Source File: FilterNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 6 votes |
/** Executes the "linearFilter" operation on the given arguments. */ @OpMethod(op = net.imagej.ops.filter.FFTMethodsLinearFFTFilterC.class) public <I extends RealType<I>, O extends RealType<O>, K extends RealType<K>, C extends ComplexType<C>> RandomAccessibleInterval<O> linearFilter( final RandomAccessibleInterval<O> out, final RandomAccessibleInterval<I> in1, final RandomAccessibleInterval<K> in2, final RandomAccessibleInterval<C> fftInput, final RandomAccessibleInterval<C> fftKernel, final boolean performInputFFT, final BinaryComputerOp<RandomAccessibleInterval<C>, RandomAccessibleInterval<C>, RandomAccessibleInterval<C>> frequencyOp) { @SuppressWarnings("unchecked") final RandomAccessibleInterval<O> result = (RandomAccessibleInterval<O>) ops().run(Ops.Filter.LinearFilter.class, out, in1, in2, fftInput, fftKernel, performInputFFT, frequencyOp); return result; }
Example #8
Source File: FilterNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 6 votes |
/** Executes the "correlate" operation on the given arguments. */ @OpMethod(op = net.imagej.ops.filter.correlate.CorrelateFFTC.class) public <I extends RealType<I>, O extends RealType<O>, K extends RealType<K>, C extends ComplexType<C>> RandomAccessibleInterval<O> correlate( final RandomAccessibleInterval<O> output, final RandomAccessibleInterval<I> raiExtendedInput, final RandomAccessibleInterval<K> raiExtendedKernel, final RandomAccessibleInterval<C> fftInput, final RandomAccessibleInterval<C> fftKernel) { @SuppressWarnings("unchecked") final RandomAccessibleInterval<O> result = (RandomAccessibleInterval<O>) ops().run(Ops.Filter.Correlate.class, output, raiExtendedInput, raiExtendedKernel, fftInput, fftKernel); return result; }
Example #9
Source File: DeconvolveNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 6 votes |
@OpMethod(op = net.imagej.ops.deconvolve.PadAndRichardsonLucyTV.class) public <I extends RealType<I>, O extends RealType<O>, K extends RealType<K>, C extends ComplexType<C>> RandomAccessibleInterval<O> richardsonLucyTV( final RandomAccessibleInterval<O> out, final RandomAccessibleInterval<I> in, final RandomAccessibleInterval<K> kernel, final long[] borderSize, final OutOfBoundsFactory<I, RandomAccessibleInterval<I>> obfInput, final OutOfBoundsFactory<K, RandomAccessibleInterval<K>> obfKernel, final O outType, final C fftType, final int maxIterations, final boolean nonCirculant, final boolean accelerate, final float regularizationFactor) { @SuppressWarnings("unchecked") final RandomAccessibleInterval<O> result = (RandomAccessibleInterval<O>) ops().run( net.imagej.ops.deconvolve.PadAndRichardsonLucyTV.class, out, in, kernel, borderSize, obfInput, obfKernel, outType, fftType, maxIterations, nonCirculant, accelerate, regularizationFactor); return result; }
Example #10
Source File: DeconvolveNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 6 votes |
@OpMethod(op = net.imagej.ops.deconvolve.PadAndRichardsonLucyTV.class) public <I extends RealType<I>, O extends RealType<O> & NativeType<O>, K extends RealType<K>, C extends ComplexType<C>> RandomAccessibleInterval<O> richardsonLucyTV( final RandomAccessibleInterval<O> out, final RandomAccessibleInterval<I> in, final RandomAccessibleInterval<K> kernel, final long[] borderSize, final OutOfBoundsFactory<I, RandomAccessibleInterval<I>> obfInput, final OutOfBoundsFactory<K, RandomAccessibleInterval<K>> obfKernel, final O outType, final C fftType, final int maxIterations, final float regularizationFactor) { @SuppressWarnings("unchecked") final RandomAccessibleInterval<O> result = (RandomAccessibleInterval<O>) ops().run( net.imagej.ops.deconvolve.PadAndRichardsonLucyTV.class, out, in, kernel, borderSize, obfInput, obfKernel, outType, fftType, maxIterations, regularizationFactor); return result; }
Example #11
Source File: DeconvolveNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 6 votes |
@OpMethod(op = net.imagej.ops.deconvolve.PadAndRichardsonLucy.class) public <I extends RealType<I>, O extends RealType<O> & NativeType<O>, K extends RealType<K>, C extends ComplexType<C>> RandomAccessibleInterval<O> richardsonLucy( final RandomAccessibleInterval<O> out, final RandomAccessibleInterval<I> in, final RandomAccessibleInterval<K> kernel, final long[] borderSize, final OutOfBoundsFactory<I, RandomAccessibleInterval<I>> obfInput, final OutOfBoundsFactory<K, RandomAccessibleInterval<K>> obfKernel, final O outType, final C fftType, final int maxIterations) { @SuppressWarnings("unchecked") final RandomAccessibleInterval<O> result = (RandomAccessibleInterval<O>) ops().run( net.imagej.ops.deconvolve.PadAndRichardsonLucy.class, out, in, kernel, borderSize, obfInput, obfKernel, outType, fftType, maxIterations); return result; }
Example #12
Source File: DeconvolveNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 6 votes |
@OpMethod(op = net.imagej.ops.deconvolve.RichardsonLucyCorrection.class) public <I extends RealType<I>, O extends RealType<O>, C extends ComplexType<C>> RandomAccessibleInterval<O> richardsonLucyCorrection( final RandomAccessibleInterval<O> out, final RandomAccessibleInterval<I> in1, final RandomAccessibleInterval<O> in2, final RandomAccessibleInterval<C> fftBuffer, final RandomAccessibleInterval<C> fftKernel) { @SuppressWarnings("unchecked") final RandomAccessibleInterval<O> result = (RandomAccessibleInterval<O>) ops().run( net.imagej.ops.deconvolve.RichardsonLucyCorrection.class, out, in1, in2, fftBuffer, fftKernel); return result; }
Example #13
Source File: ConvertNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 5 votes |
@OpMethod(op = net.imagej.ops.convert.ConvertImages.Uint8.class) public <C extends ComplexType<C>> Img<UnsignedByteType> uint8( final Img<UnsignedByteType> out, final IterableInterval<C> in) { @SuppressWarnings("unchecked") final Img<UnsignedByteType> result = (Img<UnsignedByteType>) ops().run( Ops.Convert.Uint8.class, out, in); return result; }
Example #14
Source File: ConvertNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 5 votes |
@OpMethod(op = net.imagej.ops.convert.ConvertImages.Int8.class) public <C extends ComplexType<C>> Img<ByteType> int8( final IterableInterval<C> in) { @SuppressWarnings("unchecked") final Img<ByteType> result = (Img<ByteType>) ops().run( Ops.Convert.Int8.class, in); return result; }
Example #15
Source File: ConvertNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 5 votes |
@OpMethod(op = net.imagej.ops.convert.ConvertTypes.ComplexToInt32.class) public <C extends ComplexType<C>> IntType int32(final IntType out, final C in) { final IntType result = (IntType) ops().run( Ops.Convert.Int32.class, out, in); return result; }
Example #16
Source File: ConvertNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 5 votes |
@OpMethod(op = net.imagej.ops.convert.ConvertTypes.ComplexToUint16.class) public <C extends ComplexType<C>> UnsignedShortType uint16( final UnsignedShortType out, final C in) { final UnsignedShortType result = (UnsignedShortType) ops().run( Ops.Convert.Uint16.class, out, in); return result; }
Example #17
Source File: ConvertNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 5 votes |
@OpMethod(op = net.imagej.ops.convert.ConvertImages.Int32.class) public <C extends ComplexType<C>> Img<IntType> int32( final IterableInterval<C> in) { @SuppressWarnings("unchecked") final Img<IntType> result = (Img<IntType>) ops().run( Ops.Convert.Int32.class, in); return result; }
Example #18
Source File: FilterNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 5 votes |
@OpMethod(op = net.imagej.ops.filter.ifft.IFFTMethodsOpI.class) public <C extends ComplexType<C>> RandomAccessibleInterval<C> ifft( final RandomAccessibleInterval<C> arg) { @SuppressWarnings("unchecked") final RandomAccessibleInterval<C> result = (RandomAccessibleInterval<C>) ops().run(Ops.Filter.IFFT.class, arg); return result; }
Example #19
Source File: CreateNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 5 votes |
/** Executes the "kernelLog" operation on the given arguments. */ @OpMethod(op = net.imagej.ops.create.kernelLog.DefaultCreateKernelLog.class) public <T extends ComplexType<T>> RandomAccessibleInterval<T> kernelLog( final double[] sigma, final T outType) { @SuppressWarnings("unchecked") final RandomAccessibleInterval<T> result = (RandomAccessibleInterval<T>) ops().run(Ops.Create.KernelLog.class, sigma, outType); return result; }
Example #20
Source File: ConvertNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 5 votes |
@OpMethod(op = net.imagej.ops.convert.ConvertImages.Float32.class) public <C extends ComplexType<C>> Img<FloatType> float32( final IterableInterval<C> in) { @SuppressWarnings("unchecked") final Img<FloatType> result = (Img<FloatType>) ops().run( Ops.Convert.Float32.class, in); return result; }
Example #21
Source File: FilterNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 5 votes |
/** * Executes the "padInputFFT" filter operation on the given arguments. */ @OpMethod(ops = { net.imagej.ops.filter.pad.PadInputFFTMethods.class, net.imagej.ops.filter.pad.DefaultPadInputFFT.class }) public <T extends ComplexType<T>> RandomAccessibleInterval<T> padFFTInput( final RandomAccessibleInterval<T> in1, final Dimensions in2) { @SuppressWarnings("unchecked") final RandomAccessibleInterval<T> result = (RandomAccessibleInterval<T>) ops().run(Ops.Filter.PadFFTInput.class, in1, in2); return result; }
Example #22
Source File: ConvertNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 5 votes |
@OpMethod(op = net.imagej.ops.convert.ConvertImages.Bit.class) public <C extends ComplexType<C>> Img<BitType> bit(final Img<BitType> out, final IterableInterval<C> in) { @SuppressWarnings("unchecked") final Img<BitType> result = (Img<BitType>) ops().run( Ops.Convert.Bit.class, out, in); return result; }
Example #23
Source File: FilterNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 5 votes |
/** Executes the "correlate" operation on the given arguments. */ @OpMethod(op = net.imagej.ops.filter.correlate.PadAndCorrelateFFT.class) public <I extends RealType<I>, O extends RealType<O>, K extends RealType<K>, C extends ComplexType<C>> RandomAccessibleInterval<O> correlate(final RandomAccessibleInterval<O> out,final RandomAccessibleInterval<I> in, final RandomAccessibleInterval<K> kernel, final long[] borderSize, final OutOfBoundsFactory<I, RandomAccessibleInterval<I>> obfInput, final OutOfBoundsFactory<K, RandomAccessibleInterval<K>> obfKernel, final O outType, final C fftType) { @SuppressWarnings("unchecked") final RandomAccessibleInterval<O> result = (RandomAccessibleInterval<O>) ops().run(Ops.Filter.Correlate.class, out, in, kernel, borderSize, obfInput, obfKernel, outType, fftType); return result; }
Example #24
Source File: ConvertNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 5 votes |
@OpMethod(op = net.imagej.ops.convert.ConvertImages.Uint4.class) public <C extends ComplexType<C>> Img<Unsigned4BitType> uint4( final Img<Unsigned4BitType> out, final IterableInterval<C> in) { @SuppressWarnings("unchecked") final Img<Unsigned4BitType> result = (Img<Unsigned4BitType>) ops().run( Ops.Convert.Uint4.class, out, in); return result; }
Example #25
Source File: ConvertNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 5 votes |
@OpMethod(op = net.imagej.ops.convert.ConvertImages.Uint4.class) public <C extends ComplexType<C>> Img<Unsigned4BitType> uint4( final IterableInterval<C> in) { @SuppressWarnings("unchecked") final Img<Unsigned4BitType> result = (Img<Unsigned4BitType>) ops().run( Ops.Convert.Uint4.class, in); return result; }
Example #26
Source File: ConvertNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 5 votes |
@OpMethod(op = net.imagej.ops.convert.ConvertImages.Int64.class) public <C extends ComplexType<C>> Img<LongType> int64( final IterableInterval<C> in) { @SuppressWarnings("unchecked") final Img<LongType> result = (Img<LongType>) ops().run( Ops.Convert.Int64.class, in); return result; }
Example #27
Source File: ConvertNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 5 votes |
@OpMethod(op = net.imagej.ops.convert.ConvertImages.Uint2.class) public <C extends ComplexType<C>> Img<Unsigned2BitType> uint2( final Img<Unsigned2BitType> out, final IterableInterval<C> in) { @SuppressWarnings("unchecked") final Img<Unsigned2BitType> result = (Img<Unsigned2BitType>) ops().run( Ops.Convert.Uint2.class, out, in); return result; }
Example #28
Source File: ConvertNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 5 votes |
@OpMethod(op = net.imagej.ops.convert.ConvertImages.Uint2.class) public <C extends ComplexType<C>> Img<Unsigned2BitType> uint2( final IterableInterval<C> in) { @SuppressWarnings("unchecked") final Img<Unsigned2BitType> result = (Img<Unsigned2BitType>) ops().run( Ops.Convert.Uint2.class, in); return result; }
Example #29
Source File: ConvertNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 5 votes |
@OpMethod(op = net.imagej.ops.convert.ConvertImages.Uint64.class) public <C extends ComplexType<C>> Img<UnsignedLongType> uint64( final IterableInterval<C> in) { @SuppressWarnings("unchecked") final Img<UnsignedLongType> result = (Img<UnsignedLongType>) ops().run( Ops.Convert.Uint64.class, in); return result; }
Example #30
Source File: FilterNamespace.java From imagej-ops with BSD 2-Clause "Simplified" License | 5 votes |
/** Executes the "convolve" operation on the given arguments. */ @OpMethod(op = net.imagej.ops.filter.convolve.ConvolveFFTC.class) public <I extends RealType<I>, O extends RealType<O>, K extends RealType<K>, C extends ComplexType<C>> RandomAccessibleInterval<O> convolve( final RandomAccessibleInterval<O> output, final RandomAccessibleInterval<I> raiExtendedInput, final RandomAccessibleInterval<K> raiExtendedKernel, final RandomAccessibleInterval<C> fftInput) { @SuppressWarnings("unchecked") final RandomAccessibleInterval<O> result = (RandomAccessibleInterval<O>) ops().run(Ops.Filter.Convolve.class, output, raiExtendedInput, raiExtendedKernel, fftInput); return result; }