-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(measure): Adds the height_profiles sub-module
Further to this adds the `topostats.measure.height_profiles` sub-module which for a given pair of feret coordinates... 1. Determines the orientation of of the feret co-ordinates relative to horizontal. 2. Rotates the image so that the feret is horizontal. 3. Recalculates the co-ordinates of the feret after rotation. 4. Extracts the height profile along the feret. Includes a function in `topostats.plotting.plot_height_profiles()` which produces a line-plot of multiple height profiles. ToDo... Still a fair few steps to integrate this into the processing. + Add configuration options to `topostats/default_config.yaml` of whether to calculate `height_profiles`. + Update `GrainStats()` to calculate the height profile for the image being processed if required. + Return the `height_profile` (1-D Numpy array). + Collect `height_profile` acrss grains into a dictionary (may require current code as written to be adapted to work with dictionaries, currently works with lists in `plot_height_profiles()`). + Add functionality to write the profiles to JSON for subsequent use/plotting (e.g. customising style/axis labels/etc. of plot) Related : #748 #755
- Loading branch information
Showing
11 changed files
with
1,633 additions
and
12 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
Oops, something went wrong.