plenoptomos.unsupported package
Submodules
plenoptomos.unsupported.geometry module
Created on Thu Sep 13 18:07:48 2018
@author: Nicola VIGANÒ, Computational Imaging group, CWI, The Netherlands, and ESRF - The European Synchrotron, Grenoble, France
- class plenoptomos.unsupported.geometry.GeometryTransformation(t=array([[1., 0., 0.], [0., 1., 0.], [0., 0., 1.]], dtype=float32), s=array([0., 0., 0.], dtype=float32))[source]
Bases:
object
Geometry transformation class. It allows to manipulate position and direction vectors.
- apply_direction(vec)[source]
Implements application of the transformation to a direction vector.
- Parameters
vec (numpy.array_like) – Direction vector
- Returns
Result of the transformation
- Return type
numpy.array_like
- apply_position(vec)[source]
Implements application of the transformation to a position vector.
- Parameters
vec (numpy.array_like) – Position vector
- Returns
Result of the transformation
- Return type
numpy.array_like
- static get_axis_angle(vec_ref, vec_dir)[source]
Computes the rotation axis and angle of the rotation that transformed vec_ref into vec_dir.
- Parameters
vec_ref (numpy.array_like) – The initial vector.
vec_dir (numpy.array_like) – The result vector.
- Returns
The normalized rotation axis and angle.
- Return type
tuple(numpy.array_like, float)
- static get_rotation_components(rot_axis)[source]
Computes the rotation components for the given rotation axis.
- Parameters
rot_axis (<3, > numpy.array_like) – The rotation axis.
- Returns
The rotation components
- Return type
tuple(<3, 3> numpy.array_like, <3, 3> numpy.array_like, <3, 3> numpy.array_like)
- static get_rotation_matrix(rotcomp, angle)[source]
Computes the rotation matrix for the given rotation components and angle.
- Parameters
rotcomp (tuple(<3, 3> numpy.array_like, <3, 3> numpy.array_like, <3, 3> numpy.array_like)) – The rotation components, computed with get_rotation_components
angle (float) – The rotation angle
- Returns
The rotation matrix
- Return type
<3, 3> numpy.array_like
- static get_rototranslation(axis, angles, axis_origin=None)[source]
Create a roto-translation transformation.
- Parameters
axis (numpy.array_like) – Rotation axis
angles (float) – rotation angle
axis_origin (numpy.array_like, optional. Default: None) – Origin of the rotation axis
- Returns
The roto-translation transformation
- Return type
GeometryTransformation
- static get_scale(scale)[source]
Creates a scaling transformation.
- Parameters
scale (float) – The scaling factor.
- Returns
The scaling transformation
- Return type
GeometryTransformation
- static get_transform(t_type, *args, **keywords)[source]
Creates a transformation.
- Parameters
t_type (string) – Type of transformation. Options are: ‘rot’ | ‘tr’
- Returns
The chosen transformation
- Return type
GeometryTransofrm
plenoptomos.unsupported.reconstruction module
Created on Wed Mar 6 12:20:48 2019
@author: Nicola VIGANÒ, Computational Imaging group, CWI, The Netherlands, and ESRF - The European Synchrotron, Grenoble, France
- class plenoptomos.unsupported.reconstruction.Reconstruct3D(vol_geom, proj_geom, super_sampling=1, gpu_index=None)[source]
Bases:
object
- plenoptomos.unsupported.reconstruction.correct_projs(projs, flats, darks, crop=None, pad=None)[source]
plenoptomos.unsupported.testing module
Created on Mon Jun 18 16:51:41 2018
@author: Nicola VIGANÒ, Computational Imaging group, CWI, The Netherlands, and ESRF - The European Synchrotron, Grenoble, France
- class plenoptomos.unsupported.testing.Tester(test_name, lfs, test_params={}, rec_params={}, test_conds={}, is_rgb=False, result_dir=None, save=True)[source]
Bases:
object
- default_conditions = {'down_sampling_st': 1, 'down_sampling_uv': 1, 'extras': ''}
- default_rec_params = {'border': 8, 'data_term': 'l2', 'fourier_method': 'slice', 'iterations': 50, 'psf': None, 'up_sampling_function': 'flat', 'up_sampling_st': 1}
- default_test_params = {'algo': [], 'beam': [], 'domain': [], 'lambda_reg': [], 'zs': []}
plenoptomos.unsupported.utils_img module
Created on Fri Dec 8 15:24:12 2017
@author: Nicola VIGANÒ, Computational Imaging group, CWI, The Netherlands, and ESRF - The European Synchrotron, Grenoble, France
- class plenoptomos.unsupported.utils_img.MovieCreator(out_dir, lf, z0s, focal_stack, dmap, all_focus, use_overlay=True)[source]
Bases:
object
Module contents
Unsupported utility tools.
@author: Nicola VIGANÒ, Computational Imaging group, CWI, The Netherlands, and ESRF - The European Synchrotron, Grenoble, France
Created on Mon Jun 8 15:28:00 2020