FrameFitting

FrameFitting

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 resolution, frames should be conformed to have the same size. FrameFitting 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 FrameFitting{"fitting",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, pad if necessary:

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

Scope  (3)

Frame fitting 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 FrameFitting when joining videos of different frame dimensions:

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

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

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

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

Text

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

BibTeX

@misc{reference.wolfram_2021_framefitting, author="Wolfram Research", title="{FrameFitting}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/FrameFitting.html}", note=[Accessed: 22-June-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_framefitting, organization={Wolfram Research}, title={FrameFitting}, year={2021}, url={https://reference.wolfram.com/language/ref/FrameFitting.html}, note=[Accessed: 22-June-2021 ]}

CMS

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

APA

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