help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re:


From: soren
Subject: Re: Re:
Date: Mon, 04 Aug 2008 11:30:09 +0200
User-agent: Internet Messaging Program (IMP) H3 (4.2-RC2)

Quoting bharat pathak <address@hidden>:
   I can do that, but I just want to know how one should
   write the code such that it is extremely efficient.

   In other words, can some experts prepare "Tips and Tricks"
   document for "Efficient Octave Programming".

I don't think you'll end up with something that's much better than what Jaroslav suggested. As to a good reference, then I believe Mathworks has a nice tutorial on vectorising your code. Try looking at their documentation (it's available online).

   My functions are still consuming 1.3 seconds, which is
   prohibitively high if someone intends to process 200
   images.

I've tried your code on my machine at work, and it returns almost instantly. So either my machine is much faster than yours, or something seems broken with your setup. Matrix based code can be fairly memory intensive, so perhaps this is your problem? If you store, say, 200 images in memory at the same time, this could affect performance quite a bit.

Søren





reply via email to

[Prev in Thread] Current Thread [Next in Thread]