Skip to content

Commit

Permalink
Clarify documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-mueller committed Jul 19, 2024
1 parent 29eb361 commit 449e60f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The refinement of the first selection of points consists of two principal steps

In each iteration, the following steps are done:
* Resampling: The cartesian coordinates of the points are interpolated according to latitude and longitude. The resampled points are drawn according to a fibonacci-scheme. You can control the number of points that are sampled with the following parameters:
* `Point resampling length` field: The larger this value is, the more scarce the points will be on the surface.
* `Point resampling length` field: The larger this value is, the more scarce the points will be on the surface. Note that the `Point resampling length` is given in pixels. The size of objects in pixels may change although the phyiscal size of the object is the same. Hence, the results for the same objects may be different for the same parameters if the image is sampled to different voxel sizes.
* `Number of iterations`: The larger this value is, the more times the entire procedure in this step is repeated. The more iterations you perform, the longer the processing will take.
* Trace-refinement: Normals are cast outwards from the sample point and the intesity in the rescaled image along the vectors is mmeasured. The surface point is then moved along this line to best fit the intensity distribution. For more details, see [this notebook](glossary:surface_tracing:code). In short, the parameters control:
* `Fluorescence type`: Whether the droplet is labelled on the surface or in the interior.
Expand Down
2 changes: 1 addition & 1 deletion docs/04_FAQ/settings_reconstruction_bulk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ n_smoothing_iterations: 15
n_tracing_iterations: 1
outlier_tolerance: 1.5
remove_outliers: true
resampling_length: 5.0
resampling_length: 5.0 # resampling_length is given in pixels
sampling_distance: 1.0
smoothing_sigma: 1.0
target_voxelsize: 0.2868
Expand Down
2 changes: 1 addition & 1 deletion docs/04_FAQ/settings_reconstruction_surface.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ n_smoothing_iterations: 15
n_tracing_iterations: 1
outlier_tolerance: 1.5
remove_outliers: true
resampling_length: 5.0
resampling_length: 5.0 # resampling_length is given in pixels
sampling_distance: 1.0
smoothing_sigma: 1.0
target_voxelsize: 0.2868
Expand Down
5 changes: 3 additions & 2 deletions src/napari_stress/_reconstruction/toolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def reconstruct_droplet(
n_smoothing_iterations: int = 10,
n_points: int = 256,
n_tracing_iterations: int = 1,
resampling_length: float = 5,
resampling_length: float = 5, # resampling_length is given in pixels
fit_type: str = "fancy",
edge_type: str = "interior",
trace_length: float = 10,
Expand Down Expand Up @@ -235,9 +235,10 @@ def reconstruct_droplet(
Number of points to be sampled. The default is 256.
n_tracing_iterations : int, optional
Number of tracing iterations. The default is 1.
resampling_length : float, optional
resampling_length: float, optional
Distance between sampled point locations. The default is 5.
Choose smaller values for more accurate reconstruction.
Note that the resampling_length is given in pixels.
fit_type : str, optional
Type of fit to be used. The default is "fancy". Can also be "quick".
edge_type : str, optional
Expand Down

0 comments on commit 449e60f

Please sign in to comment.