Lanczos interpolation and resampling | Image processing

  Рет қаралды 7,241

Edgar Programmator

Edgar Programmator

2 жыл бұрын

Lanczos interpolation in image processing. Resampling data with Lanczos interpolation.
Slideshow: isedgar.github.io/lanczos-int...
Reference: en.wikipedia.org/wiki/Lanczos...
JS demo: github.com/isedgar/interpolation
My Instagram: / edgardocpu

Пікірлер: 13
@andrew.chinery
@andrew.chinery 2 жыл бұрын
This is a nice explanation. If you don't mind a suggestion, consider recording some human audio for this or others in the future, I think it'd really improve the impact and digestibility.
@EdgarProgrammator
@EdgarProgrammator 2 жыл бұрын
Thank you. Working on it
@MyApanas
@MyApanas 2 жыл бұрын
Awesome. Seriously, great! Very useful!
@niks660097
@niks660097 2 жыл бұрын
So this is how FSR works, extremely cool...
@EdgarProgrammator
@EdgarProgrammator 2 жыл бұрын
Yes, this is the AMD's algorithm😂
@Richard_the_fox
@Richard_the_fox Жыл бұрын
Recommend a program to resize an image with a Lanczos filter (2 and 4)
@oldspammer
@oldspammer 7 ай бұрын
I did this kind of subpixel interpolation for image rotations of RGB images circa 2000 or so, and I too was using Hungarian math dude's excellent filtering method, but I experimentally adjusted the radius, dampening, and so on to get the lowest error for when the image was rotated back to the original orientation by using Euclidian geometric distance calculation between the before image reference and the after rotating forward and back transformed image--least squares of the differences between (Red1 - Red0)^2 + (Green1 - Green0)^2 + (Blue1 - Blue0)^2 and summing all of those for all the pixels in the entire before and after image rotation. The LS error quantities for larger images were of course HUGE. I also never used 90-degree rotations--why bother when those can be done by transposing pixels from one place to another? I was also considering if I should process separately the R, G, and B, or convert the color space to other models where image brightness was considered most important like in NTSC where the color of the pixels uses less bandwidth in the signal. From what I recall I used a known model for pixel image intensity that had the same response curves for sensitivity that matched the human eye. The rights to the source code were sold to the funders of the imaging library that our group had developed. The reason to do this stuff is semantic image understanding by using complex-valued neural networks that are affine transform immune, then using a lot of training data so that various objects from the real world can be identified, etc. My research was cut short by the tech meltdown where the major contracts for my software development consulting employer were cut off by them having hired too many dead-weight employees doing all kinds of fancy artwork adornments for the image and text pages served. Then at around the same time, the sole company owner died due to a heart attack or stroke by remaining unsupervised in his home sauna while his wife/girlfriend had gone to bed sometime beforehand. His name was John Garay and he died summer 2002. It was not known to me at the time, but I recently learned why it was that so many businesses went under so that their stock value became worthless. Glenn Beck explained how most of the key companies to remain unscathed by this meltdown were being fed capital through shell companies for the three-letter espionage and intelligence organizations of the US Federal Government of the time. So, it was not deep pockets of rich investors doing this cash burn rate funding, but Uncle Sam and the taxpayer. Who would know otherwise? In any case, that's actually unethical, unfair, or unsportsmanlike conduct ("dirty pool" 1940s expression)--fraud--massive market distortion. The beneficiaries were Google, Oracle, and some others who were getting this infusion of tax dollars. This tech meltdown may have been caused by click-through ads on web pages having a huge collapse in pricing. Who is it that does a lot of ads? Who might have artificially priced the ads way lower than the existing market value at the time? Probably the very same people who ended up cornering the market that they collapsed by using these Uncle Sam and taxpayer cash infusions.
@EdgarProgrammator
@EdgarProgrammator 7 ай бұрын
Thanks for sharing.
@oldspammer
@oldspammer 7 ай бұрын
​@@EdgarProgrammatorI am getting old so am forgetful about details. I recall vaguely some information but had to consult the Bing chatbot with my clues as to which complex-valued neural network book author in that I was interested. Here is my query in Bing that I modified as the results from the chatbot were constantly wrong... > Japanese man who wrote a book about complex-valued neural networks having complex-valued weights. No. it was not Kunihiko Fukushima or Akira Hirose. He wrote some books on the topic at or prior to year 2000 at some point. His name was something like NITTY or sounded similar to that. Yes. Nobuyuki Nitta sounds right. Tell me if he is still alive and some things he said about CVNN that would help me write C++ implementation of them.< From what I recall doing was just taking a backpropagation standard neural network and then implementing it so that it used complex number math involved with its weights. At that time I could not get it to converge even on a local maxima or minima as the case may be. Perhaps if the chatGPT would not be such a hindrance to me, I could re-write the implementation to converge and train very nicely?
@DoanHuuNoi
@DoanHuuNoi Жыл бұрын
I see somewhere mentions the second condition is from -a
@EdgarProgrammator
@EdgarProgrammator Жыл бұрын
If x=a or x=-a the function returns 0 since sin(pi*x/a) = 0 and sin(pi*-x/a) = 0. So -a
Resizing Images - Computerphile
9:22
Computerphile
Рет қаралды 468 М.
Cubic interpolation and resampling | Image processing
8:08
Edgar Programmator
Рет қаралды 10 М.
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 130 МЛН
One moment can change your life ✨🔄
00:32
A4
Рет қаралды 34 МЛН
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 6 МЛН
Cornelius Lanczos (1893-1974) about mathematics
55:52
ManUniMaths
Рет қаралды 38 М.
Bicubic Interpolation - Computerphile
8:36
Computerphile
Рет қаралды 262 М.
How I think about Gradient Descent
5:31
How I think about
Рет қаралды 1,4 М.
BACK TO BASIC - INTERPOLATION
9:49
Bac Nguyen
Рет қаралды 10 М.
Low Pass Filters & High Pass Filters : Data Science Concepts
11:35
Image Scaling & Filtering
11:28
0612 TV w/ NERDfirst
Рет қаралды 17 М.
Image filtering: pyramids: Gaussian pyramid
10:51
Hany Farid, Professor at UC Berkeley
Рет қаралды 3,5 М.
Are you Bayesian or Frequentist?
7:03
Cassie Kozyrkov
Рет қаралды 242 М.
Interpolation in 5 minutes
5:31
Graphics in 5 Minutes
Рет қаралды 16 М.
Linear interpolation and resampling | Image processing
5:15
Edgar Programmator
Рет қаралды 10 М.
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 2,2 МЛН
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 4,9 МЛН
Looks very comfortable. #leddisplay #ledscreen #ledwall #eagerled
0:19
LED Screen Factory-EagerLED
Рет қаралды 1,7 МЛН
Самый тонкий смартфон в мире!
0:55
Не шарю!
Рет қаралды 111 М.