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


Java UnsignedByteType.get方法代码示例

本文整理汇总了Java中net.imglib2.type.numeric.integer.UnsignedByteType.get方法的典型用法代码示例。如果您正苦于以下问题:Java UnsignedByteType.get方法的具体用法?Java UnsignedByteType.get怎么用?Java UnsignedByteType.get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.imglib2.type.numeric.integer.UnsignedByteType的用法示例。


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

示例1: invertImage

import net.imglib2.type.numeric.integer.UnsignedByteType; //导入方法依赖的package包/类
/** Generic version. */
@SuppressWarnings("unused")
private void invertImage(final Img<UnsignedByteType> img) {
	for (final UnsignedByteType t : img) {
		final int value = t.get();
		final int result = 255 - value;
		t.set(result);
	}
}
 
开发者ID:imglib,项目名称:imglib2-tests,代码行数:10,代码来源:PerformanceBenchmark.java

示例2: invertArrayImage

import net.imglib2.type.numeric.integer.UnsignedByteType; //导入方法依赖的package包/类
/** Explicit array version. */
private void invertArrayImage(final Img<UnsignedByteType> img) {
	final ArrayCursor<UnsignedByteType> c =
		(ArrayCursor<UnsignedByteType>) img.cursor();
	while (c.hasNext()) {
		final UnsignedByteType t = c.next();
		final int value = t.get();
		final int result = 255 - value;
		t.set(result);
	}
}
 
开发者ID:imglib,项目名称:imglib2-tests,代码行数:12,代码来源:PerformanceBenchmark.java

示例3: invertCellImage

import net.imglib2.type.numeric.integer.UnsignedByteType; //导入方法依赖的package包/类
/** Explicit cell version. */
private void invertCellImage(final Img<UnsignedByteType> img) {
	@SuppressWarnings("unchecked")
	final CellCursor<UnsignedByteType, ?> c =
		(CellCursor<UnsignedByteType, ?>) img
			.cursor();
	while (c.hasNext()) {
		final UnsignedByteType t = c.next();
		final int value = t.get();
		final int result = 255 - value;
		t.set(result);
	}
}
 
开发者ID:imglib,项目名称:imglib2-tests,代码行数:14,代码来源:PerformanceBenchmark.java

示例4: invertPlanarImage

import net.imglib2.type.numeric.integer.UnsignedByteType; //导入方法依赖的package包/类
/** Explicit planar version. */
private void invertPlanarImage(final Img<UnsignedByteType> img) {
	final PlanarCursor<UnsignedByteType> c =
		(PlanarCursor<UnsignedByteType>) img.cursor();
	while (c.hasNext()) {
		final UnsignedByteType t = c.next();
		final int value = t.get();
		final int result = 255 - value;
		t.set(result);
	}
}
 
开发者ID:imglib,项目名称:imglib2-tests,代码行数:12,代码来源:PerformanceBenchmark.java

示例5: invertImagePlusImage

import net.imglib2.type.numeric.integer.UnsignedByteType; //导入方法依赖的package包/类
/** Explicit ImagePlus version. */
private void invertImagePlusImage(final Img<UnsignedByteType> img) {
	final PlanarCursor<UnsignedByteType> c =
		(PlanarCursor<UnsignedByteType>) img.cursor();
	while (c.hasNext()) {
		final UnsignedByteType t = c.next();
		final int value = t.get();
		final int result = 255 - value;
		t.set(result);
	}
}
 
开发者ID:imglib,项目名称:imglib2-tests,代码行数:12,代码来源:PerformanceBenchmark.java

示例6: randomizeImage

import net.imglib2.type.numeric.integer.UnsignedByteType; //导入方法依赖的package包/类
/** Generic version. */
@SuppressWarnings("unused")
private void randomizeImage(final Img<UnsignedByteType> img) {
	for (final UnsignedByteType t : img) {
		final int value = t.get();
		final double result = expensiveOperation(value);
		t.set((int) result);
	}
}
 
开发者ID:imglib,项目名称:imglib2-tests,代码行数:10,代码来源:PerformanceBenchmark.java

示例7: randomizeArrayImage

import net.imglib2.type.numeric.integer.UnsignedByteType; //导入方法依赖的package包/类
/** Explicit array version. */
private void randomizeArrayImage(final Img<UnsignedByteType> img) {
	final ArrayCursor<UnsignedByteType> c =
		(ArrayCursor<UnsignedByteType>) img.cursor();
	while (c.hasNext()) {
		final UnsignedByteType t = c.next();
		final int value = t.get();
		final double result = expensiveOperation(value);
		t.set((int) result);
	}
}
 
开发者ID:imglib,项目名称:imglib2-tests,代码行数:12,代码来源:PerformanceBenchmark.java

示例8: randomizeCellImage

import net.imglib2.type.numeric.integer.UnsignedByteType; //导入方法依赖的package包/类
/** Explicit cell version. */
private void randomizeCellImage(final Img<UnsignedByteType> img) {
	@SuppressWarnings("unchecked")
	final CellCursor<UnsignedByteType, ?> c =
		(CellCursor<UnsignedByteType, ?>) img
			.cursor();
	while (c.hasNext()) {
		final UnsignedByteType t = c.next();
		final int value = t.get();
		final double result = expensiveOperation(value);
		t.set((int) result);
	}
}
 
开发者ID:imglib,项目名称:imglib2-tests,代码行数:14,代码来源:PerformanceBenchmark.java

示例9: randomizePlanarImage

import net.imglib2.type.numeric.integer.UnsignedByteType; //导入方法依赖的package包/类
/** Explicit planar version. */
private void randomizePlanarImage(final Img<UnsignedByteType> img) {
	final PlanarCursor<UnsignedByteType> c =
		(PlanarCursor<UnsignedByteType>) img.cursor();
	while (c.hasNext()) {
		final UnsignedByteType t = c.next();
		final int value = t.get();
		final double result = expensiveOperation(value);
		t.set((int) result);
	}
}
 
开发者ID:imglib,项目名称:imglib2-tests,代码行数:12,代码来源:PerformanceBenchmark.java

示例10: randomizeImagePlusImage

import net.imglib2.type.numeric.integer.UnsignedByteType; //导入方法依赖的package包/类
/** Explicit ImagePlus version. */
private void randomizeImagePlusImage(final Img<UnsignedByteType> img) {
	final PlanarCursor<UnsignedByteType> c =
		(PlanarCursor<UnsignedByteType>) img.cursor();
	while (c.hasNext()) {
		final UnsignedByteType t = c.next();
		final int value = t.get();
		final double result = expensiveOperation(value);
		t.set((int) result);
	}
}
 
开发者ID:imglib,项目名称:imglib2-tests,代码行数:12,代码来源:PerformanceBenchmark.java

示例11: invertImage

import net.imglib2.type.numeric.integer.UnsignedByteType; //导入方法依赖的package包/类
/** Generic version. */
@SuppressWarnings( "unused" )
private void invertImage(final Img<UnsignedByteType> img) {
	for (final UnsignedByteType t : img) {
		final int value = t.get();
		final int result = 255 - value;
		t.set(result);
	}
}
 
开发者ID:imglib,项目名称:imglib2-tests,代码行数:10,代码来源:ImglibBenchmark.java

示例12: invertArrayImage

import net.imglib2.type.numeric.integer.UnsignedByteType; //导入方法依赖的package包/类
/** Explicit array version. */
private void invertArrayImage(final ArrayImg<UnsignedByteType, ByteArray> img) {
	final ArrayCursor<UnsignedByteType> c = img.cursor();
	while ( c.hasNext() ) {
		final UnsignedByteType t = c.next();
		final int value = t.get();
		final int result = 255 - value;
		t.set(result);
	}
}
 
开发者ID:imglib,项目名称:imglib2-tests,代码行数:11,代码来源:ImglibBenchmark.java

示例13: randomizeImagePlusImage

import net.imglib2.type.numeric.integer.UnsignedByteType; //导入方法依赖的package包/类
/** Explicit ImagePlus version. */
private void randomizeImagePlusImage(final ByteImagePlus<UnsignedByteType> img) {
	final PlanarCursor<UnsignedByteType> c = img.cursor();
	while ( c.hasNext() ) {
		final UnsignedByteType t = c.next();
		final int value = t.get();
		final double result = expensiveOperation(value);
		t.set((int) result);
	}
}
 
开发者ID:imglib,项目名称:imglib2-tests,代码行数:11,代码来源:ImglibBenchmark.java

示例14: randomizeListImage

import net.imglib2.type.numeric.integer.UnsignedByteType; //导入方法依赖的package包/类
/** Explicit list version. */
private void randomizeListImage(final ListImg<UnsignedByteType> img) {
	final ListCursor<UnsignedByteType> c = img.cursor();
	while ( c.hasNext() ) {
		final UnsignedByteType t = c.next();
		final int value = t.get();
		final double result = expensiveOperation(value);
		t.set((int) result);
	}
}
 
开发者ID:imglib,项目名称:imglib2-tests,代码行数:11,代码来源:ImglibBenchmark.java

示例15: invertImagePlusImage

import net.imglib2.type.numeric.integer.UnsignedByteType; //导入方法依赖的package包/类
/** Explicit ImagePlus version. */
private void invertImagePlusImage(final ByteImagePlus<UnsignedByteType> img) {
	final PlanarCursor<UnsignedByteType> c = img.cursor();
	while ( c.hasNext() ) {
		final UnsignedByteType t = c.next();
		final int value = t.get();
		final int result = 255 - value;
		t.set(result);
	}
}
 
开发者ID:imglib,项目名称:imglib2-tests,代码行数:11,代码来源:ImglibBenchmark.java


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