LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RGB transform

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 transformations ?
(I think I have to use a for loop to scan image pixels ...)
0 Kudos
Message 1 of 4
(2,803 Views)
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]
Message 2 of 4
(2,803 Views)
Bonjour,

comment émuler la fonction RTSI (synchronisation de l'acquisition entre les
cartes PCI 4472 et 4474) avec DAQmx version 7.2 ?
A l'éxécution de l'exemple Multi-Device Synch-Shared Timebase-Cont
Acquisition.vi, j'obtiens le message d'erreur suivant :

L'erreur -200452 s'est produite à Noeud de propriété DAQmx Timing (arg 1)
dans Multi-Device Synch-Shared Timebase-Cont Acquisition.vi

Raison(s) possible(s) :

Specified property is not supported by the device or is not applicable to
the task.

Property: MasterTimebase.Src

Task Name: _unnamedTask<3>
0 Kudos
Message 3 of 4
(2,803 Views)
My ask is very different from your answer !!!!



"Amandine" ha scritto nel messaggio
news:c7g6l8$723$1@news-reader4.wanadoo.fr...
> Bonjour,
>
> comment émuler la fonction RTSI (synchronisation de l'acquisition entre
les
> cartes PCI 4472 et 4474) avec DAQmx version 7.2 ?
> A l'éxécution de l'exemple Multi-Device Synch-Shared Timebase-Cont
> Acquisition.vi, j'obtiens le message d'erreur suivant :
>
> L'erreur -200452 s'est produite à Noeud de propriété DAQmx Timing (arg 1)
> dans Multi-Device Synch-Shared Timebase-Cont Acquisition.vi
>
> Raison(s) possible(s) :
>
> Specified property is not supported by the device or is not applicable to
> the task.
>
> Property: MasterTimebase.Src
>
> Task Name: _unnamedTask<3>
>
>
0 Kudos
Message 4 of 4
(2,803 Views)