Re: REAL TIME IMAGE PROCESSING SOFTWARE
- From: "Dave Robinson" <dave.robinson@xxxxxxxxxxxxx>
- Date: Fri, 27 Jan 2006 09:21:49 -0500
GONZALO INFANTE wrote:
>
>
> Hi,
> I wrote a matlab code based on image processing toolbox and other
> image processing functions that i did by my own.
> The final application has to be a standalone application running on
> real time. The speed of the algorithms running in matlab is no
> enough
> for my purposes, and if i use the compiler the speed will be the
> same.
> Also, the image processing blockset has not all the functions that
> i
> need for my processing.
> Has someone done some realtime image processsing with compiler?
> Can i extend the capabilities of the blockset including my
> algorithms?
> regards
> Gonzalo
Hi Your question is a bit vague, but I will try my best
1) If your Matlab application is just slightly too slow then use
Profiler to determine the bottlenecks in your code. If the process
you are doing there is heavily into mathematics, e.g. exponentiation
etc. try replacing them with pre-computed look up tables, using the
intensity as the index into the table - where this is appropriate.
Look for inefficiencies in the code such as calculating fixed values
inside loops (e.g. 2*pi.If your copy of Matlab is not current, look
for speed savings based upon vectorizing the code - I believe the
latest versions with the JIT code make this less effective these
days.
2) If the above option isn't appropriate then look for often used
code segments that can be implemented as seperate functions, then
write these as MEX components in optimized C.
If the speed of the Matlab application is way too slow, then you may
well be better to abandon Matlab entirely, and programme the complete
thing in optimized C. A good thing here is the Intel performance
library, which contains a superb image processing facility. This is
available from Intel at a very reasonable price, and from memory,
allows you to sell applications based upon it royalty free. This is
special because it knows all about the MMX and SIMD processors buried
in the Pentium, and goes like the clappers. (note that some of the
Matlab functions have been implemented using this library). Full
information regarding this is available from the INTEL website.
Not sure what else I can say - hope that it is helpful.
Dave Robinson
.
- Follow-Ups:
- Re: REAL TIME IMAGE PROCESSING SOFTWARE
- From: gonzalo infante
- Re: REAL TIME IMAGE PROCESSING SOFTWARE
- References:
- REAL TIME IMAGE PROCESSING SOFTWARE
- From: GONZALO INFANTE
- REAL TIME IMAGE PROCESSING SOFTWARE
- Prev by Date: Dynamic Variable
- Next by Date: Re: transforming some columns to 0
- Previous by thread: REAL TIME IMAGE PROCESSING SOFTWARE
- Next by thread: Re: REAL TIME IMAGE PROCESSING SOFTWARE
- Index(es):
Relevant Pages
|