Search:

Type: Posts; User: nacho4d

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,419

    calloc is originally from C but you can use it in...

    calloc is originally from C but you can use it in C++ too.

    It puts zeros in the allocated memory chunk :)

    calloc - C++ Reference
  2. Thread: Open cv

    by nacho4d
    Replies
    1
    Views
    992

    I have the impression you are not understanding...

    I have the impression you are not understanding what the program is doing .
    In order to detect skin color is better to use HSV color space rather than the usual RGB (that is why you use cvCvtColor()...
  3. Replies
    4
    Views
    8,913

    passing operator as a parameter

    Hi,

    I want to have a function that evaluates 2 char vars (like a truth table)

    for example:

    since

    T | F : T
  4. Hint: Create a struct for saving data. Use...

    Hint:

    Create a struct for saving data. Use File, fopen, fclose for file reading.
    Use fscanf to get name and age ;)
  5. Replies
    2
    Views
    2,744

    Thanks ;)

    It worked ;)
    I barely ask questions here, but somehow you are the one who always solves them ;) Thanks a lot.
  6. Replies
    2
    Views
    2,744

    Deleting an object while iterating

    Hi,
    I wrote this but I am not sure if is correct.

    for (vector< vector<Point> >::iterator track = tracks_.begin(); track != tracks_.end(); track++) {
    if (track->empty()) { // if track is empty,...
  7. Replies
    4
    Views
    36,580

    Thanks MK27, I completely forgot about snprintf().

    Thanks MK27, I completely forgot about snprintf().
  8. Replies
    4
    Views
    36,580

    sprintf_s in unix?

    Hi all
    I have a very large program I want to run in my unix computer (Mac) and Windows at the same time.
    so I have defined:



    #ifndef WIN32
    void sprintf_s(char *buffer, size_t sizeOfBuffer,...
  9. Replies
    3
    Views
    1,671

    Thanks! that was the problem, I change my method...

    Thanks! that was the problem, I change my method from this
    blob LLAHTracking::ClosestBlobToPoint2D(CvPoint point);
    to this
    blob * LLAHTracking::ClosestBlobToPoint2D(CvPoint point);
    also I am...
  10. Replies
    2
    Views
    2,311

    Hi, I just saw your code, I did not run it. I am...

    Hi, I just saw your code, I did not run it.
    I am not a C++ expert but I have a strong C and Objective-C and OpenGL background and I think your program is well designed. ;) (Hence, easy to read.)...
  11. Replies
    3
    Views
    1,671

    Method returning NULL fails?

    Hi,
    I have the following method and I would like to know why this makes my program to crash?
    I come from an Objective-C background where nothing occurs when an instance that is NULL or zero is...
  12. Replies
    7
    Views
    3,882

    Hey, Thanks for your answers, they were correct...

    Hey, Thanks for your answers, they were correct in some way.
    The problem was my constructor should pass data by reference and not by value.
    I actually come from an Objective-C background where...
  13. Replies
    7
    Views
    3,882

    sorry it was not sufficient... here is part of...

    sorry it was not sufficient...
    here is part of my CVImageLabelator implementation:


    class CVImage;
    class CVImageLabelator : public CVImage
    {
    public:

    CVImageLabelator():m_label(NULL) {};
  14. Replies
    7
    Views
    3,882

    Copy Constructor from super class?

    Hi,

    i have a class CVImage
    and its subclass CVImageLabelator,
    I want to instantiate a CVImageLabelator from a CVImage but I am getting errors and I think is because this new instance is not well...
  15. Replies
    2
    Views
    3,128

    Thanks ... I realized it was a known bug of...

    Thanks ...
    I realized it was a known bug of Xcode 3.2.1
    I have to Delete _GLIBCXX_DEBUG=1 _GLIBCXX_DEBUG_PEDANTIC=1 flags from Degug Configuration.

    Solution is here:
    Xcode 3.2.1 and C++ string...
  16. Replies
    2
    Views
    3,128

    CPP: cannot read with ifstream?

    Hi,

    I am having trouble reading some files in standard cpp.
    (The path is correct, but when reading the files I don't get any input)
    And I think posix permissions might be causing the problem
    So...
  17. Replies
    6
    Views
    5,149

    adding class MyLabel; to CVImage.hpp works...

    adding
    class MyLabel;
    to CVImage.hpp works fine In the meaning that It compiles.

    but when start using it, it does not compile anymore
    for example inside some CVImage method:
    MyLabel...
  18. Replies
    6
    Views
    5,149

    thanks but

    Ok, thanks. (As I thought)
    but... how do I write a forward declaration in c++ ?

    thanks
    I just found it

    class MyLabel;
  19. Replies
    6
    Views
    5,149

    including headers mutually?

    Hi,
    I have to classes
    CVImage.hpp and MyLabel.hpp
    In MyLabel.hpp I have a #include "CVImage.hpp"
    and now I want to use MyLabel from CVImage to I added #include "MyLabel.hpp" in CVImage.hpp
    ...
  20. Replies
    2
    Views
    17,467

    Thanks!, That was fast

    Thanks!,
    That was fast
  21. Replies
    2
    Views
    17,467

    Initializing 2D Vector?

    Hi forum!

    I wonder how can I a initialize a 255x255 Square Matrix ?

    I thought that Using a Vector should be the easy approach, but how can I initialize them?


    I have:
  22. How to move the command window programatically?

    Hi,
    I wonder how can I move the command line window programatically from a Command Line project in visual studio c++?
    is there any function or method like:
    setWindowPosition(x,y);
    ??

    thanks...
  23. Thanks LaserLight, So a good idea would be to...

    Thanks LaserLight,
    So a good idea would be to use "this->method()" everytime if possible? (when calling members)
  24. difference between this->method() and method()

    Hi,
    I would like to know what is the difference between

    this->method()
    and the simple

    method()
    I found that both compile and seems to be ok, but I suppose there should be a difference.
    ...
  25. ok

    thanks anon and Elysia.
Results 1 to 25 of 129
Page 1 of 6 1 2 3 4