MINCCONCAT(1)
β¨ MINCCONCAT(1) β¨
okay bestie, gather round, because this one is the MINC User's Guide classic and it's literally about gluing your minc files together π
πΈ NAME πΈ
mincconcat β concatenate minc files along a specific dimension
π SYNOPSIS π
mincconcat [<options>] <infile1>.mnc [<infile2>.mnc ...] <outfile>.mnc
π¦ DESCRIPTION π¦
So mincconcat takes a whole little squad of minc files and smushes them into one single output file. Iconic. β¨
The concatenation happens along a dimension you specify, and the slices get sorted into ascending order. Now here's the cute part: that concatenation dimension can be either a dimension that already exists in the file β in which case the coordinates for sorting come straight out of the input files themselves, no extra work β or it can be a brand new dimension, and then you're the one who has to hand over the coordinates with a command-line option. Your call, main character. π
π OPTIONS π
Heads up bestie: options can be written in abbreviated form (as long as they're unique, iykyk) and they can go anywhere on the command line. Placement is not the vibe check here.
π General options
-2β makes a MINC 2.0 format output file. glow up β¨-clobberβ overwrite a file that already exists.-noclobberβ do not overwrite an existing file. This is the default, so she's cautious by nature. π-verboseβ prints out progress info for every single chunk of data copied. Also the default, because she wants you to know she's working. πͺ-quietβ no progress info, just silence.-max_chunk_size_in_kbsize β sets the maximum size of the copy buffer, in kbytes. Default is4096kbytes.-filelistfilename β points to a file containing a list of input file names. If you pass"-", then the file names get read from stdin instead. If you use this option, there should be no input file names on the command line β pick a lane. Empty lines in that input file are just ignored, no drama.
π Output type options
-filetypeβ does no type conversion at all. Default behaviour, she's chill like that.-byteβ writes out 8-bit integer voxels.-shortβ writes out 16-bit integer voxels.-intβ writes out 32-bit integer voxels.-longβ superseded by-int. (it's giving legacy, we still love her tho π«Ά)-floatβ writes out single-precision floating point values.-doubleβ writes out double-precision floating point values.-signedβ writes values as signed integers. Default forshortandlong. Gets ignored for floating point types.-unsignedβ writes values as unsigned integers. Default forbyte. Also ignored for floating point types.-valid_rangemin max β specifies the valid range of output voxel values in their integer representation. Default is the full range for the type and sign. This option is ignored for floating point values, periodt.
π Concatenation options
-concat_dimensionname β specifies the name of the concatenation dimension. If that dimension already exists in the input files, the coordinates get taken from those files. If it doesn't, a new dimension gets created and each input file's coordinate comes from command-line options. Default is to use the slowest varying dimension of the first file.-startstart β the starting coordinate for the new dimension. Default =0.0.-stepstep β the separation between voxels for the new dimension. Default =1.0.-widthwidth β the (constant) width of each sample along the new dimension. Default = none.-coordlistc1,c2,... β a comma-separated list of coordinates along the new dimension.-widthlistw1,w2,... β a comma-separated list of widths along the new dimension.-filestartss1,s2,... β a comma-separated list of offsets to the coordinate origins for each of the files listed on the command line. Super useful for concatenating files along an existing dimension β say, gluing multiple functional runs together along a time dimension. π§-check_dimensionsβ checks that all input files have matching sampling in world dimensions. Default, she's thorough.-nocheck_dimensionsβ ignores any differences between input files in world dimensions sampling.-ascendingβ sorts coordinates in ascending order. Default.-descendingβ sorts coordinates in descending order.-interleavedβ sorts slabs by their dimension coordinate, interleaving if necessary. Default.-sequentialβ doesn't sort slabs at all, just concatenates them together.
β οΈ WARNING β -sequential will destroy the dimension information along the concatenating dimension, replacing the start and step with zero and one. Not a drill, bestie. π
β Generic options for all commands
-helpβ prints a summary of the command-line options and exits.-versionβ prints the program's version number and exits.
π EXAMPLES π
Say you've got two volumes with dimensions zspace, yspace, xspace, and they have interleaved slices along zspace. Easy, just:
mincconcat input1.mnc input2.mnc output.mnc
Now imagine you have a whole bunch of compressed (yspace, xspace) images and you want to concatenate them into an evenly spaced volume. Then you type:
mincconcat input1.mnc.gz input2.mnc.gz input3.mnc.gz \
input4.mnc.gz output.mnc \
-concat_dimension zspace -start -23 -step 2
ate, no crumbs. π₯
π AUTHOR π
Peter Neelin β the legend, the blueprint. π
π COPYRIGHTS π
Copyright Β© 1995 by Peter Neelin
okay that's the whole page bestie, you're officially a mincconcat girlie now π this was the MINC User's Guide edition, dated $Date: 2005-07-15 17:38:08 $ β yes she's vintage, and yes she still slays. mwah π
π
π¦ where this page comes from
- debian bookworm: minc-tools 2.3.00+dfsg-10 Β· as_is
- debian trixie: minc-tools 2.3.00+dfsg-12 Β· as_is
- nixpkgs unstable: minc-tools 2.3.06-unstable-2024-11-28
- ubuntu jammy: minc-tools 2.3.00+dfsg-8 Β· as_is
- ubuntu noble: minc-tools 2.3.00+dfsg-10build2 Β· as_is
- ubuntu questing: minc-tools 2.3.00+dfsg-12
- ubuntu resolute: minc-tools 2.3.00+dfsg-15 Β· NTP
- ubuntu stonking: minc-tools 2.3.00+dfsg-17 Β· NTP
- Copyright 1995 Peter Neelin, McConnell Brain Imaging Centre
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms