Skip to content, Skip to search

Changes

ImgLib2 Examples

8 bytes added, 07:27, 19 October 2012
Example 2c - Generic copying of image data
As the ''source'' only needs to be '''RandomAccessible''', it can be basically anything that can return a value at a certain location. This can be as simple as an '''Img''', but also interpolated sparse data, a function, a ray-tracer, a '''View''', ....
As the ''target'' needs to be an '''IterableInterval''', it is more confined. This, however does not necessarily mean that it can only be an '''Img''' or a '''View''' that is not infinite. It simply means it has to be something that is iterable and not infinite, which for example also applies to sparse data (e.g. a list of locations and their values).
'''[https://github.com/imagej/imglib/blob/master/imglib2/examples/src/main/java/Example2c.java Example2c.java]'''
12
edits