Documentation ¶
Index ¶
- Constants
- func DisableInterface(id string)
- func EnableInterface(id string)
- func GetDeviceId(index uint) (string, error)
- func GetInterfaceId(index uint) (string, error)
- func GetNumDevices() (uint, error)
- func GetNumInferface() (uint, error)
- func InterfaceGetDeviceAddress()
- func InterfaceGetDeviceId()
- func InterfaceGetDevicePhysicalId()
- func InterfaceGetNumDevices()
- func InterfaceOpenDevice()
- func OpenDevice()
- func Shutdown()
- func UpdateDeviceList()
- type BayerRG
- type Buffer
- type Camera
- func (c *Camera) AbortAcquisition()
- func (c *Camera) Close()
- func (c *Camera) CreateStream() (Stream, error)
- func (c *Camera) GVGetCurrentStreamChannel() (int, error)
- func (c *Camera) GVGetNumStreamChannels() (int, error)
- func (c *Camera) GVGetPacketDelay() (int64, error)
- func (c *Camera) GVGetPacketSize() (int, error)
- func (c *Camera) GVSelectStreamChannels(id int)
- func (c *Camera) GVSetPacketDelay(delay int64)
- func (c *Camera) GVSetPacketSize(size int)
- func (c *Camera) GetAvailablePixelFormats()
- func (c *Camera) GetAvailablePixelFormatsAsDisplayNames()
- func (c *Camera) GetAvailablePixelFormatsAsStrings()
- func (c *Camera) GetBinning() (int, int, error)
- func (c *Camera) GetChunkMode() (bool, error)
- func (c *Camera) GetDevice() (Device, error)
- func (c *Camera) GetDeviceId() (string, error)
- func (c *Camera) GetExposureTime() (float64, error)
- func (c *Camera) GetExposureTimeAuto()
- func (c *Camera) GetExposureTimeBounds()
- func (c *Camera) GetFrameRate() (float64, error)
- func (c *Camera) GetFrameRateBounds() (float64, float64, error)
- func (c *Camera) GetGain() (float64, error)
- func (c *Camera) GetGainBounds() (float64, float64, error)
- func (c *Camera) GetHeightBounds() (int, int, error)
- func (c *Camera) GetModelName() (string, error)
- func (c *Camera) GetPayloadSize() (uint, error)
- func (c *Camera) GetPixelFormat()
- func (c *Camera) GetPixelFormatAsString()
- func (c *Camera) GetRegion() (int, int, int, int, error)
- func (c *Camera) GetSensorSize() (int, int, error)
- func (c *Camera) GetTriggerSource() (string, error)
- func (c *Camera) GetVendorName() (string, error)
- func (c *Camera) GetWidthBounds() (int, int, error)
- func (c *Camera) IsExposureAutoAvailable() (bool, error)
- func (c *Camera) IsExposureTimeAvailable() (bool, error)
- func (c *Camera) IsGVDevice() (bool, error)
- func (c *Camera) SetAcquisitionMode(mode int)
- func (c *Camera) SetBinning()
- func (c *Camera) SetExposureTime(time float64)
- func (c *Camera) SetExposureTimeAuto(mode int)
- func (c *Camera) SetFrameRate(frameRate float64)
- func (c *Camera) SetGain(gain float64)
- func (c *Camera) SetGainAuto()
- func (c *Camera) SetPixelFormat()
- func (c *Camera) SetPixelFormatFromString()
- func (c *Camera) SetRegion(x, y, width, height int)
- func (c *Camera) SetTrigger(source string)
- func (c *Camera) SetTriggerSource(source string)
- func (c *Camera) SoftwareTrigger()
- func (c *Camera) StartAcquisition()
- func (c *Camera) StopAcquisition()
- type Device
- type Stream
Constants ¶
View Source
const ( BUFFER_STATUS_UNKNOWN = C.ARV_BUFFER_STATUS_UNKNOWN BUFFER_STATUS_SUCCESS = C.ARV_BUFFER_STATUS_SUCCESS BUFFER_STATUS_CLEARED = C.ARV_BUFFER_STATUS_CLEARED BUFFER_STATUS_TIMEOUT = C.ARV_BUFFER_STATUS_TIMEOUT BUFFER_STATUS_MISSING_PACKETS = C.ARV_BUFFER_STATUS_MISSING_PACKETS BUFFER_STATUS_WRONG_PACKET_ID = C.ARV_BUFFER_STATUS_WRONG_PACKET_ID BUFFER_STATUS_SIZE_MISMATCH = C.ARV_BUFFER_STATUS_SIZE_MISMATCH BUFFER_STATUS_FILLING = C.ARV_BUFFER_STATUS_FILLING BUFFER_STATUS_ABORTED = C.ARV_BUFFER_STATUS_ABORTED )
View Source
const ( ACQUISITION_MODE_CONTINUOUS = C.ARV_ACQUISITION_MODE_CONTINUOUS ACQUISITION_MODE_SINGLE_FRAME = C.ARV_ACQUISITION_MODE_SINGLE_FRAME )
View Source
const ( AUTO_OFF = C.ARV_AUTO_OFF AUTO_ONCE = C.ARV_AUTO_ONCE AUTO_CONTINUOUS = C.ARV_AUTO_CONTINUOUS )
Variables ¶
This section is empty.
Functions ¶
func DisableInterface ¶
func DisableInterface(id string)
func EnableInterface ¶
func EnableInterface(id string)
func GetDeviceId ¶
func GetInterfaceId ¶
func GetNumDevices ¶
func GetNumInferface ¶
func InterfaceGetDeviceAddress ¶
func InterfaceGetDeviceAddress()
func InterfaceGetDeviceId ¶
func InterfaceGetDeviceId()
func InterfaceGetDevicePhysicalId ¶
func InterfaceGetDevicePhysicalId()
func InterfaceGetNumDevices ¶
func InterfaceGetNumDevices()
func InterfaceOpenDevice ¶
func InterfaceOpenDevice()
func OpenDevice ¶
func OpenDevice()
func UpdateDeviceList ¶
func UpdateDeviceList()
Types ¶
type BayerRG ¶
type BayerRG struct { // Pix holds the image's pixels, in bayer order. The pixel at // (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)]. Pix []uint8 // Stride is the Pix stride (in bytes) between vertically adjacent pixels. Stride int // Rect is the image's bounds. Rect image.Rectangle }
func NewBayerRG ¶
func (*BayerRG) ColorModel ¶
type Camera ¶
type Camera struct {
// contains filtered or unexported fields
}
func (*Camera) AbortAcquisition ¶
func (c *Camera) AbortAcquisition()
func (*Camera) CreateStream ¶
func (*Camera) GVGetCurrentStreamChannel ¶
func (*Camera) GVGetNumStreamChannels ¶
func (*Camera) GVGetPacketDelay ¶
func (*Camera) GVGetPacketSize ¶
func (*Camera) GVSelectStreamChannels ¶
func (*Camera) GVSetPacketDelay ¶
func (*Camera) GVSetPacketSize ¶
func (*Camera) GetAvailablePixelFormats ¶
func (c *Camera) GetAvailablePixelFormats()
func (*Camera) GetAvailablePixelFormatsAsDisplayNames ¶
func (c *Camera) GetAvailablePixelFormatsAsDisplayNames()
func (*Camera) GetAvailablePixelFormatsAsStrings ¶
func (c *Camera) GetAvailablePixelFormatsAsStrings()
func (*Camera) GetChunkMode ¶
func (*Camera) GetDeviceId ¶
func (*Camera) GetExposureTime ¶
func (*Camera) GetExposureTimeAuto ¶
func (c *Camera) GetExposureTimeAuto()
func (*Camera) GetExposureTimeBounds ¶
func (c *Camera) GetExposureTimeBounds()
func (*Camera) GetFrameRate ¶
func (*Camera) GetModelName ¶
func (*Camera) GetPayloadSize ¶
func (*Camera) GetPixelFormat ¶
func (c *Camera) GetPixelFormat()
func (*Camera) GetPixelFormatAsString ¶
func (c *Camera) GetPixelFormatAsString()
func (*Camera) GetTriggerSource ¶
func (*Camera) GetVendorName ¶
func (*Camera) IsExposureAutoAvailable ¶
func (*Camera) IsExposureTimeAvailable ¶
func (*Camera) IsGVDevice ¶
func (*Camera) SetAcquisitionMode ¶
func (*Camera) SetBinning ¶
func (c *Camera) SetBinning()
func (*Camera) SetExposureTime ¶
func (*Camera) SetExposureTimeAuto ¶
func (*Camera) SetFrameRate ¶
func (*Camera) SetGainAuto ¶
func (c *Camera) SetGainAuto()
func (*Camera) SetPixelFormat ¶
func (c *Camera) SetPixelFormat()
func (*Camera) SetPixelFormatFromString ¶
func (c *Camera) SetPixelFormatFromString()
func (*Camera) SetTrigger ¶
func (*Camera) SetTriggerSource ¶
func (*Camera) SoftwareTrigger ¶
func (c *Camera) SoftwareTrigger()
func (*Camera) StartAcquisition ¶
func (c *Camera) StartAcquisition()
func (*Camera) StopAcquisition ¶
func (c *Camera) StopAcquisition()
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func (*Stream) PushBuffer ¶
func (*Stream) TimeoutPopBuffer ¶
func (*Stream) TryPopBuffer ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.