Skip to content

Allows an AbstractArray, to look like an AbstractArray with one more dimension and the tiles are represented along this dimension.

License

Notifications You must be signed in to change notification settings

bionanoimaging/TiledViews.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TiledViews.jl

codecov .github/workflows/ci.yml

This package allows to view an N-dimensional array as an 2N-dimensional TiledView being separated in overlapping tiles. The tiled view has read and write access. Via the TiledWindowView it is possible to imprint a weight-window onto the tiled view. By default the window is chosen such that it sums up to one except in places very close to the border, where an insufficient number of contributions are generated. However this can effect can easily be accounted for, since it optionally returns an overall weight distribution.

Example:

julia> a = TiledView(reshape(1:49,(7,7)), (4, 4),(1, 1));

julia> size(a)
(4, 4, 3, 3)

The toolbox also offers support for iterators on the tiles via the functions eachtile(), eachtilenumber(), and eachtilerelpos(). A very convenient way of processing all tiles with a user-supplied function and fusing the images automatically via window-based weighting is using the function tiled_processing().

Installation

Type ]in the REPL to get to the package manager and install it:

julia> ] add TiledViews

About

Allows an AbstractArray, to look like an AbstractArray with one more dimension and the tiles are represented along this dimension.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages