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

Fix diff roi #267

Closed
wants to merge 6 commits into from
Closed

Fix diff roi #267

wants to merge 6 commits into from

Conversation

sameera2004
Copy link
Member

Fixed the functions in the diff_roi_choice.py after changes in the correlation.py

@sameera2004
Copy link
Member Author

@tacaswell I think I have to close the PR #248 Divide the circle : find the indices, number of pixels, pixel indices. I fixed this new PR, I fixed all the functions in this , the test are passing but there is a problem with the coverage,(missed 7 lines)

@danielballan
Copy link
Member

Suggested name changes:

detector_size, img_shape, etc. -> shape
roi_data -> roi_specs and remove num_rois, which we can infer from the length of roi_specs

@danielballan
Copy link
Member

Scikit-image has fast functions based on published CS literature for drawing rings: http://scikit-image.org/docs/dev/api/skimage.draw.html#skimage.draw.circle


return mesh.reshape(detector_size), roi_inds, num_pixels, pixel_list
return mesh.reshape(detector_size), roi_labels, indices
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only return the first bit, not the second two.

@danielballan danielballan mentioned this pull request Apr 23, 2015
@tacaswell
Copy link
Member

What is this PR?

@danielballan
Copy link
Member

Superceded by Sameera's #269, my #272, and a forthcoming PR that Sameera and I are pair-coding currently....

@sameera2004 sameera2004 deleted the fix_diff_roi branch June 25, 2015 17:38
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.

4 participants