A lot of C functions in the cvaux component are not yet wrapped because they
are undocumented and I don't really know what they do or how to use them. If
you could provide a working C/C++ example, I may be able to write wrapping
code for the functions you are looking for. However, this is subject to my
currently rather limited spare time, unless someone is willing to step in to
help out.
Cheers,
Minh-Tri
--
Dr. Minh-Tri Pham
Research Fellow, University of Surrey, UK
Email: t.p...@surrey.ac.uk or pmt...@gmail.com
--
You received this message because you are subscribed to the Google Groups "ctypes-opencv" group.
To post to this group, send email to ctypes...@googlegroups.com.
To unsubscribe from this group, send email to ctypes-openc...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ctypes-opencv?hl=en.
I am more than willing to pass my code to anyone who is willing to help. I
would be happy to welcome you onboard.
I understand it is not easy to read my code. The only problem from my side is
that right now I have almost no spare time to document the code or to prepare
a tutorial/example on how to wrap a function or a class. I am having a major
change in my career at the moment, and it requires all the time that I have
in a day. Thus, until my career is stabilized (probably in this September), I
can only hope that someone is able understand what I have done by just
reading the source code.
Here is some good news. I have wrapped a lot more CvBlobs* classes and a few
functions for detecting and tracking blobs, which are available in the
cvaux.h header file of OpenCV 2.1. At the same time, I am rewriting PyOpenCV
to use the CMake build tool instead of the bjam build tool (thanks Dat Chu!).
In the next release, cmake will become the official build tool for PyOpenCV
and bjam will become obsolete. The change to cmake will fix a number of
long-standing issues. However, all these recent changes are currently
developed in a branch located below rather than in the main trunk:
http://pyopencv.googlecode.com/svn/branches/2.1.0_cmake/
I will merge the branch to the main trunk once the code is stable enough. At
the moment, I am having troubles at installing PyOpenCV via cmake on
different platforms (e.g. Ubuntu & Mac). I will try to mimic OpenCV's
approach. I am also interested in integrating cmake to distutils. It is,
however, not a trivial problem.
If you have time, feel free to try out the latest code located at the above
link. I will be grateful to receive your feedbacks.
Cheers,
Minh-Tri
On 8/10/2010 12:40 PM, info gabor wrote:
> Hi Minh-Tri
> I am willing to help (myself at least) since I need badly a wrapper for
> cvBlobslib/cvBlob,
> And I have installed Boost.Python and py++, pygccxm
> However, I cannot afford now to master these tools on my own.
> So, please, could you supply one non-trivial example of the way you go about
> wrapping an OCV function (some log of the steps you take, from automatic to
> manual fixes)?
> I will try to fill in the gaps and wrap my functions. I will be delighted to
> share with the community any function I manage to wrap.
>
> Thanks!
>
> P.S.
> The particular function I am referring to is cvBlobslib, available in opencv
> site.
> For a given (single channel) image, It detects objects specified by
> parameters such as area or luminance range.
> I use it (in C++ code) as the following excerpt exemplifies -
>
> /blobs = new CBlobResult( anImage, NULL, 0 );/
> /blobs->Filter( * blobs, B_EXCLUDE, CBlobGetArea(), B_LESS, someVal);/
> /...../
> /len = blobs->GetNumBlobs ();/
> /for (i=0; i<len; i++) {/
> / avg[i] = blobs->GetBlob (i)->Mean (image);/
> / sum += blobs->GetBlob (i)->Area ();/
> / }/
>
>
>
> On Mon, Aug 9, 2010 at 11:14 PM, Minh-Tri Pham <pmt...@gmail.com
> <mailto:pmt...@gmail.com>> wrote:
>
> Hi Steven,
>
> A lot of C functions in the cvaux component are not yet wrapped because they
> are undocumented and I don't really know what they do or how to use them. If
> you could provide a working C/C++ example, I may be able to write wrapping
> code for the functions you are looking for. However, this is subject to my
> currently rather limited spare time, unless someone is willing to step in to
> help out.
>
> Cheers,
> Minh-Tri
>
> On 8/9/2010 8:34 PM, Steven wrote:
> > Hi all,
> >
> > Is the opencv function calcpgh included in pyopencv? I didn't see it
> > in the api docs, and it is notably missing from the official opencv
> > python wrappers. I'm really hoping to use it for some research.
> >
>
> --
> Dr. Minh-Tri Pham
> Research Fellow, University of Surrey, UK
> Email: t.p...@surrey.ac.uk <mailto:t.p...@surrey.ac.uk> or
> pmt...@gmail.com <mailto:pmt...@gmail.com>
>
> --
> You received this message because you are subscribed to the Google Groups
> "ctypes-opencv" group.
> To post to this group, send email to ctypes...@googlegroups.com
> <mailto:ctypes...@googlegroups.com>.
> To unsubscribe from this group, send email to
> ctypes-openc...@googlegroups.com
> <mailto:ctypes-opencv%2Bunsu...@googlegroups.com>.
> For more options, visit this group at
> http://groups.google.com/group/ctypes-opencv?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "ctypes-opencv" group.
> To post to this group, send email to ctypes...@googlegroups.com.
> To unsubscribe from this group, send email to
> ctypes-openc...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/ctypes-opencv?hl=en.
--
Dr. Minh-Tri Pham
Research Fellow, University of Surrey, UK
Email: t.p...@surrey.ac.uk or pmt...@gmail.com
Mob: +44 (0) 778 774 1089 | Tel: +44 (0) 148 368 4711