Now I'm just not sure which part of the program produce the memory problem.
I've used version 2.2 and 3.0 of the implementation of this algorithm. Both of them crash only if the size is big...
Type: Posts; User: jutirain
Now I'm just not sure which part of the program produce the memory problem.
I've used version 2.2 and 3.0 of the implementation of this algorithm. Both of them crash only if the size is big...
I've tested the code using g++ 4.1.2 and 4.3.1, both on Ubuntu 8.10, neither of them support template function linking. I'm a little curious about why it's so hard for a compiler to implement this...
I'm using an implementation of maxflow algorithm from here:
http://www.adastral.ucl.ac.uk/~vladkolm/software.html
(Please see section 3 Maxflow)
The version 2.2 works just fine.
However, when I...
Hi, how could I define a boost::ublas::matrix with each element a fixed size vector?
I try to define it by
matrix< vector<double, 3> > double_matrix ;
but get the following error:
...
Thanks for your information.
So, if my self-defined container hold an "is-a" relationship (I know I can do it by "has-a" relationship, however, that's awkward) with some STL container, and I want...
Hi laserlight,
You're right. Using operator()(x, y), my program now executes as expected.
Thanks a lot.
However, I'm not very sure about why STL containers should not be base classes.
Hi,
I've wrote a class inherit from boost matrix, however, I can't figure out how to access the random access operator "()" inside the class.
For instance, I can use "()" outside the class by...
Actually, I'm using boost::gil
http://stlab.adobe.com/gil/
The library wrap all the implementation into header files, thereby it even don't need a .so library file.
I have about ten source and...
Hi matsp,
You're right. Now I can compile my hpp files to gch precompiled header files.
However, I can't feel any noticeable performance gain.
Should I do something else when I compile my...
So, how to use g++ to precompile *.hpp files?
Any idea?
I'm trying to precompile header files.
So that the compilation time could be reduced.
Or, am I misunderstood how to precompile?
Actually I'm just trying.
I'm using g++ 4.1.2 to compile *.hpp files,
however, it always output:
g++: xxx.hpp: linker input file unused because linking not done
So, how can I make g++ recognize *.hpp files?
Also, why...
Hi,
I'm trying to use precompiled headers to accelerate the compilation process.
I've found some articles about it, e.g.,
http://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html
However, I...
Hi all,
I'm facing a bug, and I'm not sure if the problem lies on an image library, so I commit it as revision 36, for example, and porting the program to another image library.
After porting,...
To anon:
Here is the compilable example:
http://graphics.csie.ntu.edu.tw/~jonathan/temp/trunk.tar
If you're running *NIX OS, simply type "make" to compile.
However, the source code depends on GUI...
Hi all,
I'm writing the following class for digital image inpainting:
http://graphics.csie.ntu.edu.tw/~jonathan/temp/imgPlane.h.html...
You're right.
Thanks a lot!
Hi Mats,
Thanks for answering.
And how to fix the error in method #1, #2, respectively?
It seems I've followed the syntax of ifeq...
I'm using make 3.81 on ubuntu 7.04
I used the method #1 and the shell prompt:
ifeq (debug, y)
/bin/sh: Syntax error: word unexpected (expecting ")")
make: *** [all] Error 2
You're right.
Thanks!
Hi,
I'm using g++ on ubuntu 7.04.
I'm trying to learn adobe gil, which is a library deal with image processing and accepted by boost.
http://opensource.adobe.com/gil/index.html
(Anybody know...
Do you mean this one?
http://graphics.csie.ntu.edu.tw/~jonathan/temp/Makefile.2.html
whether line 27 have ${CXX} or not will output error message:
g++ main.o ImageBox.o DoFunc.o...
Thanks for help.
Now my Makefile looks like this:
http://graphics.csie.ntu.edu.tw/~jonathan/temp/Makefile.1.html
However, when I "make", I got the following error message:
g++ -c main.cpp...
Hi,
I have a Makefile like this:
http://graphics.csie.ntu.edu.tw/~jonathan/temp/Makefile.html
When I type "make", it compile each object files correctly and link to a binary file.
However,...
I've write a program that acts abnormally, e.g., if I resize three vectors subsequently, the second resize will alter the size of the first...
So I guess there might be some memory leak or...