Editing Resize
From Avisynth wiki
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
<div style="max-width:62em" > | <div style="max-width:62em" > | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Scales the input video frames to an arbitrary new resolution, and optionally crops the frame before resizing with sub-pixel precision. | Scales the input video frames to an arbitrary new resolution, and optionally crops the frame before resizing with sub-pixel precision. | ||
Line 17: | Line 11: | ||
:Width and height of the returned clip. | :Width and height of the returned clip. | ||
− | {{Par2|src_left, src_top| | + | {{Par2|src_left, src_top|int|0, 0}} |
:See [[#Cropping |cropping]] discussion below. | :See [[#Cropping |cropping]] discussion below. | ||
<div {{ListItemContinue|2}} > | <div {{ListItemContinue|2}} > | ||
Line 23: | Line 17: | ||
</div> | </div> | ||
− | {{Par2|src_width, src_height| | + | {{Par2|src_width, src_height|int|(source width, height)}} |
:See [[#Cropping |cropping]] discussion below. | :See [[#Cropping |cropping]] discussion below. | ||
<div {{ListItemContinue|2}} > | <div {{ListItemContinue|2}} > | ||
Line 63: | Line 57: | ||
** [[Crop]] any hard borders or noise; '''Resize''' cropping may propagate the noise into the output. | ** [[Crop]] any hard borders or noise; '''Resize''' cropping may propagate the noise into the output. | ||
** Use '''Resize''' cropping to maintain accurate edge rendering when excising a part of a complete image. | ** Use '''Resize''' cropping to maintain accurate edge rendering when excising a part of a complete image. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</div> | </div> | ||
Line 90: | Line 78: | ||
}} | }} | ||
− | '''BicubicResize''' is similar to [[#BilinearResize|BilinearResize]], except that instead of a linear filtering function it uses the [ | + | '''BicubicResize''' is similar to [[#BilinearResize|BilinearResize]], except that instead of a linear filtering function it uses the [http://de.wikipedia.org/wiki/Mitchell-Netravali-Filter Mitchell-Netravali] two-part cubic. The parameters {{FuncArg|b}} and {{FuncArg|c}} can be used to adjust the properties of the cubic; they are sometimes referred to as "blurring" and "ringing" respectively. |
If you are enlarging your video, you will get sharper results with '''BicubicResize''' than with BilinearResize. However, if you are shrinking it, you may prefer [[#BilinearResize|BilinearResize]] as it performs some [[Wikipedia:Spatial_anti-aliasing#Examples|antialiasing]]. | If you are enlarging your video, you will get sharper results with '''BicubicResize''' than with BilinearResize. However, if you are shrinking it, you may prefer [[#BilinearResize|BilinearResize]] as it performs some [[Wikipedia:Spatial_anti-aliasing#Examples|antialiasing]]. | ||
Line 111: | Line 99: | ||
</div> | </div> | ||
</div> | </div> | ||
+ | |||
== BlackmanResize == | == BlackmanResize == | ||
Line 273: | Line 262: | ||
== External Links == | == External Links == | ||
− | * [http://hermidownloads.craqstar.de/videoresizefiltercomparasion/ ''AviSynth resize filter comparison''] (hermidownloads.craqstar.de) | [http://web.archive.org/web/20130815024055/http://hermidownloads.craqstar.de/videoresizefiltercomparasion archived link] | + | * [http://hermidownloads.craqstar.de/videoresizefiltercomparasion/ ''AviSynth resize filter comparison''] (http://hermidownloads.craqstar.de) | [http://web.archive.org/web/20130815024055/http://hermidownloads.craqstar.de/videoresizefiltercomparasion archived link] |
− | * [http://jeanbruenn.info/2011/10/30/upscaling-in-avisynth-comparison-of-resizers/ ''Upscaling in Avisynth – Comparison of resizers''] | + | * [http://jeanbruenn.info/2011/10/30/upscaling-in-avisynth-comparison-of-resizers/ ''Upscaling in Avisynth – Comparison of resizers''] | [http://web.archive.org/web/20140207171106/http://jeanbruenn.info/2011/10/30/upscaling-in-avisynth-comparison-of-resizers/ archived link] |
* [http://web.archive.org/web/20060827184031/http://www.path.unimelb.edu.au/~dersch/interpolator/interpolator.html ''Testing Interpolator Quality''] (Helmut Dersch, Technical University Furtwangen) | * [http://web.archive.org/web/20060827184031/http://www.path.unimelb.edu.au/~dersch/interpolator/interpolator.html ''Testing Interpolator Quality''] (Helmut Dersch, Technical University Furtwangen) | ||
− | * [http://forum.doom9.org/showthread.php?t=172871 | + | * [http://forum.doom9.org/showthread.php?t=172871 Doom9 discussion of resizers for downsizing] |