-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add sinogram generation, some refactoring, add basic functionalities
- Loading branch information
1 parent
b7fa977
commit 8b2def1
Showing
11 changed files
with
104 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from ._version import version as __version__ # noqa: F401 | ||
|
||
from . import phantoms # noqa: F401 | ||
from .sinogram import Sinogram # noqa: F401 |
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
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
from .rytov import Rytov | ||
from .pp_rytov import Rytov | ||
from .pp_projection import Projection | ||
|
||
available = [Rytov] | ||
dictionary = { | ||
"projection": Projection, | ||
"rytov": Rytov, | ||
} | ||
|
||
dictionary = {"rytov": Rytov} | ||
available = sorted(dictionary.keys()) |
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,19 @@ | ||
import qpsphere | ||
|
||
from .base_propagator import BasePropagator | ||
|
||
|
||
class Projection(BasePropagator): | ||
"""Projection approximation""" | ||
|
||
def propagate_sphere(self, sphere): | ||
center = self.center + sphere.points[0]/self.pixel_size | ||
qpi = qpsphere.models.projection(radius=sphere.radius, | ||
sphere_index=sphere.object_index, | ||
medium_index=sphere.medium_index, | ||
wavelength=self.wavelength, | ||
pixel_size=self.pixel_size, | ||
grid_size=self.grid_size, | ||
center=center[:2], | ||
) | ||
return qpi |
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