-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d79a90
commit 4d7b86f
Showing
11 changed files
with
250 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Affine Transformations | ||
====================== | ||
|
||
.. automodule:: pycudadecon | ||
:members: affineGPU, deskewGPU, rotateGPU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,22 @@ | ||
deconvolution functions | ||
======================= | ||
Deconvolution | ||
============= | ||
|
||
The primary function for performing deconvolution is :func:`pycudadecon.decon`. | ||
This convenience function is capable of receiving a variety of input types (filenames, directory names, numpy arrays, or a list of any of those) and will handle setting up and breaking down the FFT plan on the GPU for all files being deconvolved. Keywords arguments will be passed internally to the :class:`pycudadecon.RLContext` context manager or the :func:`pycudadecon.makeotf` :func:`pycudadecon.rl_decon` functions. | ||
|
||
The setup and breakdown for the GPU-deconvolution can also be performed manually: | ||
1. call :func:`pycudadecon.rl_init` with the shape of the raw data and path to OTF file | ||
2. perform deconvolution(s) with :func:`pycudadecon.rl_decon` | ||
3. cleanup with :func:`pycudadecon.rl_cleanup` | ||
|
||
As a convenience, the :class:`pycudadecon.RLContext` context manager will perform the setup and breakdown automatically: | ||
|
||
.. code-block:: python | ||
data = tiffile.imread('some_file.tif') | ||
otf = 'path_to_otf.tif' | ||
with RLContext(data.shape, otf) as ctx: | ||
result = rl_decon(data, output_shape=ctx.out_shape) | ||
.. automodule:: pycudadecon | ||
:members: decon, TemporaryOTF | ||
:members: decon, rl_init, rl_decon, rl_cleanup, RLContext, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Creating Optical Transfer Functions | ||
=================================== | ||
|
||
These are functions for converting a 3D point spread function (PSF) volume into a radially averaged 2D complex Optical Transfer Function (OTF) that can be used for deconvolution. You can either write the OTF to file, for later use, using the :func:`pycudadecon.makeotf` function, or use the :class:`pycudadecon.TemporaryOTF` context manager to create and delete a temporary OTF from a 3D PSF input. | ||
|
||
.. automodule:: pycudadecon | ||
:members: makeotf, TemporaryOTF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
from .version import __version__ | ||
from .deconvolution import decon, TemporaryOTF | ||
|
||
from .deconvolution import decon | ||
from .otf import makeotf, TemporaryOTF | ||
from .libcudawrapper import RLContext, rl_decon, rl_init, rl_cleanup | ||
from .affine import affineGPU, deskewGPU, rotateGPU | ||
|
||
__all__ = (decon, TemporaryOTF, RLContext, rl_decon, rl_init, rl_cleanup, | ||
affineGPU, deskewGPU, rotateGPU) | ||
affineGPU, deskewGPU, rotateGPU, makeotf, TemporaryOTF) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.