mia-2dlerp(1)
π mia-2dlerp β the 2D image blend bestie π
okay so like, real talk? this is mia-2dlerp(1) from the General Commands Manual section, and she's a tiny little tool with main character energy: she takes two 2D images and blends them together, pixel by pixel, all linear and cute. β¨
πΈ NAME πΈ
mia-2dlerp β Linearly combine two 2D images.
no cap, that's the whole vibe. two pics in, one blended pic out. π
π SYNOPSIS π
mia-2dlerp -1 <first> -2 <second> -o <out-file> -p <positions> [options]
like, that's the shape of it, bestie. two inputs, an output, and your positions. the rest is just garnish. π¦
β¨ DESCRIPTION β¨
mia-2dlerp merges two images by pixel-wise linearly combining their intensities.
that's it. that's the whole personality. she goes pixel by pixel like a little fairy π§ and does a weighted mix of the two intensities. not me being obsessed with how simple that is π
π OPTIONS π
π The Big Four (the actual required ones)
-1,--first=(input, required); ioβ your first input image. required, so don't forget her. π For supported file types seePLUGINS:2dimage/io-2,--second=(input, required); ioβ your second input image. also required, also important, no favoritism here. For supported file types seePLUGINS:2dimage/io-o,--out-file=(output, required); ioβ the output vector field. yes bestie, that's what the manpage says it is, we don't question it. For supported file types seePLUGINS:2dimage/io-p,--positions=(required); vfloatβ the image series positions, and the order is (first, target, second). remember that order, it's giving choreography. π
π«Ά Help & Info
the "wait, what does this do again" corner. she's here for you.
-V,--verbose=warningβ verbosity of output, print messages of given level and higher priorities. the default vibe iswarning. Supported priorities starting at 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. legal girlie pop behavior. π-h,--helpβ print this help-?,--usageβ print a short help. yes, literally a question mark, she's quirky like that. π--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).
yes, "Maxiumum" is spelled like that in the original and I am NOT fixing it, that's a historical artifact and we respect her π
like, don't ask for more threads than your machine actually has cores, that's just rude to your CPU bestie. leaving it at -1 lets her estimate automatically and she'll handle it. π
π§ͺ Test
--selftest=(); Noneβ run a self test of the program
she checks herself before she wrecks herself. self care queen. π
π PLUGINS: 2dimage/io π
this is the whole roster of file types she can read and write, and what she can actually hold in each one. slay.
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:
π¦ EXAMPLE π¦
okay so picture this: you wanna combine inputA.v and inputB.v by using position coordinates 4, 7, and 9. This means the output pixel values will be evaluated according to
(9-7)/(9-4) * A + (7-4)/(9-4) * B
The result image will be written to output.v
mia-2dlerp -1 inputA.v -2 inputB.v -p 4,7,9 -o output.v
like look at that math, she's doing weighted blending with the positions as anchors. the way that 7 sits between 4 and 9 and the weights are literally the distancesβ¦ it's giving interpolation. it's giving math girlie. it's giving slay. π₯
π AUTHOR(s) π
Gert Wollny
thank you for your service king π«Ά
π 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.
read that warranty part again bestie. ABSOLUTELY NO WARRANTY. caps lock levels of serious. it's free software, it's licensed, and it's very clear about the no-promises part. π
and that's the whole page!! πΈ written for the USER COMMANDS section, version v2.4.7, and yeah the page id is mia-2dlerp(1) because of course it is. go blend something iconic. mwah. π
β¨
π¦ where this page comes from
- ubuntu jammy: mia-tools 2.4.7-8ubuntu1 Β· GPL-3.0-or-later
- ubuntu resolute: mia-tools 2.4.7-18 Β· GPL-3.0-or-later
- ubuntu stonking: mia-tools 2.4.7-19build1 Β· 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