Modifier and Type | Method and Description |
---|---|
static <T extends Type<T>> |
adjustMinMax(Img<T> img,
Object minMax)
|
static <T extends Type<T>> |
create(ImgFactory<T> factory,
Dimensions dims,
T type)
Creates an
Img . |
public static <T extends Type<T>> Img<T> create(ImgFactory<T> factory, Dimensions dims, T type)
Img
.factory
- The ImgFactory
to use to create the image.dims
- The dimensional bounds of the newly created image. If the given
bounds are an Interval
, the resultant Img
will
have the same min/max as that Interval
as well (see
adjustMinMax(net.imglib2.img.Img<T>, java.lang.Object)
for details).type
- The component type of the newly created image.Img
public static <T extends Type<T>> Img<T> adjustMinMax(Img<T> img, Object minMax)
img
- An image whose min/max bounds might need adjustment.minMax
- An Interval
whose min/max bounds to use when
adjusting the image. If the provided minMax
object is not
an Interval
, no adjustment is performed.Img
with bounds adjusted to
match the provided Interval
, if any; or the input image
itself if no adjustment was needed/possible.Copyright © 2014–2022 ImageJ. All rights reserved.