Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update lib to new c++ interfae #20

Open
GoogleCodeExporter opened this issue Apr 21, 2015 · 5 comments
Open

update lib to new c++ interfae #20

GoogleCodeExporter opened this issue Apr 21, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

Any chance of this library being updated to use Mat and the newer versions of 
functions in opencv2.0+?

Original issue reported on code.google.com by Alistair...@gmail.com on 2 Mar 2011 at 11:20

@GoogleCodeExporter
Copy link
Author

Are you sure that Mat type does not work with cvBlob? Which functions have 
problems?

Anyway, I will research that.

Thanks!

Original comment by grendel....@gmail.com on 7 Mar 2011 at 6:14

  • Added labels: OpSys-All, Type-Enhancement, Usability
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

Yes, type Mat from OpenCv2+ seems to be not supported by the latest stable 
release of CvBlob.
Right now i have this problems:

cannot convert ‘cv::Mat’ to ‘const CvArr*’ for argument ‘1’ to 
‘CvSize cvGetSize(const CvArr*)’
cannot convert ‘cv::Mat’ to ‘const IplImage*’ for argument ‘1’ to 
‘unsigned int cvb::cvLabel(const IplImage*, IplImage*, cvb::CvBlobs&)



Original comment by gabriele...@gmail.com on 24 Apr 2011 at 3:44

@GoogleCodeExporter
Copy link
Author

Hi,

Soon I will release a new version of cvBlob, after that I will try to refactor 
the lib to support the new OpenCV C++ interface, changing the cvBlob interface 
as well.

Suggestions and any kind of help will be welcome!

Original comment by grendel....@gmail.com on 28 Apr 2011 at 7:15

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Actually, to me it's working quite fine with OpenCV2.2. Just explicitly create 
a IplImage header for your cv::Mat and you're good to go. The overhead of that 
operation is marginal.

But indeed, it would be nicer to have the real deal as interface...

Example:
//m_map is a cv::Mat, single channel.

IplImage ipl_map=m_map;

IplImage *labelImg=cvCreateImage(cvSize(ipl_map.width,ipl_map.height), 
IPL_DEPTH_LABEL, 1);

cvb::CvBlobs blobs;
cvb::cvLabel(&ipl_map,labelImg,blobs);

Original comment by msar...@gmail.com on 1 Jun 2011 at 2:25

@GoogleCodeExporter
Copy link
Author

Issue 36 has been merged into this issue.

Original comment by grendel....@gmail.com on 24 Jan 2013 at 9:00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant