|The FrameTypes collections allows the specification of valid image formats for the ImageBuffer collection.|
Public FrameTypes As FrameTypes
The following example shows how to setup a FrameHandlerSink that only accepts the 8-bit-gray image formats Y800 and RGB8.
Dim fhs As New FrameHandlerSink Dim ftY800 As New FrameType ftY800.Type = "Y800" fhs.FrameTypes.Add ftY800 Dim ftRGB8 As New FrameType ftRGB8.Type = "RGB8" fhs.FrameTypes.Add ftRGB8 ICImagingControl1.Sink = fhs ICImagingControl1.LiveStart
To let a sink only accept images in the bayer format BY8, the following source code can be used:
Dim fhs As New FrameHandlerSink Dim ftBY8 As New FrameType ftBY8.Type = "BY8" fhs.FrameTypes.Add ftBY8 ICImagingControl1.Sink = fhs ICImagingControl1.LiveStart
|See also:||FrameHandlerSink, FrameTypes|
Established in 1990, The Imaging Source is one of the leading manufacturers of industrial cameras, frame grabbers and video converters for production automation, quality assurance, logistics, medicine, science and security.
Our comprehensive range of cameras with USB 3.1, USB 3.0, USB 2.0, GigE interfaces and other innovative machine vision products are renowned for their high quality and ability to meet the performance requirements of demanding applications.