Dalsa Piranha4 User Manual page 78

8k color camera
Hide thumbs Also See for Piranha4:
Table of Contents

Advertisement

Sample Code:
//Assuming acquisition buffer is declared as below.
#define
NUMBUFFERS
SapBuffer *m_Buffers;
m_Buffers =
new
SapBufferWithTrash(NUMBUFFERS, m_Acq);
// Call Create() for acquisition buffer
m_Buffers->Create();
// Declare SapBuffer object which shares buffer components with the acquisition buffer
SapBuffer *m_ViewBuffers;
int
width, height, i;
void* pData[NUMBUFFERS];
for
(i = 0; i < NUMBUFFERS; i++)
{
m_Buffers->GetAddress(i, &pData[i]);
}
width = m_Buffers->GetWidth();
height = m_Buffers->GetHeight();
m_ViewBuffers =
new
m_ViewBuffers->Create();
If you declare above m_ViewBuffer as the source buffer of SapView object, you can display
RGB image without any additional processing.
78 • Appendix D: Color Deca and Full Mode Acquisition
Manual
10
SapBuffer(NUMBUFFERS, pData, width / 3, height, SapFormatRGB888);
Piranha4 8K Color Camera User's

Advertisement

Table of Contents
loading

This manual is also suitable for:

P4-cc-08k03t-01-rPiranha4 p4-cc-08k03t-01-r

Table of Contents