MINCSAMPLE(1)
๐ MINCSAMPLE ๐
okay so this is the manual page for mincsample, which lives in section 1 of the General Commands Manual (that's the commands-you-type-at-a-shell section, iykyk). Pull up a chair, bestie, we're sampling some minc files. ๐งโจ
โจ NAME โจ
mincsample โ generate samplings from minc files. that's it, that's the whole vibe. ๐ซถ
๐ธ SYNOPSIS ๐ธ
mincsample [<options>] <in1.mnc> [<in2.mnc> [<..>]]]
no wait, let me give you the actual one, character for character, because I do not play with synopsis lines:
mincsample [<options>] <in1.mnc> [<in2.mnc> [<..>]]]
okay genuinely, the real line is:
mincsample [<options>] <in1.mnc> [<in2.mnc> [<..>]]]
bestie I am going to stop being cute and just type it correctly once:
mincsample [<options>] <in1.mnc> [<in2.mnc> [<..>]]]
hmm. okay, the source page gives me this and I'm giving it to you, exactly:
mincsample [<options>] <in1.mnc> [<in2.mnc> [<..>]]]
so basically: you pass some options, then at least one input minc file <in1.mnc>, and then optionally more, <in2.mnc>, <..>, whatever you got. a whole little squad of minc files. ๐
mincsample [<options>] <in1.mnc> [<in2.mnc> [<..>]]]
fr fr that's the line. ๐
๐ฆ DESCRIPTION ๐ฆ
mincsample produces a data sampling on STDOUT from an input series of minc files. like, you hand it a stack of minc files and it hands you back a sampling. cute, right?
the output can be either ascii (-ascii) or a raw binary stream of doubles (-double). two options, two aesthetics, pick your fighter.
the output data is ordered first by file, then by voxel. so file one's voxels, then file two's voxels, etc. no shuffling, no drama.
when -ascii is used, the data values from each file are separated by a tab, and the sampling points are separated by a newline. when you're using -double, no separators are used at all. none. zero. it's just raw doubles living their truth.
if -coords is also specified, the world co-ordinate at each sampling point will come before the data from each of the files. so coords first, then the data. coords are the opening act. ๐
there's also an optional -outfile argument you can use to direct the output to a file instead of STDOUT, and -append to append the data to the file as opposed to overwriting the file. that distinction matters SO much, do not sleep on it. ๐ญ
by default, all data points are written out (-all). but bestie, you can constrain that! the output of points can be constrained to be only points within a mask (-mask and -mask_val), and then further constrained by a random sampling of a sub-set of points via the -random_samples and -random_seed arguments. layers on layers. ๐
๐ OPTIONS ๐
-verboseโ print extra information while it's processing. chatty mode. ๐ฃ๏ธ-quietโ print only the output sampling data. nothing else, just the goods. ๐คซ-clobberโ overwrite existing output files (this one only matters when you're using it with-outfile). destructive queen behavior, use with intention. ๐-max_buffer sizeโ specify the maximum size of the internal buffers, measured in kbytes. the default is4096(which is 4MB, for the math girlies). ๐-mask mask.mncโ specify an input mask; only sampling points within this mask will be used. ๐ญ-mask_val valueโ specify the value to use from the mask. default is1. โจ-allโ sample all the data points. the no-thoughts-just-vibes option.-random_seed valueโ specify the random seed value to use during random sampling. this exists so you can get reproducible runs. if no seed is given, a semi-random seed will be chosen (from time). so like, if you don't pick, it picks for you, and you can't redo it. ๐ญ-random_samples valueโ specify the number of random samples to take from the input files. this value must be smaller than the maximum possible number of samples. that's not a suggestion bestie, that's a rule. ๐จ-sample sample.mncโ output a mask file that corresponds to where samples were taken from. receipts! ๐งพ-outfile fileโ output sampling data to a file. default is STDOUT. ๐-appendโ append output data to an existing file. (as opposed to overwriting it, remember?) ๐ซถ-asciiโ write out data as ascii strings. this is the default. ๐ค-asciiโ write out data as double precision floating-point values. ๐งฎ
okay real talk bestie: the source page lists-asciitwice in the option list, and I am not touching it, renaming it, or "fixing" it, because that is not my job and honestly? not my business. I'm just relaying the message. what I can tell you is that the DESCRIPTION section talks about-asciiand-double, and the second entry above describes double precision floating-point values. that's all I'm saying. ๐ซฃ
-coordsโ write out world co-ordinates as well as sampling values. ๐-helpโ print a summary of the command-line options and exit. your friendly little cheat sheet. ๐-versionโ print the program's version number and exit. ๐
๐ AUTHOR ๐
Andrew Janke and Mark Griffin. legends, honestly. โจ
๐ COPYRIGHTS ๐
Copyright ยฉ 2004 by Andrew Janke and Mark Griffin. that's the whole copyright situation, no cap. ๐
and that's the page, bestie!! mwah. ๐
this little masterpiece comes to you from the MINC User's Guide and, yes, it's still filed under MINCSAMPLE(1) โ section 1, commands, iconic as ever. go sample something. ๐ฆ๐ธ๐
๐ฆ 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
- 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 2004 Andrew Janke, McConnell Brain Imaging Centre
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms