ConformationMethod

ConformationMethod

is an option for VideoJoin and others that specifies how to conform frames of different videos.

Details

  • When combining video objects that have different frame resolutions, frames should be conformed to have the same size. ConformationMethod specifies how to perform this conformation.
  • Typical settings include:
  • "Fill"fit the smaller dimension; crop the other if necessary
    "Fit"fit the whole image; keep the aspect ratio; pad if necessary
    "Pad"pad and/or crop without resampling
    "Stretch"stretch the image to fit by resampling
    "Letterbox"fit the width; pad and/or crop in other dimensions
    "Pillarbox"fit the height; pad and/or crop in other dimensions
    "Windowbox"fit to the center; pad all sides
  • By default, typically black padding is used around the image. Use ConformationMethod{"method",Paddingpad} to specify a different padding value or scheme.

Examples

open allclose all

Basic Examples  (1)

Frame fitting specifies how frames should be resized to fit into a different size or aspect ratio video:

By default, most functions resize the frame so that it fits to the new frame size and pad if necessary:

Use ConformationMethod"Fill" to fit frames into the common size and avoid padding:

Scope  (3)

Conformation method specifies how frames should be resized to fit into a different size or aspect ratio video:

Check the original image dimensions:

Compare different fitting methods:

Specify the padding color to use when padding is introduced:

Use a different padding scheme:

Use ConformationMethod when joining videos of different frame dimensions:

The "Fit" method resizes images, preserving aspect ratio, and then pads if necessary:

Use ConformationMethod"Fill" to fit frames into the common size and avoid padding:

The "Stretch" method stretches the frames, which may distort image features:

Properties & Relations  (2)

Some functions take a RasterSize option to control the dimensions of the resulting video:

Specify the method to use to make frames fit into the specified size:

Specify the padding value or scheme to use when padding images to the specified size:

The methods accepted by ConformationMethod are the same as can be used with ConformImages:

Specify a fitting method with the ConformationMethod option:

Specify a fitting method with ConformImages:

Specify a padding value with the ConformationMethod option:

Specify a padding value with ConformImages:

Wolfram Research (2021), ConformationMethod, Wolfram Language function, https://reference.wolfram.com/language/ref/ConformationMethod.html.

Text

Wolfram Research (2021), ConformationMethod, Wolfram Language function, https://reference.wolfram.com/language/ref/ConformationMethod.html.

CMS

Wolfram Language. 2021. "ConformationMethod." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ConformationMethod.html.

APA

Wolfram Language. (2021). ConformationMethod. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ConformationMethod.html

BibTeX

@misc{reference.wolfram_2024_conformationmethod, author="Wolfram Research", title="{ConformationMethod}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/ConformationMethod.html}", note=[Accessed: 04-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_conformationmethod, organization={Wolfram Research}, title={ConformationMethod}, year={2021}, url={https://reference.wolfram.com/language/ref/ConformationMethod.html}, note=[Accessed: 04-November-2024 ]}