Dalsa P4-CC-02K04T-00-R Manual page 126

Color 2k and 4k trilinear and quadlinear cmos
Table of Contents

Advertisement

126
Acqu iring the above d ata as you w ou ld an 8-bit m ono cam era in 10-tap m od e creates the acqu isition
bu ffer show n below .
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, 10-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 10
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 im age
w ithou t any ad d itional p rocessing.
03-032-20180-05
Adr+3
Adr+4
Adr+5
Red2
Green2
Blue2
First CLK
Pixel2
Red2
Green2
Blue2
Piranha4 2K and 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

Table of Contents