Perdus,
You have to use two for loops (nested), one for each dimension.
I don't have IMAQ installed, so the attached example reads jpg. It should be
easy to convert. Make sure the opened jpg is 24 bit. If you want a picture
for both a and b, you can put a and b in to different 2d arrays.
Regards,
Wiebe.
"Pedrus"
wrote in message
news:WEJmc.157084$hc5.6721270@news3.tin.it...
> Hi all ,
> I want to extact the 3 components R,G,B of an image and convert them in a
> space of two dimension trough two formulas like as :
> a=f(R,G,B)
> b=g(R,G,B)
> Where f and g are two simple rational functions .
> I have used IMAQ ColorImageToArray connected with IMAQ IntegerToColorValue
,
> is it correct ?
> How do I realize this transfor
mations ?
> (I think I have to use a for loop to scan image pixels ...)
>
>
>
[Attachment exp 4.vi, see below]