Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7049111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:58:23+00:00 2026-05-28T02:58:23+00:00

I’ve noticed that Matlab is very popular among the computer vision and image processing

  • 0

I’ve noticed that Matlab is very popular among the computer vision and image processing community still to this day, even though OpenCV is a very mature package for C++. I’ve never used Matlab, but looking at it I see no advantages over OpenCV in C++. It’s so commonly used however that I’m considering picking it up.

Why is it so popular among this crowd? What are its advantages over OpenCV?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:58:24+00:00Added an answer on May 28, 2026 at 2:58 am

    I am a phD student in computer vision, and I’ve already answered about the comparison between matlab and python for scientist in this question:
    What is MATLAB good for? Why is it so used by universities? When is it better than Python?

    I will update my answer for the comparison between matlab and opencv for computer vision:

    I used to code only with C++/OpenCV a while ago, but since the begining og my phD (3 years a go), I code only in Matlab. so I know well the topic.

    There is ONE reason why matlab is so good and so widely used, compared to opencv:

    EXTREMELY FAST CODING

    Personally, I code around 10 times faster in matlab than in OpenCV/C++, and there is much less bug at the end.

    1) Computer Vision Researchers need fast prototyping

    In research environment, we have (hopefully) often new ideas, and we want to test them really quick to see if it’s worth keeping on in that direction. And most often only a tiny sub-part of what we code will be useful. Moreover it’s often not possible to guess beforehand if an idea is going to work or not.

    Matlab is often a bit slower at execution time and opencv is definitely the fastest for running time, but we don’t care much. Because we don’t know in advance what method is going to be successful, we have to try many things, so our bottle neck is programming time, because our code will most often run a few times to get the results to publish, and that’s all.

    So let’s see how matlab can help to improving programming time.

    2) Everything I need is already there

    Matlab has really a lot of functions that I need, so that I don’t have to reinvent them all the time:

    change the index of a matrix to 2d coordinate: ind2sub extract all patches of an image: im2col; compute a histogram of an image: hist(Im(:)); find the unique elements in a list unique(list); add a vector to all vectors of a matrix bsxfun(@plus,M,V); convolution on n-dimensional arrays convn(A); calculate the computation time of a sub part of the code: tic; %%code; toc; graphical interface to crop an image: imcrop(im);

    The list could be very long…
    And they are very easy to find by using the help.

    However, conserning the pure computer vision functions, I think that the core Opencv is a bit more exhaustive, than matlab plus toolboxes. But Nowadays, so many researchers publish their source code in matlab that if you want to test the latest discovery you basically have to use matlab.

    3) No C++ specific problems

    No need to allocate and free memory. Matlab does that for you, so you can focus on your work.

    No buffer overflow. So, no more long time trying to find out where it crashes. Matlab stops automatically, and tells you where the code tries to get a value outside of the matrix range.

    No compilation time…

    No header to write…

    4) IDE

    An example: I launch a script. It produces an error because of a matrix. I can still execute code with the command line. I visualize it doing: imagesc(matrix). I see that the last line of the matrix is weird. I fix the bug. All variables are still set. I select the remaining of the code, press F9 to execute the selection, and everything goes on. Debuging becomes fast, thanks to that.

    Matlab underlines some of my errors before execution. So I can quickly see the problems. It proposes some way to make my code faster.

    With OpenCV/C++/Visual Studio, I can debug. But this debugger does not allow me to execute code during the debugging, so I cannot for instance visualize matrices and so on.. So in practice, I have to copy paste some code to dump matrices, to check where is the error. This is very painful.

    There is an awesome profiler included in the IDE. KCahcegrind for C++ is such a pain to use compared to that.

    I wrote more there:
    Are there any alternative editors for .m files?

    5) Concise code

    Matlab code is more consize, which mean easier to debug, to read, to understand and: the code looks like my formulas.

    To normalize all the columns of a matrix ( which I need all the time), I do:
    bsxfun(@times,A,1./sqrt(sum(A.^2)))

    To remove from a matrix all colums with small sum:

    A(:,sum(A)<e)=[]

    To do the computation on the GPU:

    gpuX = gpuarray(X); 
    %%% code normally and everything is done on GPU
    

    To paralize my code:

    parfor n=1:100
    %%% code normally and everything is multi-threaded
    

    What language can beat that?

    And of course, I rarely need to make loops, everything is included in functions, which make the code way easier to read, and no headache with indices. So I can focus, on what I want to program, not how to program it.

    6) Plotting tools

    Matlab is famous for its ploting tools. They are very helpful. OpenCV has just the basic plotting functions.

    7) Excellent documentation

    And it’s very easy to acces it, by typing doc

    PS: And what I hate with matlab: its price

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
Does anyone know how can I replace this 2 symbol below from the string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.