Skip to content
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

Merged
merged 5 commits into from
Apr 27, 2015
Merged

More tests #3

merged 5 commits into from
Apr 27, 2015

Conversation

sameera2004
Copy link

No description provided.

@@ -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,
Copy link
Owner

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):
Copy link
Author

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

danielballan added a commit that referenced this pull request Apr 27, 2015
@danielballan danielballan merged commit f5417de into danielballan:roi-edits Apr 27, 2015
@danielballan
Copy link
Owner

Great!

danielballan pushed a commit that referenced this pull request Apr 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants