Re: REAL TIME IMAGE PROCESSING SOFTWARE
- From: "gonzalo infante" <ginfante@xxxxxxx>
- Date: Fri, 27 Jan 2006 10:20:22 -0500
Dave Robinson wrote:
>
>
> 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
Thanks a lot Dave,
your post is really helpfull.
I have to do a logarithm of the whole image, (1,8 Mpixels) and it
takes 0,8 sec. I think i can do it as a lookup table.
regards
gonzalo
.
- References:
- REAL TIME IMAGE PROCESSING SOFTWARE
- From: GONZALO INFANTE
- Re: REAL TIME IMAGE PROCESSING SOFTWARE
- From: Dave Robinson
- REAL TIME IMAGE PROCESSING SOFTWARE
- Prev by Date: Re: difference between every point in vector
- Next by Date: Re: difference between every point in vector
- Previous by thread: Re: REAL TIME IMAGE PROCESSING SOFTWARE
- Next by thread: Pointwise multiplication of matrix with vector
- Index(es):
Relevant Pages
|