[Gdal-dev] RE: GCPs and Thin Plate Splines - C++
Frank Warmerdam
warmerdam at pobox.com
Fri Mar 9 14:30:42 EST 2007
chris pozsgai wrote:
> Hello again..
>
> I would like to repost my query to the mailing list regarding the thin plate
> splines... (I now have access to my code and the internet at the same time.)
>
> I was able to get reasonable results using the
> GDALGCPsToGeoTransform function to generate a geo transform, but I would
> like to have an exact fit at the GCPs. That drove me to delve further
> into the
> GDAL functionality where I ran across the warping functions.
>
> I tried to first use the gdal warper to be able to reproduce the results
> I got
> using the GDALGCPstoGeoTransform function with the warper. I was
> not able to do that, but here is the code that I wrote. My intention was to
> look at the TPS transform's ability to preserve the GCP values, but I
> could not
> get that to work, or even to reproduce the results from
> GDALGCPsToGeoTransform
> using regular GCP warping.
>
> I apologize for putting this much code on the mailing but I guess it's
> the best way....
Chris,
I'm sorry for being dense, but I've lost track of what you are asking us to
look for in the following code. Are you having trouble getting the warp
api to work with the GCP transformer (using polynomials)? Or is it just
the TPS that wasn't working for you? Is it that you get a poor warp or
that nothing works?
I hesitate to try and grok a substantial amount of code in the hopes of
then realizing what it is you wanted me to look for. This is very time
and frustration intensive.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
More information about the Gdal-dev
mailing list