35 #include <VideoSource/VideoSource_PMDZess.hh>
36 #include <Base/Image/ImageIO.hh>
43 int main(
int argc,
char** argv)
47 cam.
SetBitFile(
"C:/Programme/z2D3D/Bitfiles/AchtBitExt.rbt");
50 BIASERR(
"Error initializing camera!!!");
55 BIASERR(
"Error setting shutter!!!");
59 cerr<<
"SetShutter: "<<shutter<<endl;
62 cerr<<
"SetShutter2D: 30.0"<<endl;
65 cerr<<
"GetShutter:"<<shutter<<endl;
67 cerr<<
"GetShutter2D:"<<shutter<<endl;
83 st <<
"temp" << i <<
".mip";
85 BIASERR(
"Grabbing went wrong!");
89 BIASERR(
"No depthimage available!!!");
93 BIASERR(
"No depthimage available!!!");
97 ImageIO::Save(st.str(), grey);
99 st <<
"tempDepth" << i <<
".mip";
101 ImageIO::Save(st.str(), depth);
103 st <<
"tempCoeff" << i <<
".mip";
105 ImageIO::Save(st.str(), coeff);
represents Zess PMD camera driver interface TODO: include support for normal images (2DImg_)...
int SetShutter2D(float exptime)
Set shutter (exposure time) to exptime in seconds [==] for 2D-chip.
virtual float GetShutter()
Get shutter (exposure time) in seconds.
int GrabSingleDepth(Camera< float > &image)
Returns the depth image.
virtual int SetShutter(float exptime)
Set shutter (exposure time) in seconds.
virtual int OpenDevice()
selects the first available device to open (e.g.
void SetBitFile(std::string file)
virtual int GrabSingle(Camera< unsigned char > &image)
Returns the 2D image, and reads depth and modulation coefficients.
int GrabSingleModCoeff(Camera< float > &image)
Returns the amplitude image.