Python tours · Numerical Tours

5 min read Original article ↗

Open notebooks · Mathematical data science

Learn by computing.

Explore the mathematics of images, learning, and geometry.
Read an experiment, run the code, and follow the ideas.

58Python tours
from foundations to research

The Python collection

58 tours

Computed results from Fourier and Wavelet Approximation

Foundations

Fourier and Wavelet Approximation

Represent the same image in Fourier and wavelet coordinates, then reconstruct it from a limited number of coefficients.

Computed results from Two-Dimensional Daubechies Wavelets

Wavelets & compression

Two-Dimensional Daubechies Wavelets

Build a separable orthogonal wavelet transform from its analysis filters and reconstruct the image with the corresponding synthesis filters.

Computed results from Entropy Coding and Compression

Wavelets & compression

Entropy Coding and Compression

Construct Huffman codes from symbol probabilities and check that encoding followed by decoding recovers the data exactly.

Computed results from Linear Image Denoising

Image restoration

Linear Image Denoising

Study denoising as a tradeoff between suppressing random fluctuations and retaining useful detail.

Computed results from Wavelet Image Denoising

Image restoration

Wavelet Image Denoising

Remove noise by shrinking wavelet coefficients and reconstructing the image.

Computed results from Wavelet Block Thresholding

Image restoration

Wavelet Block Thresholding

Process neighboring wavelet coefficients together instead of thresholding each coefficient independently.

Computed results from Nonlocal Means Denoising

Image restoration

Nonlocal Means Denoising

Find similar image patches and average their center pixels using similarity weights.

Computed results from Sparse Image Inpainting

Inverse problems

Sparse Image Inpainting

Reconstruct missing pixels by promoting sparsity in a wavelet representation.

Computed results from Learning Sparse Dictionaries

Inverse problems

Learning Sparse Dictionaries

Learn an overcomplete collection of image atoms by alternating sparse coding and dictionary updates.

Computed results from Gradient Descent

Optimization

Gradient Descent

Follow gradient descent on smooth objectives and apply it to image restoration.

Computed results from Interior-Point Methods

Optimization

Interior-Point Methods

Approach constrained optimization from the interior of the feasible set using a logarithmic barrier.

Computed results from Image Edge Detection

Geometry & segmentation

Image Edge Detection

Locate image boundaries using derivatives at several scales.

Computed results from Level-Set Active Contours

Geometry & segmentation

Level-Set Active Contours

Represent a moving contour as the zero level of a function and evolve that function on a grid.

Computed results from Dijkstra and Fast Marching

Geometry & segmentation

Dijkstra and Fast Marching

Propagate a distance front through a weighted domain, first with a graph update and then with an eikonal update.

Computed results from Manifold Learning with Isomap

Geometry & segmentation

Manifold Learning with Isomap

Recover a low-dimensional representation of a curved point cloud using neighborhood-graph distances.

Computed results from Mesh Parameterization

Geometry & segmentation

Mesh Parameterization

Map a triangulated surface into the plane by fixing its boundary and solving for interior coordinates.

Computed results from Mesh Denoising

Geometry & segmentation

Mesh Denoising

Smooth noisy vertex positions using discrete differential operators on a triangulated surface.

Computed results from Gaussian Texture Synthesis

Signals & graphics

Gaussian Texture Synthesis

Generate random textures with prescribed second-order statistics using Fourier-domain operations.

Computed results from Fluid Dynamics

Signals & graphics

Fluid Dynamics

Advect a velocity field and an image through a two-dimensional domain.

Computed results from Multilayer Perceptrons

Machine learning

Multilayer Perceptrons

Build a small neural network and differentiate its loss through successive layers.

Computed results from Deep Texture Synthesis

Machine learning

Deep Texture Synthesis

Synthesize a texture by matching Gram matrices of pretrained convolutional features.

Computed results from Graphical Lasso

Machine learning

Graphical Lasso

Infer sparse conditional dependencies by estimating a Gaussian precision matrix.

Computed results from Interacting Particle Systems

Machine learning

Interacting Particle Systems

Evolve a cloud of particles under pairwise kernel interactions and compare analytic and automatic gradients.

Computed results from Conformal Prediction

Machine learning

Conformal Prediction

Construct prediction regions by comparing a candidate observation with observed conformity scores.