Shapes & spaces

Projective conic transformation calculator under a homography

Transform an implicit projective conic through an entered homography.

Your numbers

One comma-separated coordinate or matrix row per line.
One comma-separated coordinate or matrix row per line.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Transform an implicit projective conic through an entered homography. The page reports normalized coefficients,affine type and a congruence reconstruction residual under a clear homogeneous-coordinate convention.

THE FORMULAC′=H^(−T) C H⁻¹; homogeneous points transform by x′=Hx.

A worked example

The unit circle matrix diag(1,1,−1) under H=diag(2,1,1) becomes the ellipse x²/4+y²−1=0. The normalized output coefficients are0.25,0,1,0,0,−1.

Good to know

Symmetric nonzero3×3conic matrix and invertible3×3homography with bounded finite entries. Floating arithmetic and tolerance-based affine classification;ellipse type does not itself prove a real locus. No image resampling,point-correspondence fit or exact-rational certificate.

A conic matrix represents an implicit projective curve

A homogeneous point x lies on the conic when x transpose C x is zero. Off-diagonal entries contribute twice to the corresponding mixed polynomial coefficient,so the matrix and a six-coefficient equation need a consistent conversion.

Multiplying C by any nonzero scalar preserves its zero set. The output normalizes one scale for readability,but that scale does not create a different curve. Negative and positive scalar multiples should therefore not be compared as distinct geometric conics.

The circle-stretch example checks inverse placementH=diag(2,1,1)x²/4+y²=1A point stretch uses inverse conic coefficients
Scroll across to see the full diagram.
The unit circle matrix diag(1,1,−1) under H=diag(2,1,1) becomes the ellipse x²/4+y²−1=0. The normalized output coefficients are0.25,0,1,0,0,−1.

Compare this with the Projective homography calculator from four point pairs. Transforming four point correspondences does not return a conic's coefficients or degeneracy classification.

Use the point-map convention in the formula

The entered homography maps old homogeneous coordinates to new ones by x prime equals Hx. Substituting the inverse map into the original conic gives H inverse transpose times C times H inverse as the transformed conic matrix.

Using H transpose C H would instead pull a conic back in the opposite direction. The distinction matters even for a simple scale transformation and becomes less visually obvious when the homography contains perspective terms or changes the affine chart.

Symmetry and invertibility are genuine requirements

Only the symmetric part of a quadratic matrix contributes to x transpose C x,but this interface requires a symmetric input explicitly rather than silently altering a malformed matrix. The conic must also be nonzero to define a meaningful quadratic equation.

The homography must be invertible. A singular matrix can collapse the plane and does not have the inverse required by the stated transformation law. Numerical singularity is rejected instead of replaced with a pseudoinverse that would solve a different mapping problem.

The circle-stretch example checks inverse placement

Scaling x coordinates by two sends a unit circle point(cos t,sin t) to(2cos t,sin t). Those points satisfy x²/4+y²=1,so the transformed x²coefficient must be one quarter rather than four.

The default normalized matrix produces exactly that coefficient pattern up to numerical precision. This easy example catches an inverse-versus-forward confusion that might otherwise survive a complicated-looking matrix multiplication and a plausible affine type label.

Affine type depends on the chosen infinity line

A nonsingular projective conic has no intrinsic ellipse,parabola or hyperbola label independent of an affine chart. The displayed classification uses the usual chart whose third homogeneous coordinate is one. Perspective transformations can change how the same projective object meets its line at infinity.

The quadratic-part discriminant separates affine types under numerical tolerances. A negative discriminant labels an ellipse-type equation but does not alone establish a nonempty real ellipse. Sign and constant-term conditions still matter for the real locus.

The congruence residual checks reconstruction

Transforming the unnormalized result back with H transpose and H should recover the original conic matrix. The Frobenius residual measures that reconstruction identity before presentation normalization removes the arbitrary scale.

This is a numerical consistency diagnostic rather than an exact arithmetic proof or a condition-number estimate. A poorly conditioned homography can magnify small input errors even when a finite computation returns a small residual for the rounded values it actually received.

Keep geometry separate from image processing

A conic matrix describes an implicit curve. This page does not warp pixels,fit a camera model,remove lens distortion or robustly estimate H from noisy point correspondences. Those tasks need data and objective functions absent from this interface.

When exporting coefficients,retain their order A,B,C,D,E,F and the coordinate-map direction. That makes it possible to reconstruct Ax²+Bxy+Cy²+Dx+Ey+F correctly rather than confusing the symmetric matrix’s half mixed terms with full polynomial coefficients.

A few questions, answered

Why does the formula contain an inverse?

The old conic equation must be rewritten in the new coordinates using the inverse point map.

Do scalar multiples define the same conic?

Yes. Any nonzero common scalar preserves the homogeneous zero set.

Does ellipse type guarantee real points?

No. The affine discriminant alone does not establish a nonempty real locus.

Does it transform an image?

No. It transforms the implicit conic matrix,not pixels.

Find your calculator

Start typing to explore the library.