當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。