comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » quick matrix algebra question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
quick matrix algebra question [message #46860] Mon, 09 January 2006 11:36
b_gom is currently offline  b_gom
Messages: 105
Registered: April 2003
Senior Member
I'm sure someone must have a quick solution for this problem. I have a
color transformation that I want to apply to an RGB pixel as follows:

M=fltarr(3,3)
RGB=bytarr(3)
;fill RGB and M with some values
result = transpose(M ## RGB) ;apply the transform.

Now, result contains the new values in the same format as RGB.
The question is: how do I do this efficiently on an RGB image (ie a
(3,col,row) array)? Quick, before I use a for loop!

Thanks

Brad
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Polar-projection multiple plot with image+contours
Next Topic: Make_array() and using arrays as subscripts

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 09:19:42 PDT 2025

Total time taken to generate the page: 0.56044 seconds