ANTSAI(1)

πŸ“¦
version 2.6.4 Β· 2 versions
, in ubuntu resolute

πŸŽ€ 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 from Rigid[gradientStep], Affine[gradientStep], Similarity[gradientStep], AlignGeometricCenters, or AlignCentersOfMass. 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 .mat file πŸ’–
  • --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