Weighted Median Filtering
Statement
Let's begin with a little review of unweighted median filtering.
Suppose I have a list of real-valued numbers, . Let be the median of consecutive values: median. Let . The act of transforming to is called (unweighted) median filtering. We usually imagine , and frequently we assume that is odd (so the median is unambiguously defined).
Median filtering is a useful smoothing technique in signal processing because it is robust against outliers; apparently the 2 dimensional analogue is useful in image processing because it smooths images while keeping edges relatively intact.
There is a naive algorithm to compute from (take each of the windows , sort in time, and report the medians). However, this performance can be substantially improved (both in theory and practice). The true complexity is ; see [Suomela, 2014] for an overview of algorithms that can achieve this (plus a clever, new algorithm).
I am interested in a closely (?) related problem, weighted median filtering. Given a set of weights, …
Posed by Bill Bradley · algorithms, computational-complexity, signal-analysis
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-221633.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-221633.lean
import Mathlib /-! # Weighted Median Filtering Source: https://mathoverflow.net/questions/221633 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_221633 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_221633