'Where is the Image grabbed with Sample Grab Pylon Basler?

i'm working on a camera of Basler AG with the pylon sdk. I installed the SDK and run the Sample Code "Grab", which works, but i dont get any Image shown of the camera. Where is the Image stored? Do I need to do anything? In the Pylon Doc there is shown a Image.

Its the C++ Sample of Grab. Can someone answer me, how i can retrieve the image?



Solution 1:[1]

I have some experience with this camera.There are some tips.

1.First step :You should make sure you open() camera.

2.Second step:useStartGrabbingor GrabOneto let camera strat grabbing image,then make sure camera.IsGrabbing(),use while (camera.IsGrabbing())

3.Thrid step:if camera.IsGrabbing()==true,usecamera.RetrieveResult( 5000, ptrGrabResult, TimeoutHandling_ThrowException );,ptrGrabResult is where image and all data stored.

4.Fourth step: if (ptrGrabResult->GrabSucceeded()==ture),use const uint8_t* pImageBuffer = (uint8_t*) ptrGrabResult->GetBuffer();to get the image buffer,that's all.

If you can show more detail about your code,it will be more easy to help you figure out a solution.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ???