Package net.imglib2
Interface Sampler<T>
- All Known Subinterfaces:
Cursor<T>,OutOfBounds<T>,ProjectedSampler<T>,RandomAccess<T>,RealCursor<T>,RealOutOfBounds<T>,RealRandomAccess<T>
- All Known Implementing Classes:
AbstractArrayCursor,AbstractArrayLocalizingCursor,AbstractConvertedCursor,AbstractConvertedRandomAccess,AbstractConvertedRealRandomAccess,AbstractCursor,AbstractCursorInt,AbstractLocalizingCursor,AbstractLocalizingCursorInt,AbstractLongListImg.LongListCursor,AbstractLongListImg.LongListLocalizingCursor,AbstractLongListImg.LongListRandomAccess,AbstractOutOfBoundsMirror,AbstractOutOfBoundsValue,ArrayCursor,ArrayLocalizingCursor,ArrayLocalizingSubIntervalCursor,ArrayRandomAccess,ArraySubIntervalCursor,CellCursor,CellLocalizingCursor,CellRandomAccess,CompositeView.CompositeRandomAccess,ConvertedCursor,ConvertedRandomAccess,ConvertedRealRandomAccess,FloorInterpolator,FullSourceMapMixedRandomAccess,FullSourceMapSlicingRandomAccess,HyperSlice.HyperSliceRandomAccess,HyperSlicesView.HyperSlicesViewRandomAccess,IntervalSampler,InverseDistanceWeightingInterpolator,KDTree.KDTreeCursor,KDTree.SamplerNode,KDTree.ValueNode,KDTreeNode,LanczosInterpolator,ListCursor,ListLocalizingCursor,ListRandomAccess,MixedRandomAccess,NearestNeighborInterpolator,NearestNeighborSearchInterpolator,NLinearInterpolator,NLinearInterpolator1D,NLinearInterpolator2D,NLinearInterpolator3D,NLinearInterpolatorARGB,NtreeCursor,NtreeRandomAccess,OutOfBoundsBorder,OutOfBoundsConstantValue,OutOfBoundsMirrorDoubleBoundary,OutOfBoundsMirrorExpWindowing,OutOfBoundsMirrorSingleBoundary,OutOfBoundsPeriodic,OutOfBoundsRandomValue,PlanarCursor,PlanarCursor1D,PlanarCursor2D,PlanarLocalizingCursor,PlanarLocalizingCursor1D,PlanarLocalizingCursor2D,PlanarPlaneSubsetCursor,PlanarPlaneSubsetLocalizingCursor,PlanarRandomAccess,PlanarRandomAccess1D,PointSampleList.PointSampleListCursor,RandomAccessibleIntervalCursor,RandomAccessibleOnRealRandomAccessible.RandomAccessOnRealRandomAccessible,RandomAccessiblePair.RandomAccess,RealOutOfBoundsRealRandomAccess,RealPointSampleList.RealPointSampleListCursor,SelectiveSampler,SlicingCursor,SlicingRandomAccess,StackView.DefaultRA,StackView.MoveAllSlicesRA,SubsampleView.SubsampleRandomAccess,TransformRandomAccess,TranslationRandomAccess,WriteConvertedCursor,WriteConvertedRandomAccess
public interface Sampler<T>
The Sampler interface provides access to a value whose type is
specified by the generic parameter T. This T may point to an actual
Object as stored in a Collection, a proxy Object that
allows reading and writing pixel data of an image (e.g. all
NativeTypes), or a proxy Object whose content is
generated otherwise and may only be readable (e.g. ShapeList2D).
- Author:
- Tobias Pietzsch, Stephan Preibisch, Stephan Saalfeld
-
Method Summary
-
Method Details
-
get
T get()Access the actual T instance providing access to a pixel, sub-pixel or integral region value theSamplerpoints at. -
copy
- Returns:
- - A new
Samplerin the same state accessing the same values. It does NOT copy T, just the state of theSampler. Otherwise use T.copy() if available. Sampler.copy().get() == Sampler.get(), i.e. both hold the same value, not necessarily the same instance (this is the case for anArrayCursorfor example)
-