mia-2dstac...-presegment(1)

πŸ“¦
version 2.4.7 Β· 2 versions
, in ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– mia-2dstack-cmeans-presegment πŸ’–

okay bestie, welcome to the glow-up of a manual page for mia-2dstack-cmeans-presegment, living its best life in section 1 of the General Commands Manual. it's giving "quietly doing the most" and honestly? we're obsessed. let's go ✨


🌸 NAME 🌸

mia-2dstack-cmeans-presegment β€” Pre-classify the input image series by using a c-means estimator 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

mia-2dstack-cmeans-presegment -i <in-file> -o <out-mask> -L <label>
[options]

✨ DESCRIPTION ✨

so here's the tea, bestie. mia-2dstack-cmeans-presegment does three things and it does them in order, no skipping the line:

  1. it first evaluates a sparse histogram of an input image series πŸ“Š
  2. then it runs a c-means classification over that histogram πŸ”₯
  3. and then it estimates the mask for one (given) class based on class probabilities πŸŽ€
⚠️ big one: This program accepts only images of eight or 16 bit integer pixels. that's the vibe check and you will be checked. πŸ’…

πŸ’… OPTIONS πŸ’…

πŸ“ File-IO

  • -i, --in-file=(input, required); io β€” input image(s) to be filtered. For supported file types see PLUGINS:2dimage/io πŸ‘€
  • -p, --out-probmap=(output); string β€” Save probability map to this file πŸ—ΊοΈ
  • -t, --type=png β€” output file name type 🏷️
  • -o, --out-mask=(output, required); string β€” output file name base 🎯

πŸ†˜ Help & Info

  • -V, --verbose=warning β€” verbosity of output, print messages of given level and higher priorities. Supported priorities starting at 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 πŸ”’

πŸŽ›οΈ Parameters

  • -T, --histogram-thresh=5; float in [0, 50] β€” Percent of the extrem parts of the histogram to be collapsed into the respective last histogram bin. πŸ“‰
  • -C, --classes=kmeans:nc=3 β€” C-means class initializer. For supported plugins see PLUGINS:1d/cmeans 🧠
  • -S, --seed-threshold=0.95; float in (0, 1) β€” Probability threshold value to consider a pixel as seed pixel. 🌱
  • -L, --label=(required); int in [0, 10] β€” Class label to create the mask from 🏷️

βš™οΈ 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: 1d/cmeans 🌈

✨ even

C-Means initializer that sets the initial class centers as evenly distributed over [0,1], supported parameters are:

  • nc =(required, ulong) β€” Number of classes to use for the fuzzy-cmeans classification. πŸ”’

✨ kmeans

C-Means initializer that sets the initial class centers by using a k-means classification, supported parameters are:

  • nc =(required, ulong) β€” Number of classes to use for the fuzzy-cmeans classification. πŸ”’

✨ predefined

C-Means initializer that sets pre-defined values for the initial class centers, supported parameters are:

  • cc =(required, vdouble) β€” Initial class centers fuzzy-cmeans classification (normalized to range [0,1]). 🎯

πŸ–ΌοΈ PLUGINS: 2dimage/io πŸ–ΌοΈ

πŸŽ€ 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 πŸ§ͺ

okay so imagine this: Run the program over images imageXXXX.png with the sparse histogram, threshold the lower 30% bins (if available), run cmeans with two classes on the non-zero pixels and then create the mask for class 1 as foregroundXXXX.png. iconic behaviour, no notes. πŸ’–

mia-2dstack-cmeans-presegment -i imageXXXX.png -o foreground -t png
       --histogram-tresh=30 --classes 2 --label 1
🫢 yes, --histogram-tresh=30 is spelled exactly like that in the example. copy it as-is, bestie. don't be the one who "fixes" it. 😭

πŸ‘‘ 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.


aaaand that's the whole page, bestie πŸŽ€ this was mia-2dstac...-presegment(1) from USER COMMANDS, v2.4.7, and yes we're still screaming about how much ground this little program covers. slay, run it responsibly, and hydrate πŸ’§βœ¨

πŸ“¦ where this page comes from