Skip to content

Update draw.circle function #3

Description

@patoch01220

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions