- java.lang.Object
-
- org.scijava.ops.image.create.Imgs
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Type<T>>
Img<T>adjustMinMax(Img<T> img, Object minMax)static <T extends Type<T>>
Img<T>create(ImgFactory<T> factory, Dimensions dims, T type)Creates anImg.
-
-
-
Method Detail
-
create
public static <T extends Type<T>> Img<T> create(ImgFactory<T> factory, Dimensions dims, T type)
Creates anImg.- Parameters:
factory- TheImgFactoryto use to create the image.dims- The dimensional bounds of the newly created image. If the given bounds are anInterval, the resultantImgwill have the same min/max as thatIntervalas well (seeadjustMinMax(net.imglib2.img.Img<T>, java.lang.Object)for details).type- The component type of the newly created image.- Returns:
- the newly created
Img
-
adjustMinMax
public static <T extends Type<T>> Img<T> adjustMinMax(Img<T> img, Object minMax)
- Parameters:
img- An image whose min/max bounds might need adjustment.minMax- AnIntervalwhose min/max bounds to use when adjusting the image. If the providedminMaxobject is not anInterval, no adjustment is performed.- Returns:
- A wrapped version of the input
Imgwith bounds adjusted to match the providedInterval, if any; or the input image itself if no adjustment was needed/possible.
-
-