gnoliyil / ipwithopencv Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/ipwithopencv
Automatically exported from code.google.com/p/ipwithopencv
What steps will reproduce the problem?
1. Code implemented, Image implemented, std::vector implemented
2. Command CThinPlateSpline tps(iP ,iiP);
tps.warpImage(_Image, _TPSImage, 0.01, INTER_CUBIC, BACK_WARP);
What is the expected output? What do you see instead?
Expected Output is a Thin Plate Splines Transformation.
Errors:
cpp:566: error: undefined reference to
`CThinPlateSpline::CThinPlateSpline(std::vector<cv::Point_<int>,
std::allocator<cv::Point_<int> > > const&, std::vector<cv::Point_<int>,
std::allocator<cv::Point_<int> > > const&)'
.cpp:566: error: undefined reference to `CThinPlateSpline::~CThinPlateSpline()'
:-1: error: collect2: error: ld returned 1 exit status
What version of the product are you using? On what operating system?
latest version
Have you ever experienced this issue?
Thanks,
Arthur
Original issue reported on code.google.com by [email protected]
on 27 May 2013 at 11:58
What steps will reproduce the problem?
1. Modify the example code to use following snipplet
std::vector<realPoint> iP, iiP;
int height = 512;
int width = 512;
int nppdim = 20;
double dd = (double)width / nppdim;
for (int y = 0; y < nppdim; y++) {
for (int x = 0; x < nppdim; x++) {
iP.push_back(realPoint(x*dd, y*dd));
iiP.push_back(realPoint(x*dd, y*dd));
}
}
iP.push_back(realPoint(0, 0));
iiP.push_back(realPoint(0, 0));
iP.push_back(realPoint(0, height - 1));
iiP.push_back(realPoint(0, height - 1));
iP.push_back(realPoint(width - 1, 0));
iiP.push_back(realPoint(width - 1, 0));
iP.push_back(realPoint(width - 1, height - 1));
iiP.push_back(realPoint(width - 1, height - 1));
2. See an unexpected distortion ( this comes from floating point calcs i think )
expected output:
the same image as the original!
instead:
the image get's distorted!
Bugfix:
in computeSplineCoeffs:
-> make all the matrixes double precission ( instead of float )
in fktU:
shouldn't it be "(r2 * log(r))" instead of "(r2 * log(r2))" ?
Original issue reported on code.google.com by [email protected]
on 8 Nov 2014 at 3:29
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.