forked from vistalab/vistasoft
-
Notifications
You must be signed in to change notification settings - Fork 2
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 regarding expected behavior of diff when finding image size #3
Open
DanNBullock
wants to merge
501
commits into
brain-life:master
Choose a base branch
from
DanNBullock:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cleaned up the README.md and added Installation section
…y template of V1, V2, and V3
Added some helpful error messages
… to grab the FREESURFER_HOME or SUBJECTS_DIR when they are not set in the matlab environment; the shell is now launched interactively, so should always read the bash_profile
Fixed a minor bug in which a bash shell is launched non-interactively…
Reorganized the parameters and used inputParser for niftiAssignZeros.m
…s based. So, if you pass in thisFile rather than thisFile.nii.gz we check for thisFile.nii.gz. If it exists we read it. Otherwise we tell you that we couldn't find thisFile or thisFile.nii.gz.
….tck files0. Refactored fgRead.m using matlab fileparts to sort input.
… make a Pull request to VISTASOFT/MASTER
Read write tck
Add features for testing MATLAB2014b and later
2 changes to rmCoordsGet
Minor bugs in rmSearchFit that was preventing ovals from being fit
Original code expected one "counts:" field in a mrtrix .tck header. This is problematic when using the mrtrix command cat_tracks to combine .tcks, which appends an additional "counts:" field to the end of the .tck header. Change is to just grab the max index and passing that through.
Update dtiImportFibersMrtrix.m
use of false() as a means of getting an array of zeros on sz resulted in an empty dimension when a negative is passed in. The previous structure seemed to be predicated on a presumption of either RAS or LPI. Use of Abs(sz) ensures that the actual dimensions are passed.
per Dan Bullock (git user DanNBullock), use of false() as a means of getting an array of zeros on sz resulted in an empty dimension when a negative is passed in. The previous structure seemed to be predicated on a presumption of either RAS or LPI. Use of Abs(sz) ensures that the actual dimensions are passed.
removed check for spm2 which uses function that breaks in deployed mode
Update dtiRoiToImg.m
Some updates on the gifti/OBJ stuff. This still needs work. See comments about gifti and github and SPM12 in the files.
Per the comment in the main repo, the inability to deal with alternate orientations is leading to negative numbers here, which interacts poorly with the addition step. (if the diff value ends up being negative, the addition of one reduces the actual size).
With the original function, I got an output volume with wrong dimensions (reduced by 2 units). This fix can deal correctly with negative values, and thus the resulting volume has the correct dimensions. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As described in comment, this is probably due to presuming a particular orientation of input image. If the image has an alternative orientation (As described in the xform) negative values can be returned which interacts poorly with line 35.