当前位置: 首页>>代码示例>>Java>>正文


Java Ops类代码示例

本文整理汇总了Java中net.imagej.ops.Ops的典型用法代码示例。如果您正苦于以下问题:Java Ops类的具体用法?Java Ops怎么用?Java Ops使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Ops类属于net.imagej.ops包,在下文中一共展示了Ops类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: compute

import net.imagej.ops.Ops; //导入依赖的package包/类
@Override
public void compute(final Iterable<T> neighborhood, final T center,
	final O output)
{
	// TODO Move to initialize when NIL objects are available
	if (applyThreshold == null) {
		applyThreshold = Computers.binary(ops(), Ops.Threshold.Apply.class, output,
			center, center);
	}

	// Compute histogram for neighborhood
	final Histogram1d<T> hist = histCreator.calculate(neighborhood);

	// Compute threshold
	final T computedThreshold = center.createVariable();
	thresholdComputer.compute(hist, computedThreshold);

	// Apply threshold
	applyThreshold.compute(center, computedThreshold, output);
}
 
开发者ID:imagej,项目名称:imagej-ops,代码行数:21,代码来源:LocalThresholdMethodHistogram.java

示例2: matchOps

import net.imagej.ops.Ops; //导入依赖的package包/类
private void matchOps(final RandomAccessibleInterval<BitType> interval) {
       eulerCharacteristicOp = Hybrids.unaryCF(opService,
		Ops.Topology.EulerCharacteristic26NFloating.class, DoubleType.class,
               interval);
	eulerCorrectionOp = Hybrids.unaryCF(opService,
		Ops.Topology.EulerCorrection.class, DoubleType.class, interval);
}
 
开发者ID:bonej-org,项目名称:BoneJ2,代码行数:8,代码来源:ConnectivityWrapper.java

示例3: matchOps

import net.imagej.ops.Ops; //导入依赖的package包/类
@SuppressWarnings("unchecked")
private void matchOps(final RandomAccessibleInterval<BitType> input) {
	hollowOp = (BinaryHybridCF) Hybrids.binaryCF(opService, Ops.Morphology.Outline.class,
		RandomAccessibleInterval.class, input, true);
	boxCountOp = (UnaryFunctionOp) Functions.unary(opService, Ops.Topology.BoxCount.class,
		List.class, input, startBoxSize, smallestBoxSize, scaleFactor,
		translations);
}
 
开发者ID:bonej-org,项目名称:BoneJ2,代码行数:9,代码来源:FractalDimensionWrapper.java

示例4: matchOps

import net.imagej.ops.Ops; //导入依赖的package包/类
private void matchOps(final RandomAccessibleInterval<BitType> subspace) {
	raiCopy = Functions.unary(opService, Ops.Copy.RAI.class,
		RandomAccessibleInterval.class, subspace);
	marchingCubes = Functions.unary(opService,
		Ops.Geometric.MarchingCubes.class, Mesh.class, subspace);
	// Create a dummy object to make op matching happy
	meshVolume = Functions.unary(opService, Ops.Geometric.Size.class,
		DoubleType.class, new DefaultMesh());
}
 
开发者ID:bonej-org,项目名称:BoneJ2,代码行数:10,代码来源:SurfaceFractionWrapper.java

示例5: equal

import net.imagej.ops.Ops; //导入依赖的package包/类
@OpMethod(op = net.imagej.ops.logic.BooleanTypeLogic.ObjectsEqual.class)
public <T extends BooleanType<T>> T equal(final T out, final Object a,
	final Object b)
{
	@SuppressWarnings("unchecked")
	final T result = (T) ops().run(
		Ops.Logic.Equal.class, out, a, b);
	return result;
}
 
开发者ID:imagej,项目名称:imagej-ops,代码行数:10,代码来源:LogicNamespace.java

示例6: initialize

import net.imagej.ops.Ops; //导入依赖的package包/类
@Override
@SuppressWarnings({ "unchecked", "rawtypes" })
public void initialize() {
	super.initialize();
	create = (UnaryFunctionOp) Functions.unary(ops(), Ops.Create.Img.class,
		Img.class, Dimensions.class, outType);

	sum = (UnaryHybridCF) Hybrids.unaryCF(ops(), Ops.Stats.Sum.class, outType,
		RandomAccessibleInterval.class);
}
 
开发者ID:imagej,项目名称:imagej-ops,代码行数:11,代码来源:NonCirculantFirstGuess.java

示例7: convolve

import net.imagej.ops.Ops; //导入依赖的package包/类
@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,
		final RandomAccessibleInterval<C> fftKernel, final boolean performInputFFT) {
	@SuppressWarnings("unchecked")
	final RandomAccessibleInterval<O> result = (RandomAccessibleInterval<O>) ops().run(Ops.Filter.Convolve.class,
			output, raiExtendedInput, raiExtendedKernel, fftInput, fftKernel, performInputFFT);
	return result;
}
 
开发者ID:imagej,项目名称:imagej-ops,代码行数:11,代码来源:FilterNamespace.java

示例8: ops

import net.imagej.ops.Ops; //导入依赖的package包/类
@OpMethod(
	op = net.imagej.ops.logic.BooleanTypeLogic.ComparableGreaterThanOrEqual.class)
public <I extends Comparable<I>, O extends BooleanType<O>> O
	greaterThanOrEqual(final O out, final I a, final I b)
{
	@SuppressWarnings("unchecked")
	final O result = (O) ops().run(
		Ops.Logic.GreaterThanOrEqual.class,
		out, a, b);
	return result;
}
 
开发者ID:imagej,项目名称:imagej-ops,代码行数:12,代码来源:LogicNamespace.java

示例9: scaleView

import net.imagej.ops.Ops; //导入依赖的package包/类
/**
 * Executes the "scale" operation on the given arguments.
 *
 * @param in
 * @param scaleFactors
 * @param interpolator
 * @return
 */
@OpMethod(op = net.imagej.ops.transform.scaleView.DefaultScaleView.class)
public <T extends RealType<T>> RandomAccessibleInterval<T> scaleView(
	final RandomAccessibleInterval<T> in, final double[] scaleFactors,
	final InterpolatorFactory<T, RandomAccessible<T>> interpolator)
{
	@SuppressWarnings("unchecked")
	final RandomAccessibleInterval<T> result =
		(RandomAccessibleInterval<T>) ops().run(Ops.Transform.ScaleView.class, in,
			scaleFactors, interpolator);
	return result;
}
 
开发者ID:imagej,项目名称:imagej-ops,代码行数:20,代码来源:TransformNamespace.java

示例10: normalize

import net.imagej.ops.Ops; //导入依赖的package包/类
@OpMethod(op = net.imagej.ops.image.normalize.NormalizeIIComputer.class)
public
	<T extends RealType<T>> IterableInterval<T> normalize(
		final IterableInterval<T> out, final IterableInterval<T> in,
		final T sourceMin, final T sourceMax, final T targetMin)
{
	@SuppressWarnings("unchecked")
	final IterableInterval<T> result =
		(IterableInterval<T>) ops().run(
			net.imagej.ops.Ops.Image.Normalize.class, out,
			in, sourceMin, sourceMax, targetMin);
	return result;
}
 
开发者ID:imagej,项目名称:imagej-ops,代码行数:14,代码来源:ImageNamespace.java

示例11: initialize

import net.imagej.ops.Ops; //导入依赖的package包/类
@Override
public void initialize() {
	mapper = Computers.unary(ops(), Ops.Map.class, out(), in(), pixConvert);
	pixConvert.checkInput(in().firstElement().createVariable(), out()
		.firstElement().createVariable());
	pixConvert.checkInput(in());
}
 
开发者ID:imagej,项目名称:imagej-ops,代码行数:8,代码来源:ConvertIIs.java

示例12: sinc

import net.imagej.ops.Ops; //导入依赖的package包/类
@OpMethod(op = net.imagej.ops.math.UnaryRealTypeMath.Sinc.class)
public <I extends RealType<I>, O extends RealType<O>> O sinc(final O out,
	final I in)
{
	@SuppressWarnings("unchecked")
	final O result = (O) ops().run(net.imagej.ops.Ops.Math.Sinc.class, out, in);
	return result;
}
 
开发者ID:imagej,项目名称:imagej-ops,代码行数:9,代码来源:MathNamespace.java

示例13: uint12

import net.imagej.ops.Ops; //导入依赖的package包/类
@OpMethod(op = net.imagej.ops.convert.ConvertImages.Uint12.class)
public <C extends ComplexType<C>> Img<Unsigned12BitType> uint12(
	final IterableInterval<C> in)
{
	@SuppressWarnings("unchecked")
	final Img<Unsigned12BitType> result = (Img<Unsigned12BitType>) ops().run(
		Ops.Convert.Uint12.class, in);
	return result;
}
 
开发者ID:imagej,项目名称:imagej-ops,代码行数:10,代码来源:ConvertNamespace.java

示例14: notEqual

import net.imagej.ops.Ops; //导入依赖的package包/类
@OpMethod(op = net.imagej.ops.logic.BooleanTypeLogic.ObjectsNotEqual.class)
public <T extends BooleanType<T>> T notEqual(final T out, final Object a,
	final Object b)
{
	@SuppressWarnings("unchecked")
	final T result = (T) ops().run(
		Ops.Logic.NotEqual.class, out, a, b);
	return result;
}
 
开发者ID:imagej,项目名称:imagej-ops,代码行数:10,代码来源:LogicNamespace.java

示例15: add

import net.imagej.ops.Ops; //导入依赖的package包/类
@OpMethod(op = net.imagej.ops.math.ConstantToIIOutputII.Add.class)
public <T extends NumericType<T>> IterableInterval<T> add(
	final IterableInterval<T> out, final IterableInterval<T> in,
	final T value)
{
	@SuppressWarnings("unchecked")
	final IterableInterval<T> result = (IterableInterval<T>) ops().run(
		net.imagej.ops.Ops.Math.Add.class, out, in, value);
	return result;
}
 
开发者ID:imagej,项目名称:imagej-ops,代码行数:11,代码来源:MathNamespace.java


注:本文中的net.imagej.ops.Ops类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。