public class CropImgLoader extends Object implements BasicImgLoader
ImgLoader
provides views and transformations into a cropped
region of a data-set (provided by list of Sources
).Modifier and Type | Class and Description |
---|---|
class |
CropImgLoader.SetupImgLoader<T> |
Constructor and Description |
---|
CropImgLoader(ArrayList<Source<?>> sources,
AffineTransform3D globalToCropTransform,
RealInterval cropInterval,
Map<Integer,Integer> timepointIdToTimepointIndex,
Map<Integer,Integer> setupIdToSourceIndex) |
Modifier and Type | Method and Description |
---|---|
static <T> Pair<RandomAccessibleInterval<T>,AffineTransform3D> |
crop(AffineTransform3D globalToCropTransform,
RealInterval interval,
Source<T> source,
int timepoint)
Crop a region from a
Source . |
AffineTransform3D |
getCroppedTransform(ViewId view) |
CropImgLoader.SetupImgLoader<?> |
getSetupImgLoader(int setupId)
Get the
BasicSetupImgLoader for the specified view setup. |
public CropImgLoader(ArrayList<Source<?>> sources, AffineTransform3D globalToCropTransform, RealInterval cropInterval, Map<Integer,Integer> timepointIdToTimepointIndex, Map<Integer,Integer> setupIdToSourceIndex)
public AffineTransform3D getCroppedTransform(ViewId view)
public CropImgLoader.SetupImgLoader<?> getSetupImgLoader(int setupId)
BasicImgLoader
BasicSetupImgLoader
for the specified view setup.getSetupImgLoader
in interface BasicImgLoader
setupId
- view setup for which to get the BasicSetupImgLoader
.BasicSetupImgLoader
for the specified view setup.public static <T> Pair<RandomAccessibleInterval<T>,AffineTransform3D> crop(AffineTransform3D globalToCropTransform, RealInterval interval, Source<T> source, int timepoint)
Source
.globalToCropTransform
- transform from global into crop-local coordinates.interval
- the interval (in crop-local space) to crop.source
- which source to crop from.timepoint
- which timepoint to crop from.Copyright © 2015–2021 Fiji. All rights reserved.