public class ImgUtil extends Object
Constructor and Description |
---|
ImgUtil() |
Modifier and Type | Method and Description |
---|---|
static <T extends BooleanType<T>> |
copy(boolean[] src,
int offset,
int[] stride,
Img<T> dest) |
static <T extends RealType<T>> |
copy(double[] src,
int offset,
int[] stride,
Img<T> dest)
Copy a flat array of doubles into an Img.
|
static <T extends RealType<T>> |
copy(float[] src,
int offset,
int[] stride,
Img<T> dest) |
static <T extends BooleanType<T>> |
copy(Img<T> src,
boolean[] dest,
int offset,
int[] stride) |
static <T extends RealType<T>> |
copy(Img<T> src,
double[] dest,
int offset,
int[] stride)
Copy the contents of an Img to a double array
|
static <T extends RealType<T>> |
copy(Img<T> src,
float[] dest,
int offset,
int[] stride) |
static <T extends IntegerType<T>> |
copy(Img<T> src,
int[] dest,
int offset,
int[] stride) |
static <T extends IntegerType<T>> |
copy(Img<T> src,
long[] dest,
int offset,
int[] stride) |
static <T extends IntegerType<T>> |
copy(Img<T> src,
short[] dest,
int offset,
int[] stride) |
static <T extends IntegerType<T>> |
copy(int[] src,
int offset,
int[] stride,
Img<T> dest) |
static <T extends IntegerType<T>> |
copy(long[] src,
int offset,
int[] stride,
Img<T> dest) |
static <T extends Type<T>> |
copy(RandomAccessibleInterval<T> source,
RandomAccessibleInterval<T> destination)
Copy one image into another, multi-threaded.
|
public static <T extends RealType<T>> void copy(double[] src, int offset, int[] stride, Img<T> dest)
T
- - the type of the destination image datasrc
- - the source of the data. This array must be large enough to
encompass all addressed elements.offset
- - the offset to the element at the originstride
- - for each dimension, the multiplier in that dimension to
address an axis element in that dimensiondest
- - the destination for the copypublic static <T extends RealType<T>> void copy(float[] src, int offset, int[] stride, Img<T> dest)
copy(double[], int, int[], Img)
public static <T extends IntegerType<T>> void copy(long[] src, int offset, int[] stride, Img<T> dest)
copy(double[], int, int[], Img)
public static <T extends IntegerType<T>> void copy(int[] src, int offset, int[] stride, Img<T> dest)
copy(double[], int, int[], Img)
public static <T extends BooleanType<T>> void copy(boolean[] src, int offset, int[] stride, Img<T> dest)
copy(double[], int, int[], Img)
public static <T extends RealType<T>> void copy(Img<T> src, double[] dest, int offset, int[] stride)
T
- the Img's typesrc
- copy data from this Imgdest
- the destination arrayoffset
- the offset to the origin element in the destination arraystride
- the stride into the destination array for each dimensionfor a more comprehensive
description of addressing
public static <T extends RealType<T>> void copy(Img<T> src, float[] dest, int offset, int[] stride)
copy(Img, double[], int, int[])
public static <T extends IntegerType<T>> void copy(Img<T> src, long[] dest, int offset, int[] stride)
copy(Img, double[], int, int[])
public static <T extends IntegerType<T>> void copy(Img<T> src, int[] dest, int offset, int[] stride)
copy(Img, double[], int, int[])
public static <T extends IntegerType<T>> void copy(Img<T> src, short[] dest, int offset, int[] stride)
copy(Img, double[], int, int[])
public static <T extends BooleanType<T>> void copy(Img<T> src, boolean[] dest, int offset, int[] stride)
copy(Img, double[], int, int[])
public static <T extends Type<T>> void copy(RandomAccessibleInterval<T> source, RandomAccessibleInterval<T> destination)
Copyright © 2015–2022 ImgLib2. All rights reserved.