UNU-CCFIND(1)

πŸ“¦ version 1.11.0, in fedora 43, fedora 44

πŸ’– UNU-CCFIND(1) β€” bestie's guide to finding connected components πŸ’–

okay so this is unu ccfind, a User Commands page from the unu fam, and it is literally the girlboss of finding connected components. CCs? connected components? yeah. we're finding them. no cap. 🌈✨


✨ NAME ✨

unu-ccfind β€” find connected components (CCs) πŸ¦‹


🌸 SYNOPSIS 🌸

unu ccfind [-v,--values <filename>] [-t,--type <type>] -c,--connect
<connectivity> [-i,--input <nin>] [-o,--output <nout>]

like, that's the whole vibe right there. one required-ish thing (-c), the rest is optional slay. πŸ‘‘


πŸ’… DESCRIPTION πŸ’…

Find connected components (CCs). that's the mission. that's the whole point. πŸŽ€

this works on 1-byte and 2-byte integral values, and also on 4-byte ints. so like, it's flexible. it's giving range. πŸ’œ

  • Uses nrrdCCFind
🫢 lowkey important: that bullet is the entire implementation note, so don't come for me if you wanted more, bestie, that's literally all it says.

πŸ¦‹ OPTIONS πŸ¦‹

  • -v <filename>, --values <filename> β€” hand over a filename here and it saves out the values associated with each connected component. then later you can use it with unu-ccmerge(1) -d. by default tho? no record of the original CC values is kept. so if you don't ask, you don't get. πŸ™ˆ (it's a string, fyi)
  • -t <type>, --type <type> β€” the type to use for the output, where the CC ID values get stored. if you don't use this option, the default is the smallest of uchar, ushort, or int that can represent all the CC ID values. so the default is doing the math for you and picking the tiniest icon that fits. using this option lets you specify the integral type yourself. main character energy, your choice. πŸ‘‘
  • -c <connectivity>, --connect <connectivity> β€” what kind of connectivity to use: the number of coordinates that vary in order to traverse the neighborhood of a given sample. in 2D: "1" means 4-connected, "2" means 8-connected. it's an unsigned int, so like, numbers only please. πŸ’…
  • -o <nout>, --output <nout> β€” output nrrd (string); default: "-" 🌸
ngl, -i,--input <nin> shows up in the synopsis and then… doesn't get its own bullet down here. that's just how the page is, bestie. i'm not gonna make up facts about it. πŸ€·β€β™€οΈ

πŸ”₯ SEE ALSO πŸ”₯

like, go read the whole friend group. they're all connected. pun intended. 🧚


and that's the page, periodt. πŸ’– this lil masterpiece is from August 2021, and yeah, it lives under the UNU-CCFIND(1) name in section 1. mwah. βœ¨πŸŽ€πŸ’…

πŸ“¦ where this page comes from