quickie; how to show integer in window

Posted on 2007-10-16
Last Modified: 2010-04-01
I want to show integer Framerate by the FPS in the preview window for video...How do I do this?

cvNamedWindow("Cam View", 1);
cvShowImage("Cam View               FPS:", NIRImage);

Thanks in advance,

Question by:Wanderinglazyeye
    1 Comment
    LVL 86

    Accepted Solution

    If you want to display the FPS value e.g. in the status bar, you could

    bool MVMFrmApp::OnInit()

        MVMFrm* frame = new MVMFrm(NULL);

        return true;

    and then

    int framerate = 42;
    wxString str;

    str.Format("%d", framerate);

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
    This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
    The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
    The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now