Open
Conversation
hrobarts
commented
Feb 13, 2026
Contributor
Author
hrobarts
left a comment
There was a problem hiding this comment.
Comments from code review meeting
| parameter_tolerance=(0.01, 0.01), coarse_binning=None, final_binning = None, | ||
| angle_binning = None, reduced_volume = None): | ||
| """ | ||
| Initialize a LaminographyCorrector processor to optimize tilt and center-of-rotation for |
Contributor
Author
There was a problem hiding this comment.
Suggested change
| Initialize a LaminographyCorrector processor to optimize tilt and center-of-rotation for | |
| Initialize a LaminographyCorrector processor to fit your geometry to find tilt and center-of-rotation for |
|
|
||
| Parameters | ||
| ---------- | ||
| initial_parameters : tuple of float, optional |
Contributor
Author
There was a problem hiding this comment.
Maybe get this from geometry instead
| Initial guess for the geometry parameters (tilt_angle_deg, center_of_rotation_pix). | ||
| Defaults to (0.0, 0.0). | ||
|
|
||
| parameter_bounds : list of tuple of float, optional |
| Bounds for the parameters [(tilt_min, tilt_max), (CoR_min, CoR_max)]. | ||
| Defaults to [(-10, 10), (-20, 20)]. | ||
|
|
||
| parameter_tolerance : tuple of float, optional |
| Final binning factor applied for fine optimisation. | ||
| If None, no binning is applied in the fine optimisation step. | ||
|
|
||
| angle_binning : float, optional |
| Subsampling factor for the angle dimension during optimisation. | ||
| If None, automatically determined based on input dataset. | ||
|
|
||
| reduced_volume : ImageGeometry, optional |
Contributor
Author
There was a problem hiding this comment.
Suggested change
| reduced_volume : ImageGeometry, optional | |
| image_geometry: ImageGeometry, optional |
| If None, automatically determined based on input dataset. | ||
|
|
||
| reduced_volume : ImageGeometry, optional | ||
| A reduced-dimension volume to be used for optimisation, e.g. obtained using |
Contributor
Author
There was a problem hiding this comment.
Suggested change
| A reduced-dimension volume to be used for optimisation, e.g. obtained using | |
| Pass a reduced-dimension ImageGeometry to speed up the fit, e.g. obtained using |
| losses = [t[2] for t in eval['evaluations']] | ||
|
|
||
| ax = axs[i] | ||
| scatter = ax.scatter(tilts, cors, c=losses, cmap='viridis', s=100, edgecolors='k') |
Contributor
Author
There was a problem hiding this comment.
Suggested change
| scatter = ax.scatter(tilts, cors, c=losses, cmap='viridis', s=100, edgecolors='k') | |
| scatter = ax.scatter(tilts, cors, c=losses, cmap='viridis_r', s=100, edgecolors='k') |
| # Test with 180 degree tilt | ||
| ag_updated_180 = processor.update_geometry(ag, 180.0, 0.0) | ||
| self.assertEqual(ag_updated_180.config.panel.num_pixels[0], original_panel[0]) | ||
|
|
Contributor
Author
There was a problem hiding this comment.
Add a tilted dataset from the cil data simulated spheres data forward projected
|
|
||
|
|
||
|
|
||
| class LaminographyCorrector(Processor): |
Contributor
Author
There was a problem hiding this comment.
Suggested change
| class LaminographyCorrector(Processor): | |
| class LaminographyGeometryCorrector(Processor): |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Add automatic laminography alignment tool.
Projection matching method to optimise laminography reconstruction by searching tilt and centre of rotation offset
coarse_binningandfinal_binningangle_binningparameter_boundsstarting with an initial guessinitial_parameters.reduced_volumeTesting you performed
New demo script: TomographicImaging/CIL-Demos#280
Related issues/links
Checklist