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

Update draw.circle function #3

Open
patoch01220 opened this issue Nov 1, 2022 · 0 comments
Open

Update draw.circle function #3

patoch01220 opened this issue Nov 1, 2022 · 0 comments

Comments

@patoch01220
Copy link

patoch01220 commented Nov 1, 2022

Hello,
For my master thesis I have to use DeepSource so I just installed it and tried your first notebooks as example. I then when I run the first cell with the plots I obbtain the following error on the line d_horn = ds.horn_kernel(image,radius=15,step_height=2):

File ~/opt/anaconda3/lib/python3.9/site-packages/deepsource-0.1.0-py3.9.egg/deepsource/utils.py:176, in horn_kernel(y, radius, step_height)
    174 for r in range(1,radius):
    175     for i,j in np.argwhere(y==1):
--> 176             rr, cc = draw.circle(i, j, radius=r, shape=mag.shape)
    177             mag[rr, cc] += 1.*step_height/radius
    178 return mag

AttributeError: module 'skimage.draw' has no attribute 'circle'

Should I simply change in the source code the draw.circle function with draw.circle_perimeter function as it is done in the function 'Circlefew line aboves ? or by maybe the funcitondraw.disk`?

I tried it but I obtain different plots for the horn ones.

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

No branches or pull requests

1 participant