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

BinaryTissueClassifier segfaults on corner case #634

MrBago opened this Issue Apr 23, 2015 · 1 comment


None yet
2 participants
Copy link

MrBago commented Apr 23, 2015

When you try and lookup the edge (or corner) of the image, BinaryTissueClassifier causes a segfualt on my machine, code bellow:

import numpy as np
from dipy.tracking.local import BinaryTissueClassifier

edge = np.array([100., 100., 100.])
mask = np.zeros(edge)
tc = BinaryTissueClassifier(mask)

print("checking point")
print("did not segfault")

This comment has been minimized.

Copy link

skoudoro commented Dec 7, 2018

I just checked this issue (as you can see below) and it seems to be fixed. So, for now, I'm closing this old issue.

Python 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 12:30:02) [MSC v.1900 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import numpy as np
In [2]: from dipy.tracking.local import BinaryTissueClassifier
In [3]: edge = np.array([100., 100., 100.])
In [4]: mask = np.zeros((1,1,3))
In [5]: tc = BinaryTissueClassifier(mask)
In [6]: tc.check_point(edge)
Out[6]: -1
In [7]:

@skoudoro skoudoro closed this Dec 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment