Coder Social home page Coder Social logo

ipwithopencv's People

Watchers

 avatar

ipwithopencv's Issues

Undefined Rederence to

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

Unexpected Behaviour on larger point sets

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.