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

Singular Affine Matrix Error #4

Open
ryan-fritz opened this issue Sep 30, 2024 · 0 comments
Open

Singular Affine Matrix Error #4

ryan-fritz opened this issue Sep 30, 2024 · 0 comments

Comments

@ryan-fritz
Copy link

Hello,

I'm very excited to use this fastsam extension for 3dslicer. I recently have run into issues for T1w from OASIS1 dataset when i try to input include and exclude points on the volume I get this singular affine matrix error and no segmentation registers. Wondering if others have run into this in the past. Thanks!

matrixerror

Error.
Traceback (most recent call last):
File "<hidden_path>/fastsam.py", line 293, in onMarkupIncludePointPositionDefined
self.addPoint(caller, self.logic.include_coords)
File "<hidden_path>/fastsam.py", line 353, in addPoint
coords = np.round(np.linalg.inv(self.logic.affine) @ np.array(coords).T)
File "<hidden_path>/numpy/linalg/linalg.py", line 561, in inv
ainv = _umath_linalg.inv(a, signature=signature, extobj=extobj)
File "<hidden_path>/numpy/linalg/linalg.py", line 112, in _raise_linalgerror_singular
raise LinAlgError("Singular matrix")
numpy.linalg.LinAlgError: Singular matrix

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