ImgLib2: Arbitrary ROIs out-of-bounds strategies

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ImgLib2: Arbitrary ROIs out-of-bounds strategies

Olivier Burri
Hello!

I wanted to try out playing with ImgLib2 to implement something similar to the Confined Displacement Algorithm (CDA) http://www.ncbi.nlm.nih.gov/pubmed/20701655
Which works by defining a mirror-type out of bounds condition or ROIs of arbitrary sizes. Is it possible to set this up using ImgLib2?

Thank you for your time!

Oli
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: ImgLib2: Arbitrary ROIs out-of-bounds strategies

Stephan Preibisch
Hi Oliver,

out of bounds strategies are supported by ImgLib2 (http://fiji.sc/wiki/index.php/ImgLib2_Examples#Example_5_-_Out_of_bounds). Until now we support:

- mirroring (single/double border pixel)
- constant value
- periodic
- random
- extend last pixel

The example page shows how to use them. OutOfBounds basically transform a RandomAccessibleInterval (e.g. an Img), which is defined in only a certain interval (e.g. 0,0 -> 1024, 1024) into an infinite RandomAccessible that is able to return values at any location.

I did not really understand what kind of ROIs are required for which purpose, but the "Views" (http://fiji.sc/wiki/index.php/ImgLib2_Examples#Example_1d_-_Displaying_images_partly_using_Views) offer an easy way to represent parts of the data. Maybe this is what you need.

Hope this helps,
Stephan

On Jul 25, 2012, at 2:52 , Burri Olivier wrote:

> Hello!
>
> I wanted to try out playing with ImgLib2 to implement something similar to the Confined Displacement Algorithm (CDA) http://www.ncbi.nlm.nih.gov/pubmed/20701655
> Which works by defining a mirror-type out of bounds condition or ROIs of arbitrary sizes. Is it possible to set this up using ImgLib2?
>
> Thank you for your time!
>
> Oli
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html