Touseefelahi / GigeVision

Simple GigeVision implementation, GVSP, GVCP protocol implemented
97 stars 31 forks source link

MONO14 format streaming #94

Closed YorkWong1995 closed 6 months ago

YorkWong1995 commented 6 months ago

My camera data format is mono14. From wireshark, the payload part is two packets that make up a single piece of data。 In sample. the format is mono8. I changed it to MONO14, but it can not show correctly. How should I modify the sample? Thanks in advance

Touseefelahi commented 6 months ago

@YorkWong1995 you need to convert the data into 8 bit to display properly. that can be done simply by dividing the pixel values by the 64 for your case. You can do it on your own or use some library

Touseefelahi commented 6 months ago

There are many other ways to convert 14 bit image to 8 bit, start with histogram equalization base techniques.

YorkWong1995 commented 6 months ago

OK Thanks a lot