Jump to content

User talk:Tmoyar

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Welcome!

Hello, Tmoyar! Welcome to Wikipedia! Thank you for your contributions. You may benefit from following some of the links below, which will help you get the most out of Wikipedia. If you have any questions you can ask me on my talk page, or place {{helpme}} on your talk page and ask your question there. Please remember to sign your name on talk pages by clicking or by typing four tildes "~~~~"; this will automatically produce your name and the date. If you are already excited about Wikipedia, you might want to consider being "adopted" by a more experienced editor or joining a WikiProject to collaborate with others in creating and improving articles of your interest. Click here for a directory of all the WikiProjects. Finally, please do your best to always fill in the edit summary field when making edits to pages. Happy editing! I dream of horses If you reply here, please leave me a {{Talkback}} message on my talk page. @ 00:32, 3 November 2014 (UTC)[reply]
Getting Started
Getting Help
Policies and Guidelines

The Community
Things to do
Miscellaneous

Please reconsider the revert of Lanczos resampling formula

[edit]

The two source files you referenced were indeed the ones I was looking at when I made the correction. Sinc is already defined with \pi multiplier. If you insert \pi again in the sinc formula, it will become sin (\pi^2 x)/(\pi^2 x). I tried that formula before and it led to disastrous results, which is why I made the correction to the formula in question.

EDIT: since the filter code for the two ImageMagick and MPV are buried beneath many abstractions, I searched and found another implementation that is more direct: https://github.com/python-pillow/Pillow/blob/main/src/libImaging/Resample.c#L74 . It indeed shows that π is multiplied only once as part of the definition of sinc function, and the argument of sinc function does not contain π. Syockit (talk) 01:45, 5 February 2024 (UTC)[reply]

I see your point, I wasn't familiar with the convention of defining sinc as sin(pi*x)/(pi*x). If you want, you can revert my change. Tmoyar (talk) 18:57, 8 February 2024 (UTC)[reply]
Thank you! Will do so! Syockit (talk) 00:18, 10 February 2024 (UTC)[reply]