-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More tests #3
More tests #3
Conversation
@@ -229,3 +231,87 @@ def ring_edges(inner_radius, width, spacing=0, num_rings=None): | |||
edges = np.cumsum(steps).reshape(-1, 2) | |||
|
|||
return edges | |||
|
|||
|
|||
def divide_pies(image_shape, radius, calibrated_center, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pie_slices(edges, slicing, center, shape, theta0=0)
where slicing
can be an integer (slicing=8
gives 8 equal-sized slices, like a pizza) or a list of angles in degrees like [0, 70, 190]
. In either case theta0
should be added to the resultant angles to provide an easy way to adjust the alignment.
To divide the rings into pies and removed the divide_cirecle functon
@@ -229,3 +231,96 @@ def ring_edges(inner_radius, width, spacing=0, num_rings=None): | |||
edges = np.cumsum(steps).reshape(-1, 2) | |||
|
|||
return edges | |||
|
|||
|
|||
def pie_slices(edges, slicing, center, shape, theta=0): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danielballan I added a pie_slices function and it draw the mask we required. I will add some tests to it
Great! |
No description provided.