Giter VIP home page Giter VIP logo

Comments (5)

delmottea avatar delmottea commented on July 26, 2024

I got an error with your 2 images, but not at the same position than you (the error happened when all the detected features are in the selected area and no one outside), I committed an update on CMT.cpp and it works with your 2 images on my computer.
Can you try again and say me if it works?

Do you call cmt.initialise on the first frame before calling cmt.processFrame?

thanks

from libcmt.

pthtruc avatar pthtruc commented on July 26, 2024

It works on the two images and some other videos!
Yes, I did call cmt.initalise(im, topleft, bottomright) on the first frame.

In my codes, I just add the below since those two are not defined in C/C++. Do you think it makes any difference?
#define NAN (INT_MIN)
#define isnan(x) ( ((x)==NAN)? 1: 0 )

from libcmt.

delmottea avatar delmottea commented on July 26, 2024

INT_MIN may not be the best for define NAN but maybe it works.
The best solution is to compile with c++11 that defines NAN
I made a new commit with compatibility code that I have found on internet, it should work but maybe it's dependent of the compiler.

from libcmt.

pthtruc avatar pthtruc commented on July 26, 2024

Thank you, delmottea, for your great work!
Quick questions:

  • how can we check whether the tracker was intialized? is it (nbInitialKeypoints > 0)?
  • should we nbInitialKeypoints = 0; in the CMT() constructor?
    Minor comment: since you are using OpenCV, can we just simply use CV_PI instead of M_PI?

from libcmt.

delmottea avatar delmottea commented on July 26, 2024

I've added nbInitialKeypoints = 0 in the constructor so you can use it to check if it's initialized.
and thanks for the CV_PI constant, I didn't thought to use it

from libcmt.

Related Issues (15)

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.