ANTSAI(1)
π ANTSAI(1) β User Commands π
β¨ NAME β¨
antsAI π¦ β part of the ANTS registration suite, bestie! It's giving precision alignment π
π DESCRIPTION π
π COMMAND: antsAI
okay so antsAI is the program that figures out the optimal linear transform parameters for lining up two images πΈ It's literally the thing that makes your scans match up, no cap β¨
π«Ά OPTIONS
-d,--dimensionality 2/3β okay this one forces the image to be treated as a specific-dimensional image (2D or 3D, you pick π§). If you don't specify it, antsAI tries to infer the dimensionality from the input image on its own. Main character energy π-m,--metricβ the metric options, bestie π Here's what's available:Mattes[fixedImage,movingImage,<numberOfBins=32>,<samplingStrategy={None,Regular,Random}>,<samplingPercentage=[0,1]>]GC[fixedImage,movingImage,<radius=NA>,<samplingStrategy={None,Regular,Random}>,<samplingPercentage=[0,1]>]MI[fixedImage,movingImage,<numberOfBins=32>,<samplingStrategy={None,Regular,Random}>,<samplingPercentage=[0,1]>]
So Mattes is Mattes mutual information and it's the one they recommend π₯ GC is global correlation, and MI is joint histogram mutual information π
-t,--transformβ several transform options are giving variety π¦ Pick fromRigid[gradientStep],Affine[gradientStep],Similarity[gradientStep],AlignGeometricCenters, orAlignCentersOfMass. For rigid, affine, and similarity, the gradientStep sets up the gradient descent optimization, and it gets scaled properly for each transform using the shift scales estimator. The other two just find the simple translation transform that aligns the specified image feature π Heads up, the images get read from the similarity metric option even though the metric isn't actually used π-p,--align-principal-axesβ a boolean for aligning by principal axes β¨ The alternative is aligning with blobs (see-b) π§-b,--align-blobs numberOfBlobsToExtractβ[numberOfBlobsToExtract,<numberOfBlobsToMatch=numberOfBlobsToExtract>]π«§ Another boolean, this one for aligning by a set of blobs. The alternative is aligning by principal axes (see-p) π-s,--search-factor searchFactorβ[searchFactor=20,<arcFraction=1.0>]πΈ This is an incremental search factor, in degrees, that samples the arc fraction around the principal axis or the default axis π¦-g,--translation-search-grid [stepSize=25, AxBxC=0x0x0]β a translation search grid in mm π It translates the moving image along each dimension in increments of the step size β¨-c,--convergence numberOfIterationsβ[numberOfIterations,<convergenceThreshold=1e-6>,<convergenceWindowSize=10>]π₯ This is the number of iterations, bestie π-x,--masks fixedImageMaskβ[fixedImageMask,movingImageMask]π Image masks that limit which voxels the metric considers π«Ά-o,--output outputFileNameβ specify the output transform, which comes out as an ITK.matfile π--random-seed seedValueβ use a fixed seed for random number generation π This overwrites the default fixed seed. It can be any nonzero int value, but if you pass zero, the system time gets used instead β°-v,--verbose (0)/1β verbose output, so you can see all the tea βπ-hβ prints the short version of the help menu π--helpβ prints the help menu π<VALUES>: 1πΈ
π¦ SIGN-OFF π¦
That's the whole tea, bestie! This page came from antsAI 2.6.4+dfsg, dated December 2025, and I'm obsessed with how iconic it is πβ¨ Stay aligned, stay slay π«Άπ
π¦ where this page comes from
- ubuntu resolute: ants 2.6.4+dfsg-1 Β· BSD-3-Clause
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms