本文整理汇总了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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}