# C-style API

**URL:** https://forum.commonvisionblox.com/c/programming-questions/classic-api/7.md

[Latest](https://forum.commonvisionblox.com/latest.md) · [Categories](https://forum.commonvisionblox.com/categories.md) · [Tags](https://forum.commonvisionblox.com/tags.md)

---

## [About the C-style API category](https://forum.commonvisionblox.com/t/about-the-c-style-api-category/26)

<div class="topic-metadata">

**Author:** [@illusive](https://forum.commonvisionblox.com/u/illusive)\
**Replies:** 0

</div>

Discuss programming questions concerning the "classic" Common Vision Blox API in this category.

---

## [How to get CVB cameras in gstreamer](https://forum.commonvisionblox.com/t/how-to-get-cvb-cameras-in-gstreamer/2344)

<div class="topic-metadata">

**Author:** [@e-sensiaOB](https://forum.commonvisionblox.com/u/e-sensiaOB)\
**Replies:** 1\
**Last updated:** [January 14, 2025, 1:22pm UTC](https://forum.commonvisionblox.com/t/how-to-get-cvb-cameras-in-gstreamer/2344 "2025-01-14T13:22:25Z")

</div>

Hello, I would like to know if there is any way to get CVB handled cameras into gstreamer-1.0 as it would be great to have the camera stream to the gstreamer pipeline. Best regards

---

## [Use ABRM (Agnostic BootStrap Register Map) for timestamp latch - C-Style](https://forum.commonvisionblox.com/t/use-abrm-agnostic-bootstrap-register-map-for-timestamp-latch-c-style/1965)

<div class="topic-metadata">

**Author:** [@jordanmoly](https://forum.commonvisionblox.com/u/jordanmoly)\
**Replies:** 5\
**Last updated:** [July 19, 2023, 7:03am UTC](https://forum.commonvisionblox.com/t/use-abrm-agnostic-bootstrap-register-map-for-timestamp-latch-c-style/1965 "2023-07-19T07:03:52Z")

</div>

Dear CVB team I was looking for a solution to use TimeStamp features with a JAI GO-5100C-USB (the customer camera, I have with me a GO-5000C-USB). JAI support advised me to use ABRM. I first test with GenICam Browser …

---

## [Duplicated timestamp retrieved from a camera](https://forum.commonvisionblox.com/t/duplicated-timestamp-retrieved-from-a-camera/309)

<div class="topic-metadata">

**Author:** [@andrea.annovi](https://forum.commonvisionblox.com/u/andrea.annovi)\
**Replies:** 9\
**Last updated:** [June 26, 2020, 9:23am UTC](https://forum.commonvisionblox.com/t/duplicated-timestamp-retrieved-from-a-camera/309 "2020-06-26T09:23:52Z")

</div>

I used CVB library 2016. I made a simple program that acquired images from camera using a direct translation of the C api for .Net. The camera is connected to the PC via Ethernet. The camera is trigger by an external co…

---

## [CVB ARM saving color images as grayscale](https://forum.commonvisionblox.com/t/cvb-arm-saving-color-images-as-grayscale/119)

<div class="topic-metadata">

**Author:** [@Keyhole](https://forum.commonvisionblox.com/u/Keyhole)\
**Replies:** 3\
**Last updated:** [May 31, 2017, 1:45pm UTC](https://forum.commonvisionblox.com/t/cvb-arm-saving-color-images-as-grayscale/119 "2017-05-31T13:45:01Z")

</div>

I am trying to use CVB for ARM (on a NVIDIA Jetson) and having problems saving images. The camera is outputting RGB images and I can see them as color in the CVB GenICam browser, but when I save the image it is saved as…

---

## [Blank images after changing camera image size](https://forum.commonvisionblox.com/t/blank-images-after-changing-camera-image-size/1748)

<div class="topic-metadata">

**Author:** [@pdb](https://forum.commonvisionblox.com/u/pdb)\
**Replies:** 10\
**Last updated:** [August 8, 2022, 8:47am UTC](https://forum.commonvisionblox.com/t/blank-images-after-changing-camera-image-size/1748 "2022-08-08T08:47:36Z")

</div>

Hi, I’m seeing odd behaviour after changing the camera image size. The code is c++ and I’m using cvb 13.01.004 on an aarch64 Linux platform. The camera is a Xenics Bobcat-640. Here’s the process I’m following: Connect…

---

## [Cannot open the driver after some time](https://forum.commonvisionblox.com/t/cannot-open-the-driver-after-some-time/1680)

<div class="topic-metadata">

**Author:** [@maggi](https://forum.commonvisionblox.com/u/maggi)\
**Replies:** 14\
**Last updated:** [April 29, 2022, 12:43pm UTC](https://forum.commonvisionblox.com/t/cannot-open-the-driver-after-some-time/1680 "2022-04-29T12:43:03Z")

</div>

Dear team, We have been working on GenIcam and CVB for quite some time. Previously, the driver for Genicam was being loaded alright and the images were being saved just fine. We were using Acquisition Stack to load the …

---

## [An error occurs when building the GEVServer tutorial in C++ with CMake](https://forum.commonvisionblox.com/t/an-error-occurs-when-building-the-gevserver-tutorial-in-c-with-cmake/1482)

<div class="topic-metadata">

**Author:** [@ASchmitt](https://forum.commonvisionblox.com/u/ASchmitt)\
**Replies:** 9\
**Last updated:** [September 1, 2021, 12:10pm UTC](https://forum.commonvisionblox.com/t/an-error-occurs-when-building-the-gevserver-tutorial-in-c-with-cmake/1482 "2021-09-01T12:10:41Z")

</div>

After running CMake on the GEVServer tutorial on the Raspberry Pi 4 with a 64bit ARM OS, the following error comes up when running the make command. \[100%\] Linking CXX executable QmlGevServer /usr/bin/ld: /opt/cvb/lib/l…

---

## [Foundation FBlob](https://forum.commonvisionblox.com/t/foundation-fblob/1465)

<div class="topic-metadata">

**Author:** [@ianw](https://forum.commonvisionblox.com/u/ianw)\
**Replies:** 9\
**Last updated:** [August 4, 2021, 6:55am UTC](https://forum.commonvisionblox.com/t/foundation-fblob/1465 "2021-08-04T06:55:08Z")

</div>

Hello Cvb! We’ve been making use of the Foundation FBlob detector here and it is generally working well. Occasionally, when presented a very dusty image, the blob detector can take a long time to return. I see that th…

---

## [Set Image Rotation From API](https://forum.commonvisionblox.com/t/set-image-rotation-from-api/1376)

<div class="topic-metadata">

**Author:** [@JoshSmith](https://forum.commonvisionblox.com/u/JoshSmith)\
**Replies:** 2\
**Last updated:** [March 31, 2021, 11:58am UTC](https://forum.commonvisionblox.com/t/set-image-rotation-from-api/1376 "2021-03-31T11:58:37Z")

</div>

Hi All, Is there any way to set the ‘Image Rotation’ setting from the management console within the ‘old’ C++ API? Looking at a previous topic (https://forum.commonvisionblox.com/t/rotate-an-image/70) I see it can be s…

---

## [Unable to get camera connection for root users \[Ubuntu 18.04\], LoadImageFile, CVB2019](https://forum.commonvisionblox.com/t/unable-to-get-camera-connection-for-root-users-ubuntu-18-04-loadimagefile-cvb2019/1348)

<div class="topic-metadata">

**Author:** [@mmolero](https://forum.commonvisionblox.com/u/mmolero)\
**Replies:** 2\
**Last updated:** [February 18, 2021, 8:45am UTC](https://forum.commonvisionblox.com/t/unable-to-get-camera-connection-for-root-users-ubuntu-18-04-loadimagefile-cvb2019/1348 "2021-02-18T08:45:06Z")

</div>

Hi All I’m capable to run the c api with no issues however when I’m trying to run it with root privileges I’m stuck in the LoadImageFile function which always returns false. for example: CvbHelperBase\* cvbHelper =…

---

## [CVuEye.vin - Access violation when accessing pixel data](https://forum.commonvisionblox.com/t/cvueye-vin-access-violation-when-accessing-pixel-data/1106)

<div class="topic-metadata">

**Author:** [@POI](https://forum.commonvisionblox.com/u/POI)\
**Replies:** 5\
**Last updated:** [May 4, 2020, 9:19am UTC](https://forum.commonvisionblox.com/t/cvueye-vin-access-violation-when-accessing-pixel-data/1106 "2020-05-04T09:19:49Z")

</div>

I use the CVuEye.vin driver in a 64 bit VS2017 C++ project to access a IDS uEye camera. I can initialize the camera without problems but get a read access violation if i grab an image with the following code: void\* pix…

---

## [Retrieving 30bit rgb from GenICam camera](https://forum.commonvisionblox.com/t/retrieving-30bit-rgb-from-genicam-camera/1028)

<div class="topic-metadata">

**Author:** [@pixelmaster](https://forum.commonvisionblox.com/u/pixelmaster)\
**Replies:** 3\
**Last updated:** [January 30, 2020, 2:50pm UTC](https://forum.commonvisionblox.com/t/retrieving-30bit-rgb-from-genicam-camera/1028 "2020-01-30T14:50:51Z")

</div>

I am using a Jai RGB camera that is capable of delivering 30bit rgb output. Unfortunately I am not able to get access to the image data, no matter if set the output to raw or RGB16 bit. I tried to get linear access to t…

---

## [Capturing image of a selected blob](https://forum.commonvisionblox.com/t/capturing-image-of-a-selected-blob/924)

<div class="topic-metadata">

**Author:** [@Farid](https://forum.commonvisionblox.com/u/Farid)\
**Replies:** 6\
**Last updated:** [October 31, 2019, 7:09am UTC](https://forum.commonvisionblox.com/t/capturing-image-of-a-selected-blob/924 "2019-10-31T07:09:40Z")

</div>

In an image which contains a number of blobs, I tried to capture image of one of the blobs, using Foundation.FBlobBinariseImage(imgIn, ref selectedROI, blobIndex, minThresh, maxThresh, BlobImgOut) an image of the entir…

---

## [NGetAsFloat blocks EventDispatcher](https://forum.commonvisionblox.com/t/ngetasfloat-blocks-eventdispatcher/888)

<div class="topic-metadata">

**Author:** [@dominik19](https://forum.commonvisionblox.com/u/dominik19)\
**Replies:** 10\
**Last updated:** [October 4, 2019, 8:18am UTC](https://forum.commonvisionblox.com/t/ngetasfloat-blocks-eventdispatcher/888 "2019-10-04T08:18:03Z")

</div>

Hello, i have a problem with getting Events from the Event-Dispatcher. In our app we need to get Disconnecting and Reconnecting Events from the Camera (we are using a C5-1280-GigE). I copied the C+±Example from here. …

---

## [Overlay Plugins not showing on Display Control](https://forum.commonvisionblox.com/t/overlay-plugins-not-showing-on-display-control/794)

<div class="topic-metadata">

**Author:** [@taserface](https://forum.commonvisionblox.com/u/taserface)\
**Replies:** 4\
**Last updated:** [September 26, 2019, 9:35am UTC](https://forum.commonvisionblox.com/t/overlay-plugins-not-showing-on-display-control/794 "2019-09-26T09:35:21Z")

</div>

G’day! I have ported one of my older applications to a new CVB and Visual studio version. Things generally seem to work fine-ish, but I can’t see any of the overlay I add to my display (Lines, Circles, a few Rectangles …

---

## [AxCVDISPLAYLib.AxCVdisplay.Image](https://forum.commonvisionblox.com/t/axcvdisplaylib-axcvdisplay-image/865)

<div class="topic-metadata">

**Author:** [@Farid](https://forum.commonvisionblox.com/u/Farid)\
**Replies:** 3\
**Last updated:** [September 11, 2019, 8:24am UTC](https://forum.commonvisionblox.com/t/axcvdisplaylib-axcvdisplay-image/865 "2019-09-11T08:24:45Z")

</div>

How can I set the AxCVDISPLAYLib.AxCVdisplay.Image value with an image of .bmp or .jpg format. I receive the image from the web and have to process it.

---

## [Pseudo Coloring Images with \> 8 Bits Per Pixel](https://forum.commonvisionblox.com/t/pseudo-coloring-images-with-8-bits-per-pixel/151)

<div class="topic-metadata">

**Author:** [@taserface](https://forum.commonvisionblox.com/u/taserface)\
**Replies:** 6\
**Last updated:** [August 21, 2019, 7:17pm UTC](https://forum.commonvisionblox.com/t/pseudo-coloring-images-with-8-bits-per-pixel/151 "2019-08-21T19:17:30Z")

</div>

I have an image source that provides 12 bits per pixel data with very subtle intensity differences. I'd like to create an improved visualization using pseudo coloring but haven't succeeded so far. I know there is an exam…

---

## [Foundation.CreateDynamicThresholdImage related memory leak](https://forum.commonvisionblox.com/t/foundation-createdynamicthresholdimage-related-memory-leak/846)

<div class="topic-metadata">

**Author:** [@Foster](https://forum.commonvisionblox.com/u/Foster)\
**Replies:** 7\
**Last updated:** [August 6, 2019, 12:46pm UTC](https://forum.commonvisionblox.com/t/foundation-createdynamicthresholdimage-related-memory-leak/846 "2019-08-06T12:46:48Z")

</div>

Hi there, I’m using the Foundation.CreateDynamicThesholdImage to pre-process an image before being passed through to the FBlob function. Previously, I was doing simple thresholding all worked well. Since implementing F…

---

## [Exception during discovery](https://forum.commonvisionblox.com/t/exception-during-discovery/318)

<div class="topic-metadata">

**Author:** [@Tomes](https://forum.commonvisionblox.com/u/Tomes)\
**Replies:** 15\
**Last updated:** [May 7, 2019, 11:54am UTC](https://forum.commonvisionblox.com/t/exception-during-discovery/318 "2019-05-07T11:54:48Z")

</div>

Hi all, While testing connection events, etc., I got an exception with the following message: ‘External component has thrown an exception.’ The stacktrace is: at Stemmer.Cvb.DriverLib.DODiscover(String seed, Int64 fl…

---

## [Shapefinder2 CreateSF2ExEx parameter question](https://forum.commonvisionblox.com/t/shapefinder2-createsf2exex-parameter-question/710)

<div class="topic-metadata">

**Author:** [@Amicelli](https://forum.commonvisionblox.com/u/Amicelli)\
**Replies:** 2\
**Last updated:** [March 20, 2019, 9:00am UTC](https://forum.commonvisionblox.com/t/shapefinder2-createsf2exex-parameter-question/710 "2019-03-20T09:00:27Z")

</div>

Hello, a quick question about Shapefinder 2 and the function CreateSFExEx. How does the gradient mode affect the result and what are the differences? What is a good profile size to choose and how does it affect the re…

---

## [Release image object causes break points](https://forum.commonvisionblox.com/t/release-image-object-causes-break-points/586)

<div class="topic-metadata">

**Author:** [@esma](https://forum.commonvisionblox.com/u/esma)\
**Replies:** 11\
**Last updated:** [January 21, 2019, 9:47am UTC](https://forum.commonvisionblox.com/t/release-image-object-causes-break-points/586 "2019-01-21T09:47:21Z")

</div>

Hello, is there a reason that this code releases a break point? I m am using CVB version 13.00.005 64 bit on Windows 10, visual studio 2013 and a geni nano M1920 camera. int \_tmain(int argc, \_TCHAR\* argv\[\]) { std:…

---

## [Accurate Timestamp via G2GetGrabStatus](https://forum.commonvisionblox.com/t/accurate-timestamp-via-g2getgrabstatus/637)

<div class="topic-metadata">

**Author:** [@TimoKorthals](https://forum.commonvisionblox.com/u/TimoKorthals)\
**Replies:** 1\
**Last updated:** [January 3, 2019, 8:35pm UTC](https://forum.commonvisionblox.com/t/accurate-timestamp-via-g2getgrabstatus/637 "2019-01-03T20:35:18Z")

</div>

We retrieve the timestamp of the current image via the following call: G2GetGrabStatus(hCamera, GRAB\_INFO\_TIMESTAMP, camTimestamp); As described in the manual, camTimestamp is a double value, which might cause accuracy …

---

## [Memoryhandling with ReleaseObject and CreateRotatedImageMap()](https://forum.commonvisionblox.com/t/memoryhandling-with-releaseobject-and-createrotatedimagemap/615)

<div class="topic-metadata">

**Author:** [@Chris](https://forum.commonvisionblox.com/u/Chris)\
**Replies:** 3\
**Last updated:** [December 13, 2018, 12:16pm UTC](https://forum.commonvisionblox.com/t/memoryhandling-with-releaseobject-and-createrotatedimagemap/615 "2018-12-13T12:16:54Z")

</div>

Hi all, I stumbled over a behaviour that I cant completely understand. Given the documentation for the CreateImageMap(): If this function is successful the ImageIn is shared by the ImageOut to ensure its life-time. Wh…

---

## [Camera IP address](https://forum.commonvisionblox.com/t/camera-ip-address/609)

<div class="topic-metadata">

**Author:** [@Farid](https://forum.commonvisionblox.com/u/Farid)\
**Replies:** 4\
**Last updated:** [December 12, 2018, 8:10am UTC](https://forum.commonvisionblox.com/t/camera-ip-address/609 "2018-12-12T08:10:27Z")

</div>

When using GenApi.NMGetNode(..) , what is the correct string for the nodeName, so that the camera’s IP address could be queried ?

---

## [Dalsa Linea & encoder triggering](https://forum.commonvisionblox.com/t/dalsa-linea-encoder-triggering/602)

<div class="topic-metadata">

**Author:** [@michael.desmet](https://forum.commonvisionblox.com/u/michael.desmet)\
**Replies:** 1\
**Last updated:** [November 29, 2018, 4:10pm UTC](https://forum.commonvisionblox.com/t/dalsa-linea-encoder-triggering/602 "2018-11-29T16:10:55Z")

</div>

Hi, I am using a Dalsa Linea Mono 4K GigE line scan camera, and I am having some issues with the encoder-triggered behavior. I would like to use the encoder-triggered camera on a conveyor belt system that can move forw…

---

## [Polimago search and classification - home-made training application](https://forum.commonvisionblox.com/t/polimago-search-and-classification-home-made-training-application/576)

<div class="topic-metadata">

**Author:** [@LincolnshirePoacher](https://forum.commonvisionblox.com/u/LincolnshirePoacher)\
**Replies:** 5\
**Last updated:** [October 31, 2018, 9:16pm UTC](https://forum.commonvisionblox.com/t/polimago-search-and-classification-home-made-training-application/576 "2018-10-31T21:16:55Z")

</div>

Hello, I have a Polimago application using both a search and a classification classifier (search for a defect, then classify it). I would like to make a restricted ‘Teach’ application that will let me control users’ acc…

---

## [Lambda function vpat pixel access in Release mode](https://forum.commonvisionblox.com/t/lambda-function-vpat-pixel-access-in-release-mode/562)

<div class="topic-metadata">

**Author:** [@richard\_loewenherz](https://forum.commonvisionblox.com/u/richard_loewenherz)\
**Replies:** 1\
**Last updated:** [September 27, 2018, 2:25pm UTC](https://forum.commonvisionblox.com/t/lambda-function-vpat-pixel-access-in-release-mode/562 "2018-09-27T14:25:48Z")

</div>

Hi there, I tried to make a lambda function for my pixel access. But there is something strange happening… In debug mode everything works fine, while in release mode there is an access violation: void ForEachPixel(IMG…

---

## [Normlizing an Image - image division and datatype conversion](https://forum.commonvisionblox.com/t/normlizing-an-image-image-division-and-datatype-conversion/553)

<div class="topic-metadata">

**Author:** [@richard\_loewenherz](https://forum.commonvisionblox.com/u/richard_loewenherz)\
**Replies:** 2\
**Last updated:** [September 17, 2018, 6:56am UTC](https://forum.commonvisionblox.com/t/normlizing-an-image-image-division-and-datatype-conversion/553 "2018-09-17T06:56:35Z")

</div>

Hi, I’m trying to normalize an Image (sample) using a white reference (wRef) and a black reference (bRef): sample\_normalized = (sample - bRef) / (wRef - bRef) The resulting image should have a value range of \[0,1\]. F…

---

## [Reference Count GenICam.vin CVB 13.01.xxx](https://forum.commonvisionblox.com/t/reference-count-genicam-vin-cvb-13-01-xxx/516)

<div class="topic-metadata">

**Author:** [@Amicelli](https://forum.commonvisionblox.com/u/Amicelli)\
**Replies:** 1\
**Last updated:** [August 10, 2018, 5:33pm UTC](https://forum.commonvisionblox.com/t/reference-count-genicam-vin-cvb-13-01-xxx/516 "2018-08-10T17:33:53Z")

</div>

Hello, I remember from earlier versions (starting with10.x/11.x) that for the GenICam.vin the reference count was 2 by default (1 for the handle of the camera and 1 for the GenICam Nodemap). Thus, if you load the GenICa…

[Next page](https://forum.commonvisionblox.com/c/programming-questions/classic-api/7.md?page=1)
