C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28691
Number of posts: 94711

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
C/C++ Open CV Posted by kumar2884 on 15 Feb 2010 at 9:24 AM
Hi
I am engineering student, currently working in image processing.
I have big issue in understanding few basic concepts in programming. To be frank I am beginner, so my question will look silly, so please tolerate with me and if anyone can help me it would be much use full for me.

I started learning image Process using Matlab. it very easy using the Matlab function for ie : it need only one single line to open image. But my problem is I want to create the same algorithm in C or C++.
But if I want to create the same algorithm for mobile application I need to convert in to c or c++.But in c/c++ it will take 10 to 15 line for a single image open process.

So I am confused here can we use open CV and create the same mobile application? Or what is the use of open CV. And even I saw there are many different libraries for image processing, so I am confused in which way to go , what is the difference in all this libraries available out there and how to choose the right way for my need.
The below site give few sample http://www.xdp.it/cximage.htm
So please let me know, what is the difference between writing a program in C/C++, or using Open CV in C/C++ . Can we use both codes for creating application?

Thank You
kumar

Report
Re: C/C++ Open CV Posted by Kronen on 5 Mar 2010 at 12:48 PM
>what is the difference between writing a program in C/C++, or using Open CV in C/C++ . Can we use both codes for creating application?

what???
C/C++ is a programming language, OpenCV is a library for processing images. Whats the difference? In C/C++ alone you don't have OpenCV for processing images, you add one library and you get the features of that particular library.
I don't know for what mobile platforms(if any) is ported OpenCV. You should check or ask on the opencv mailing list. http://groups.yahoo.com/group/OpenCV/


What do you need to do with the image? Do you really need OpenCV? (Calculating histograms on the image, Detecting faces, etc etc) What mobile platform are you using?
If you only need to open an image OpenCv is not the way to go.

The CxImage class is an example of library for manipulating image formats in C++, and that's what you need I think.
SDL_Image, DevIL, etc there are plenty of them.


(sorry my bad english)
Report
Re: C/C++ Open CV Posted by Kronen on 5 Mar 2010 at 12:52 PM
.............................
Report
Re: C/C++ Open CV Posted by kumar2884 on 7 Mar 2010 at 10:55 PM
Hi

Thank You for the reply, yes i just want to open the image in c++ and do some edge detection and some more operation,and create that as a mobile application.

Why? i am looking for open CV ? Bcos it has many small functions like matlab. In c/c++ u will write 10 lines to open a image. but in matlab u will use only one function.

But we cant use matlab for mobile right ? thats y i am looking for alternative.

Right now i am using windows mobile as a trail.

So i am little bit confused with all this libraries available out there which one to choose and what is the difference between each .
Report
Re: C/C++ Open CV Posted by Kronen on 8 Mar 2010 at 7:46 AM
Hehe ok, if you need edge detection and stuff like that then you need OpenCV or alike, like the one you wrote about CxImage. The problem is that both libraries does not provide an official build for mobile platforms.
I don't know about Matlab, I'm going to use it next year in the Uni and only for pure maths.
I'm no expert here, but I think you have some options:

· Check the options on your platform SDK, in your case: the Windows Mobile SDK for Pocket PC I think.
Link: Working with Pictures, Video, and Cameras in Windows Mobile 5.0
Maybe this is useful I didn't read it.

· Search for a image processing library that works on Windows Mobile.

· Build the library(OpenCV, CxImage,...) for your platform(Windows Mobile), and for each of the other platforms if you are targeting other platforms of course(Symbian, Android, iPhone,...):
Link: Running OpenCV facedetect sample on Windows CE (Windows Mobile)
Link: Building OpenCV on Windows Mobile 6

· The last option, search for an image processing library for Java, that should be easier to 'find one'/'build it' for mobile platforms.

P.D.: When you say "In c/c++ u will write 10 lines to open a image." of course, in all programming languages you need a lot of lines of code to open an image, the difference is that some languages add that functionality in their default libraries, and C/C++ does not provide a library for manipulating or processing images, that's the reason why there are a lot of that libraries for C/C++.
So you should say "In c/c++ u will write 1 line to open an image using 'X library'."

P.D.(2): (sorry again my bad english)
Report
This post has been deleted. Posted by Garfield00 on 14 Mar 2010 at 6:28 PM
This post has been deleted.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.