Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to align vector and raster images? For example vector images will be static/rigid and raster image will be morphable. For example I manually do initial guess and algorithm must converge to optimal solution by morphing raster image. I have raster and vector data represented as point clouds in 2d. Raster data extracted as contours so it contain some noise. Raster and vector data slightly differs in scale and position,raster data can also have some small perspective distortion and barrel distortion, but I can provide initian alignment. I want to raster data "converged" to unchangeble vector data, so I think I want some kind of non-rigid point cloud matching. By alignment of 2 point clouds then I want to determine some parameters(maybe TPS spline?) and unwarp raster image and then draw vector image above it.

this video using ceres solver shows something like I want to achive other maybe related imgs 1 2 3

I tried to use KCReg it use some specific metric for point clouds, but it give me unsatisfactory results because my distortion can be only roughly expressed by perspective transform and I need some more non-rigid alignment.I also tried gmmreg. I seems it uses some Broyden Fletcher Goldfarb Shannon minimization from VNL, but I managed to achive good results only for simple tasks for example here some my attempts using gmmreg

for example affine

barrel-barrel backwards-barrel rigid rigid scale rotate shift

but it fails on real problem, maybe I don't set constraints/bounds or initial guess well. rigid shift TPS_L2 no guess TPS_L2 initial guess

share|improve this question

closed as not a real question by whuber Feb 26 '13 at 15:22

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

A small example of your data might help us understand this question. As its stands it is confusing because it refers to its input variously as a "point cloud," a set of "contours", a "raster," and an "image." It also does not specify whether you simply want to "warp/rubbersheet" a dataset or orthocorrect it. Moreover, you do not describe how your attempt "fails" on a "real problem." Without this additional information I'm afraid this question will remain unanswerable. – whuber Feb 25 '13 at 14:28