mia-2ddistance(1)

πŸ“¦
version 2.4.7 Β· 3 versions
, in debian bookworm, ubuntu resolute, ubuntu stonking

πŸ¦‹ mia-2ddistance β€” bestie's guide to measuring mask distances

okay so real talk, this is from the mia toolchain (that's the General Commands Manual vibe), and it's genuinely so useful once it clicks. let's go πŸ’…


✨ NAME ✨

mia-2ddistance β€” Distance between binary masks. periodt.


✨ SYNOPSIS ✨

mia-2ddistance -i <in-file> -d <distance-file> -o <out-file> [options]

✨ DESCRIPTION ✨

okay so mia-2ddistance β€” this program evaluates the average or maximum distance of a mask given by a binary image to an image representing a distance map, and then it prints the result to stdout. simple as that, no cap 🫢

and the distance map? you get that by running the filter diatance on a binary image. (yes that's the actual name in the docs, iykyk, we don't ask questions, we just run it ✨)


✨ OPTIONS ✨

  • -i, --in-file=(input, required); io β€” the input image. for what file types are supported, go check PLUGINS:2dimage/io down below πŸ’–
  • -d, --distance-file=(input, required); io β€” the distance field image (floating point, bestie). supported file types live in PLUGINS:2dimage/io too 🌸
  • -o, --out-file=(output, required); string β€” the output file. and if you hit it with '-' it writes to stdout instead πŸ‘‘
  • -s, --scale=1 β€” distance scaling factor
  • -m, --method=avg β€” distance measuring method. your choices are:
    • avg ‐ use average
    • max ‐ use maximum
    • raw ‐ collect raw values as vector

πŸŽ€ Help & Info

  • -V, --verbose=warning β€” verbosity of output, prints messages of the given level and higher priorities. the supported priorities, starting at the lowest level, are:
    • trace ‐ Function call trace
    • debug ‐ Debug output
    • info ‐ Low level messages
    • message ‐ Normal messages
    • warning ‐ Warnings
    • fail ‐ Report test failures
    • error ‐ Report errors
    • fatal ‐ Report only fatal errors
  • --copyright β€” print copyright information
  • -h, --help β€” print this help
  • -?, --usage β€” print a short help
  • --version β€” print the version number and exit

🧚 Processing

  • --threads=-1 β€” Maxiumum number of threads to use for processing. this number should be lower or equal to the number of logical processor cores in the machine. (-1: automatic estimation).

🌈 PLUGINS: 2dimage/io 🌈

the file-type roster, aka who's allowed at the party:

  • bmp β€” BMP 2D-image input/output support. the plug-in supports reading and writing of binary images and 8-bit gray scale images. read-only support is provided for 4-bit gray scale images. the color table is ignored and the pixel values are taken as literal gray scale values.
    • Recognized file extensions: .BMP, .bmp
    • Supported element types: binary data, unsigned 8 bit
  • datapool β€” Virtual IO to and from the internal data pool
    • Recognized file extensions: .@
  • dicom β€” 2D image io for DICOM
    • Recognized file extensions: .DCM, .dcm
    • Supported element types: signed 16 bit, unsigned 16 bit
  • exr β€” a 2dimage io plugin for OpenEXR images
    • Recognized file extensions: .EXR, .exr
    • Supported element types: unsigned 32 bit, floating point 32 bit
  • jpg β€” a 2dimage io plugin for jpeg gray scale images
    • Recognized file extensions: .JPEG, .JPG, .jpeg, .jpg
    • Supported element types: unsigned 8 bit
  • png β€” a 2dimage io plugin for png images
    • Recognized file extensions: .PNG, .png
    • Supported element types: binary data, unsigned 8 bit, unsigned 16 bit
  • raw β€” RAW 2D-image output support
    • Recognized file extensions: .RAW, .raw
    • Supported element types: binary data, signed 8 bit, unsigned 8 bit, signed 16 bit, unsigned 16 bit, signed 32 bit, unsigned 32 bit, floating point 32 bit, floating point 64 bit
  • tif β€” TIFF 2D-image input/output support
    • Recognized file extensions: .TIF, .TIFF, .tif, .tiff
    • Supported element types: binary data, unsigned 8 bit, unsigned 16 bit, unsigned 32 bit
  • vista β€” a 2dimage io plugin for vista images
    • Recognized file extensions: .-, .V, .VISTA, .v, .vista
    • Supported element types: binary data, signed 8 bit, unsigned 8 bit, signed 16 bit, unsigned 16 bit, signed 32 bit, unsigned 32 bit, floating point 32 bit, floating point 64 bit

🌸 EXAMPLE 🌸

say you wanna evaluate the maximum distance of mask m.v by using the distance field distance.v, and scale by factor 2.0. the result gets written to stdout. chef's kiss, watch this:

mia-2ddistance -i m.v -d distance.v -s 2.0 -m max

πŸ’œ AUTHOR(s) πŸ’œ

Gert Wollny


This software is Copyright (c) 1999‐2015 Leipzig, Germany and Madrid, Spain. It comes with ABSOLUTELY NO WARRANTY and you may redistribute it under the terms of the GNU GENERAL PUBLIC LICENSE Version 3 (or later). For more information run the program with the option '--copyright'.


and that's the whole page bestie πŸ’– this was the USER COMMANDS v2.4.7 edition of mia-2ddistance(1), served fresh from the General Commands Manual. go measure some distances, you absolute icon πŸŽ€βœ¨

πŸ“¦ where this page comes from