Skip to content, Skip to search


ImgLib2 Examples

37 bytes added, 10:34, 18 October 2012
Example 1d - Displaying images partly using Views
By using the concept of '''Views''' it is possible to display only parts of the image, display a rotated view, and many more cool things. Note that you can also concatenate them. '''Views''' are much more powerful than shown in this example, they will be increasingly used throughout the examples.
A '''View''' almost behaves are like similar to an '''Img''', and in fact they share important concepts. Both are '''RandomAccessible''' and '''Views''' that are not infinite . Also they are also both an '''Interval''' (i.e. have a defined size) and can therefore be made '''Iterable''' (see example 2c). In ImgLib2, all algorithms are implemented for these abstract concepts like '''RandomAccessible''', '''Iterable''' or '''Interval'''. This enables us, like in this exampleas can be seen below, to simply display a '''View''' the exact same way as we would also display an '''Img'''.