Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basler PGI and Bayer pixel formats #771

Open
loksbjerre opened this issue Aug 16, 2024 · 4 comments
Open

Basler PGI and Bayer pixel formats #771

loksbjerre opened this issue Aug 16, 2024 · 4 comments

Comments

@loksbjerre
Copy link

Describe what you want to implement and what the issue & the steps to reproduce it are:

Documentation states hat Basler PGI does not support the Bayer pixel formats. But when choosing a Bayer pixel format in Pylon Viewer, selecting PGI demosaicing is still possible, and it seems to work alright, i.e changing sharpening, noise reduction and scaling works ?

Is your camera operational in Basler pylon viewer on your platform

Yes

Hardware setup & camera model(s) used

a2A4096-30ucPRO, X86_64, Windows 11, 64 GB Ram, usb 3.2, 3 m usg cable

Runtime information:

pylon info: 8.0.0.10 64-Bit
----------------------------------------
pylon Setup info: 7.5.0.15658 
----------------------------------------
pylon Application info: 3.3.0.15479 64-Bit
----------------------------------------
pylon Viewer info: 7.5.0.15479 64-Bit
----------------------------------------
Host system infos:

CPU architecture: x86_64
Kernel type: winnt
Kernel version: 10.0.22631
OS type: windows
OS version: 11
Render Backend: Direct3D11
----------------------------------------
Screen(s):

Screen 0 scale factor: 1
Screen 0 resolution: 3840x2160
Screen 1 scale factor: 1
Screen 1 resolution: 2560x1440
----------------------------------------
Window(s):

"pylon Viewer 64-Bit" on screen 0
----------------------------------------
Host network infos:

Host network adapter Ethernet:
    Name: ethernet_32769
    MAC address: B0:6E:BF:60:88:FC
    IP address: 192.168.2.122
    Subnet mask: 255.255.255.0
----------------------------------------
Device infos:

USB3 Vision device:
    Model name: a2A4096-30ucPRO
    Manufacturer name: Basler
    Serial number: 40525486
    Device GUID: 267601CB7EF5
    Product ID: 0xBA05
    Vendor ID: 0x2676
    USB version: 3.2.0
    Device path: \\?\usb#vid_2676&pid_ba05&mi_00#7&91a2638&0&0000#{79bfeeca-947f-11e1-bc58-001b2163ef96}
@HighImp
Copy link
Contributor

HighImp commented Aug 16, 2024

Hello,
it is possible to select the demosaicing node PGI in a Bayer pixel format, but it is not recommended. If you use Auto mode, the best algorithm will be selected for you. But if you like the results with forced PGI on Bayer format, you can of course leave it enabled. See also: https://docs.baslerweb.com/demosaicing-mode
Best Regards

@HighImp
Copy link
Contributor

HighImp commented Aug 16, 2024

You will probably see severe artifacts that cannot be fixed due to this combination.

@thiesmoeller
Copy link
Collaborator

PGI contains the steps of demosaicing and denoising/sharpening.

If you enable PGI and a Bayer output the camera will generate internally full RGB image and output this as a Bayer raw image.

So you get denoising/sharpening and but the final demosacing and thus a relevant part of the image quality will depend on the software algorithm you use on your host.

@basilbatov
Copy link

basilbatov commented Feb 7, 2025

@thiesmoeller

From https://docs.baslerweb.com/demosaicing-mode#why-use-demosaicing-mode:

"Basler color cameras always perform demosaicing, even when the pixel format is set to a Bayer format. This is due to the camera's internal image processing."

So how can I obtain this image that gets demosaiced internally by the camera? Selecting RGB pixel format significantly reduces the maximum framerate, but selecting the Bayer format and doing the demosaicing on the host increases the processing load on the host, which is pointless if the demosaiced image is already produced by the camera anyway?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants