calloc is originally from C but you can use it in C++ too.
It puts zeros in the allocated memory chunk :)
calloc - C++ Reference
Type: Posts; User: nacho4d
calloc is originally from C but you can use it in C++ too.
It puts zeros in the allocated memory chunk :)
calloc - C++ Reference
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()...
Hi,
I want to have a function that evaluates 2 char vars (like a truth table)
for example:
since
T | F : T
Hint:
Create a struct for saving data. Use File, fopen, fclose for file reading.
Use fscanf to get name and age ;)
It worked ;)
I barely ask questions here, but somehow you are the one who always solves them ;) Thanks a lot.
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,...
Thanks MK27, I completely forgot about snprintf().
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,...
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...
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.)...
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...
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...
sorry it was not sufficient...
here is part of my CVImageLabelator implementation:
class CVImage;
class CVImageLabelator : public CVImage
{
public:
CVImageLabelator():m_label(NULL) {};
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...
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...
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...
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...
Ok, thanks. (As I thought)
but... how do I write a forward declaration in c++ ?
thanks
I just found it
class MyLabel;
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
...
Thanks!,
That was fast
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:
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...
Thanks LaserLight,
So a good idea would be to use "this->method()" everytime if possible? (when calling members)
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.
...
thanks anon and Elysia.