.net - Live Video Display Stutter Using StetchBlt to Write Bitmaps To Panel in C# -


the project i'm working on requires live agc , display of 14 bit gray-scale video. video grabbed teledyne dalsa camera link card , processed pixel array on 1 thread stored bitmap. second display thread grabs latest available bitmap image , writes panel using stretchblt. processing thread runs on average around 40hz while display thread can re-draw latest image @ 150hz or faster. same image re-written multiple times before new 1 becomes available, don't think issue. problem occurring there sort of stutter using method of display. when video camera feeding program slewed left or right it's not smooth , there bit of lag/aberration. vertical lines in image seem hang slightly.

my question is, there way fix this? there better way display live video? both threads running plenty fast enough render video doesn't stutter somehow still graphically when compared 30hz unprocessed analog signal. input appreciated , can provide more information if helpful.

thanks!

kidron

you can not fix problem - hardware one.

this aberration arises due rolling-shutter effect on cmos matrices.

pictures on different matrix lines fixed in different time moments, upper , bottom parts of frame have temporary lag (there left-to-right shutters too), , vertical lines become bent when camera (or scene) moves.

some video edit software might partially correct such distortions, full restore not possible.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -