ntustison / antsregistrationwithmaskexample Goto Github PK
View Code? Open in Web Editor NEWIf you're going to play in Texas you gotta have a fiddler in the band.
If you're going to play in Texas you gotta have a fiddler in the band.
First of all, great thanks to your shell. I will put more than one star if it is possible :)
I have brain image (fixed image): T1, T2 and label1. I also have another brain image(moving image): T1,T2, and label2. The T1 and T2 in same subject have been alignedNow, I want to align two subject together and I found your shell. It is very help full and it worked. I have register T1 image in moving image to T1 image in fixed image and the output is
./OutputNoMask/ants0GenericAffine.mat
./ants1InverseWarp.nii.gz
./ants1Warp.nii.gz
./antsInverseWarped.nii.gz
./OutputNoMask/antsWarped.nii.gz
Now, I want to register the T2 in moving image to T2 in fixed image and label2 in moving image to label1 in the fixed image using the above transformation. How should I do? Do I need to convert the label value (from 0 to 8) to float number likes (0:0.0-->0.2, 1:1.0-->1.2....) and perform registeration? Thanks so much
This is my current solution but the label did not align
affineTransformImage=/OutputNoMask/ants0GenericAffine.mat
warpImage=/OutputNoMask/ants1Warp.nii.gz
input_label=/brain/seg.nii.gz
ref_imgage=/brain/t1_fixed.nii.gz
outputDirectory=./OutputNoMask
mkdir -p $outputDirectory
antsApplyTransforms -d 3 -i ${input_label} \
-o ${outputDirectory}/labelwarp.nii.gz \
-t ${affineTransformImage}\
-r ${ref_imgage}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.