Comments (5)
looks like your brain mask has max values near 0.5
you should use a binary mask
also - see the ants cortical thickness paper for our philosophy on this (
custom templates )
brian
On Fri, Jun 12, 2015 at 11:40 AM, BrysonBR [email protected] wrote:
First, I want to say thanks for so quickly resolving my last
abpBrainExtraction issue, it worked. But, I used a crappy "tem" and
"temmask" so I got a crappy brain mask. In an effort to fix this I am
trying to use the MNI standard brain as the template and it's very good
brain mask as the template mask. I used the code below:ImageMath 3 close_MP1.nii.gz ClosestSimplifiedHeaderMatrix MP1.nii.gz
ImageMath 3 close_MNI.nii.gz ClosestSimplifiedHeaderMatrix MNInew.nii.gz
ImageMath 3 close_MNImask.nii.gz ClosestSimplifiedHeaderMatrix
brainMask.niistruct<-antsImageRead("/Users/Bryson/Data/ANTsR_test/close_MP1.nii.gz")
struct<-abpN4(struct)
tem<-antsImageRead("/Users/Bryson/Data/ANTsR_test/close_MNI.nii.gz")
tem<-abpN4(tem)temmask<-antsImageRead("/Users/Bryson/Data/ANTsR_test/close_MNImask.nii.gz")
bm<-abpBrainExtraction(img=struct,tem=tem,temmask=temmask)
antsImageWrite(bm$bmask, "MP1bmask.nii.gz")
antsImageWrite(bm$brain, "MP1masked.nii.gz")But the output I got looked more like a head-excluding mask than a
brain-including mask.I've attached the input and output files here:
Thanks again for your help!
—
Reply to this email directly or view it on GitHub
#55.
from antsr.
You are correct, once I binarized the mask it ran well. I am getting an error, but it is not crashing and the output looks good. The error is:
bad det -1 v 1 u -1
bad det -1 v 1 u -1 new 1
I'm not sure if I should be worried about it or not.
I'll read that paper you suggested to get a better understanding of the templates, thanks again.
from antsr.
thats nothing to worry about.
brian
On Fri, Jun 12, 2015 at 2:46 PM, BrysonBR [email protected] wrote:
You are correct, once I binarized the mask it ran well. I am getting an
error, but it is not crashing and the output looks good. The error is:bad det -1 v 1 u -1
bad det -1 v 1 u -1 new 1I'm not sure if I should be worried about it or not.
I'll read that paper you suggested to get a better understanding of the
templates, thanks again.—
Reply to this email directly or view it on GitHub
#55 (comment).
from antsr.
also, you may not have to use the "closest" trick with this setup i.e. when
mapping to MNI
brian
On Fri, Jun 12, 2015 at 2:47 PM, brian avants [email protected] wrote:
thats nothing to worry about.
brian
On Fri, Jun 12, 2015 at 2:46 PM, BrysonBR [email protected]
wrote:You are correct, once I binarized the mask it ran well. I am getting an
error, but it is not crashing and the output looks good. The error is:bad det -1 v 1 u -1
bad det -1 v 1 u -1 new 1I'm not sure if I should be worried about it or not.
I'll read that paper you suggested to get a better understanding of the
templates, thanks again.—
Reply to this email directly or view it on GitHub
#55 (comment).
from antsr.
Thanks, I appreciate all of your help and guidance.
from antsr.
Related Issues (20)
- ERROR: Parsing error: The keyword 'const' is reserved
- Errors in buliding ANTsR vigniettes HOT 1
- AAL template extends beyond MNI cortical surface HOT 7
- installation problem antsLibs() Makevars:6: *** missing separator. Stop. HOT 5
- Error
- antsMotionCalculation Error HOT 1
- colorbar key for antsrSurf HOT 6
- Installation fail with devtools HOT 5
- details about mnib HOT 1
- Failing on ITK when running LINDA HOT 6
- Proper similarity metric for Affine registration HOT 3
- MVPA using ANTsR?
- ITK bug in createJacobianDeterminantImage after upgrade HOT 14
- aslPerfusion HOT 11
- Installation error on Mac OS 12.6.3 with devtools HOT 11
- R version issues HOT 3
- ITK_GLOBAL_NUMBER_OF_THREADS is ignored HOT 2
- How to pass command line arguments to antsRegistration? HOT 4
- Guidance on Extracting Numeric Values of Gaussian Curvature from Image Class HOT 1
- Resampling an image to source image geometry HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antsr.