Editing Resize

From Avisynth wiki
Jump to: navigation, search

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" >
 
<div {{BlueBox2|40|0|3px solid purple}} >
 
{{AvsPlusFullname}}<br>
 
Up-to-date documentation: [https://avisynthplus.readthedocs.io/en/latest/avisynthdoc/corefilters/resize.html https://avisynthplus.readthedocs.io]
 
</div>
 
 
 
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|float|0, 0}}
+
{{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|float|(source width, 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.
 
*Negative cropping is allowed; this results in repeated edge pixels as shown below:
 
<div {{BoxWidthIndent|54|3}} >
 
BilinearResize(Width, Height, -64, -64, Width, Height)
 
</div>
 
:[[File:Sintel_frm6291_Resize_shift.jpg|680px]]
 
 
</div>
 
</div>
  
Line 90: Line 78:
 
}}
 
}}
  
'''BicubicResize''' is similar to [[#BilinearResize|BilinearResize]], except that instead of a linear filtering function it uses the [[Wikipedia:Mitchell–Netravali_filters|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.
+
'''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''] (jeanbruenn.info) | [http://web.archive.org/web/20140207171106/http://jeanbruenn.info/2011/10/30/upscaling-in-avisynth-comparison-of-resizers/ archived link]
+
* [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 ''Discussion of resizers for downsizing''] (doom9.org)
+
* [http://forum.doom9.org/showthread.php?t=172871 Doom9 discussion of resizers for downsizing]
  
  

Please note that all contributions to Avisynth wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Avisynth wiki:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)
Personal tools