mia-2dtransform(1)

πŸ“¦
version 2.4.7 Β· 3 versions
, in ubuntu jammy, ubuntu noble

πŸ’– mia-2dtransform β€” ok bestie, we're warping images πŸ’–

the manual name is mia-2dtransform, it lives in the General Commands Manual section, and it's about to become your whole personality πŸ¦‹


✨ NAME ✨

mia-2dtransform β€” Transform a 2D image. πŸ’…

That's it, that's the job. You give it a picture, you give it a transformation, it hands you back a whole new picture. Iconic.


🌸 SYNOPSIS 🌸

mia-2dtransform -i <in-file> -o <out-file> -t <transformation> [options]

πŸŽ€ DESCRIPTION πŸŽ€

So like, mia-2dtransform deforms a 2D image using a given transformation. You bring the image, you bring the transformation, it does the deformation thing. Lowkey the whole plot of the program. 🫢


πŸ’… OPTIONS πŸ’…

  • -i, --in-file=(required, input); io β€” the input image. It's required, babes, no skipping. For supported file types see PLUGINS:2dimage/io (scroll down, it's all there 🌈)
  • -o, --out-file=(output, required); io β€” the output image. Also required. You gotta know where the glow-up is going. For supported file types see PLUGINS:2dimage/io
  • -t, --transformation=(required, input); io β€” the transformation file name. Required, obviously. For supported file types see PLUGINS:2dtransform/io
  • -p, --interpolator= β€” override the interpolator provided by the transformation. Basically "no bestie, I'm picking the interpolator, not the transformation file." πŸ’…
  • -b, --boundary=mirror β€” override the boundary conditions provided by the transformation. Default is mirror, if you were wondering.
Heads up though: this is only used if the interpolator is overridden. So if you didn't touch -p, this one is just sitting there. Facts are facts. 😭

πŸ†˜ Help & Info πŸ†˜

  • -V, --verbose=warning β€” how chatty do you want it? It prints messages of the given level and higher priorities. Default vibe is warning. 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 β€” Maximum number of threads to use for processing. (yes the original says "Maxiumum", we love a typo moment, keeping it exactly as-is πŸ’€) This number should be lower or equal to the number of logical processor cores in the machine. And -1 means automatic estimation. Let the machine cook. πŸ‘‘

🌈 PLUGINS: 2dimage/io 🌈

All the formats your input and output can be, bestie. Collect them all.

  • 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

πŸ¦‹ PLUGINS: 2dtransform/io πŸ¦‹

And these are the formats your -t transformation file can be. Yes, transformations have their own little format club.

  • bbs β€” Binary (non-portable) serialized IO of 2D transformations
    • Recognized file extensions: .bbs
  • datapool β€” Virtual IO to and from the internal data pool
    • Recognized file extensions: .@
  • vista β€” Vista storage of 2D transformations
    • Recognized file extensions: .v2dt
  • xml β€” XML serialized IO of 2D transformations
    • Recognized file extensions: .x2dt

⭐ EXAMPLE ⭐

Okay so the assignment: transform an image input.png by the transformation stored in trans.v, use linear interpolation and zero boundary conditions, and store the result in output.png. Slay.

mia-2dtransform -i input.png -t trans.v  -o output.png  -p bspline:d=1
       -b zero
fr fr, look at that double space after trans.v and before -o β€” we're keeping it exactly as the manpage wrote it. no edits, no cap. πŸ’–

πŸ‘‘ AUTHOR(s) πŸ‘‘

Gert Wollny (the icon, the legend, the main character of this manpage)


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 β€” written for the USER COMMANDS section, version v2.4.7, and yeah it's giving very much mia-2dtransform(1) energy. Go warp something pretty. πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from