Could SVD be used for Seam Carving ? I am making a small program for a uni course and I'm looking for different ways to calculate pixel energy; which made me come across SVD.
Among others, I have read this link and this one and it makes me wonder if SVD could be used as a good energy function.
I still have trouble understanding how I could make sense of the matrices in that regard. Any advice ?
2026-03-27 03:57:28.1774583848
SVD for Seam Carving
85 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in NUMERICAL-LINEAR-ALGEBRA
- sources about SVD complexity
- Showing that the Jacobi method doesn't converge with $A=\begin{bmatrix}2 & \pm2\sqrt2 & 0 \\ \pm2\sqrt2&8&\pm2\sqrt2 \\ 0&\pm2\sqrt2&2 \end{bmatrix}$
- Finding $Ax=b$ iteratively using residuum vectors
- Pack two fractional values into a single integer while preserving a total order
- Use Gershgorin's theorem to show that a matrix is nonsingular
- Rate of convergence of Newton's method near a double root.
- Linear Algebra - Linear Combinations Question
- Proof of an error estimation/inequality for a linear $Ax=b$.
- How to find a set of $2k-1$ vectors such that each element of set is an element of $\mathcal{R}$ and any $k$ elements of set are linearly independent?
- Understanding iterative methods for solving $Ax=b$ and why they are iterative
Related Questions in SVD
- Singular values by QR decomposition
- Are reduced SVD and truncated SVD the same thing?
- Clarification on the SVD of a complex matrix
- Sufficient/necessary condition for submatrix determinant (minor) that decreases with size?
- Intuitive explanation of the singular values
- SVD of matrix plus diagonal matrix and inversed
- Fitting a sum of exponentials using SVD
- Solution to least squares problem
- Are all three matrices in Singular Value Decomposition orthornormal?
- Solving linear system to find weights in $[0,1]$
Related Questions in IMAGE-PROCESSING
- Defintion Ideally sampled image
- Show that a periodic function $f(t)$ with period $T$ can be written as $ f(t) = f_T (t) \star \frac{1}{T} \text{comb}\bigg(\frac{t}{T}\bigg) $
- Apply affine heat equation on images
- Are there analogues to orthogonal transformations in non-orientable surfaces?
- How does Fourier transform convert from time domain to frequency domain
- Increasing the accuracy with techniques of interpolation
- How to interpret probability density function of transformed variable?
- Why are median filters non-separable?
- Solving Deconvolution using Conjugate Gradient
- How to deblur a image matrix blured by two circulant matrix?
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
I doubt heavily about it, for Seam Carving you need to find an energy function that hints you about the different structures in the image, these are well represented by contours (thats why one of the best energy functions is gradient magnitude).
In SVD you decompose the matrix as a sum of rank 1 matrices, with their respective singular values
$ A = \sum \sigma_i u_i v_i^t $
So you are decomposing the image $A$ in $rank(A)$ ammount of images, and from them you would like to construct this energy function. Problem is that these rank 1 matrices look terrible for Seam Carving, as there are no contours from each of them individually (take for example the first image obtained in the first link you provided, that is a typical rank 1 matrix).
You could test this super fast (if you have matlab), here you have a code to see it:
% Get any image
I = double(imread('cameraman.tif'));
% Obtain the SVD decomposition
[U,S,V]=svd(I);
% Define J, an image composed of stacking up the rank 1 matrices
J=zeros(size(I));
% Here you start adding up all the matrices, this setting adds all matrices up but modifiying "a" and "b" you can get subsets of the SVD
a=0;
b=0;
for i=1+b:rank(I)-a
J = J + S(i,i)*U(:,i)*V(:,i)';
%S(i,i) are the singular values, and U(:,i)*V(:,i)' are the rank 1 matrices.
end
imshow(J/max(max(J)))