mia-2dtransform(1)
π 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 seePLUGINS: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 seePLUGINS:2dimage/io-t,--transformation=(required, input); ioβ the transformation file name. Required, obviously. For supported file types seePLUGINS: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 ismirror, 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 iswarning. Supported priorities, starting at the lowest level, are:traceβ Function call tracedebugβ Debug outputinfoβ Low level messagesmessageβ Normal messageswarningβ Warningsfailβ Report test failureserrorβ Report errorsfatalβ 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-1means 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
- Recognized file extensions:
datapoolβ Virtual IO to and from the internal data pool- Recognized file extensions:
.@
- Recognized file extensions:
dicomβ 2D image io for DICOM- Recognized file extensions:
.DCM,.dcm - Supported element types:
- signed 16 bit, unsigned 16 bit
- Recognized file extensions:
exrβ a 2dimage io plugin for OpenEXR images- Recognized file extensions:
.EXR,.exr - Supported element types:
- unsigned 32 bit, floating point 32 bit
- Recognized file extensions:
jpgβ a 2dimage io plugin for jpeg gray scale images- Recognized file extensions:
.JPEG,.JPG,.jpeg,.jpg - Supported element types:
- unsigned 8 bit
- Recognized file extensions:
pngβ a 2dimage io plugin for png images- Recognized file extensions:
.PNG,.png - Supported element types:
- binary data, unsigned 8 bit, unsigned 16 bit
- Recognized file extensions:
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
- Recognized file extensions:
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
- Recognized file extensions:
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
- Recognized file extensions:
π¦ 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
- Recognized file extensions:
datapoolβ Virtual IO to and from the internal data pool- Recognized file extensions:
.@
- Recognized file extensions:
vistaβ Vista storage of 2D transformations- Recognized file extensions:
.v2dt
- Recognized file extensions:
xmlβ XML serialized IO of 2D transformations- Recognized file extensions:
.x2dt
- Recognized file extensions:
β 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 aftertrans.vand 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)
π COPYRIGHT π
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
- ubuntu jammy: mia-tools 2.4.7-8ubuntu1 Β· GPL-3.0-or-later
- ubuntu noble: mia-tools 2.4.7-13build4 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms