genicam / harvesters

Image Acquisition Library for GenICam-based Machine Vision System
Apache License 2.0
510 stars 87 forks source link

Add Mono10g40 & Mono12g24 PixelFormats (IDS cameras) #473

Open aphilip442 opened 1 month ago

aphilip442 commented 1 month ago

What is the goal that you want to achieve by the request? I would like to use some IDS cameras with Harvesters, such as the one showed here: https://fr.ids-imaging.com/store/u3-38j2xls-rev-1-2.html Currently Harvesters fails to use them because it misses the required pixel formats (Mono10g40 & Mono12g24). I implemented those formats following the explanations provided here: https://www.1stvision.com/cameras/IDS/IDS-manuals/en/basics-monochrome-pixel-formats.html

I will make a PR for this.

aphilip442 commented 1 month ago

As mentioned here (https://www.1stvision.com/cameras/IDS/IDS-manuals/en/basics-monochrome-pixel-formats.html) the definitive name (so probably the associated symbolic key) might change, so an additional lookup might need to be added in the future. If extending the official PFNC symbolics directly is a nono (?), then a mechanism to extend it would also be great.