Sample Code - Dalsa P4-CC-04K07T User Manual

Table of Contents

Advertisement

110
Adr+0
Adr+1
Adr+2
Red1
Green1
Blue1
On the other hand , the Sap Form atRGBR888 form at is show n below .
Pixe1 (3byte)
Red1
Green1
Blue1
As you d em onstrated above, the tw o bu ffers' content and their ord er are exactly sam e. Thu s, acqu iring
the bu ffer as if the cam era w ere a m ono 8-bit 8-tap resu lts in the sam e bu ffer contents as the
Sap Form atRGBR888.

Sample Code

/ / Assu m ing acqu isition bu ffer is d eclared as below .
#d efine N UMBUFFERS 8
Sap Bu ffer *m _Bu ffers;
m _Bu ffers = new Sap Bu fferWithTrash(N UMBUFFERS, m _Acq);
/ / Call Create() for acqu isition bu ffer
m _Bu ffers->Create();
/ / Declare Sap Bu ffer object w hich shares bu ffer com p onents w ith the acqu isition bu ffer
Sap Bu ffer *m _View Bu ffers;
int w id th, height, i;
void * p Data[N UMBUFFERS];
for (i=0; i<N UMBUFFERS; i++)
{
m _Bu ffers->GetAd d ress(i, &p Data[i]);
}
w id th = m _Bu ffers->GetWid th();
height = m _Bu ffers->GetH eight();
m _View Bu ffers = new Sap Bu ffer(N UMBUFFERS, p Data, w id th / 3, height,Sap Form atRGB888);
m _View Bu ffers->Create();
If you d eclare above m _View Bu ffer as the sou rce bu ffer of Sap View object, you can d isp lay RGB i m age
w ithou t any ad d itional p rocessing.
03-032-20180-00
Adr+3
Adr+4
Adr+5
Red2
Green2
Blue2
First CLK
Pixel2
Red2
Green2
Blue2
Piranha4 4K Camera Color User's Manual
Adr+6
Adr+7
Adr+8
Red3
Green3
Blue3
Pixel3
Red3
Green3
Blue3
Adr+9
Adr+10
Adr+11
Red4
Green4
Blue4
Second CLK
Pixel4
Red4
Green4
Blue4
Teledyne DALSA

Advertisement

Table of Contents
loading

This manual is also suitable for:

P4-cc-04k07t-00-rPiranha4P4-cc-02k07t

Table of Contents