On 05/30/2011 03:10 PM, santiago reyes wrote:
> for i=1:fila
>             for j=1:columna
>                 im_out(i,j,1) = uint8(floor(77*im_cal(i,j,1)+
> 150*im_cal(i,j,2) + 29*im_cal(i,j,3)));

Can't that be written as

im_out(:,:,1) =
uint8(floor(77*im_cal(:,:,1)+150*im_cal(:,:,2)+29*im_cal(:,:,3)));

and similarly for im_out(:,:2) and im_out(:,:,3) and the loops be gotten
rid of?

D.


------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to