C# Class IMAQ.CameraController

This keeps track of everything to do with images. It has 3 sections: -the form (to display the image) -an IMAQdxSession (the class which controls the camera) -a VisionImage (the class that deals with image data) You can now build this into a hardware controller and it knows how to use a camera! The hardware controller doesn't really need to know anything about IMAQ anymore.
Show file Open project: ColdMatter/EDMSuite Class Usage Examples

Public Properties

Property Type Description
analyse bool
image VisionImage
imageList List

Public Methods

Method Description
CameraController ( string cameraName ) : System
Dispose ( ) : void
DisposeImages ( ) : void
GetSaveDialogFilename ( ) : string
Initialize ( ) : void
IsCameraFree ( ) : bool
IsReadyForAcqisition ( ) : bool
MultipleSnapshot ( string attributesPath, int numberOfShots ) : ].byte[][
PrintCameraAttributesToConsole ( ) : void
SaveImage ( ) : void
SaveImage ( String dataStoreFilePath ) : void
SaveImageWithDialog ( ) : void
SetCameraAttributes ( string newPath ) : string
SingleSnapshot ( string attributesPath ) : ].byte[
SingleSnapshot ( string attributesPath, bool addToImageList ) : ].byte[
StopStream ( ) : void
StoreImageData ( string savePath, byte imageData ) : void
StoreImageList ( string savePath ) : void
StoreImageListWithDialog ( ) : void
Stream ( string cameraAttributesFilePath ) : bool

Private Methods

Method Description
Getthemaximum ( ) : void
closeViewerWindow ( ) : void
initializeCamera ( ) : void
openViewerWindow ( ) : void
stream ( ) : void

Method Details

CameraController() public method

public CameraController ( string cameraName ) : System
cameraName string
return System

Dispose() public method

public Dispose ( ) : void
return void

DisposeImages() public method

public DisposeImages ( ) : void
return void

GetSaveDialogFilename() public method

public GetSaveDialogFilename ( ) : string
return string

Initialize() public method

public Initialize ( ) : void
return void

IsCameraFree() public method

public IsCameraFree ( ) : bool
return bool

IsReadyForAcqisition() public method

public IsReadyForAcqisition ( ) : bool
return bool

MultipleSnapshot() public method

public MultipleSnapshot ( string attributesPath, int numberOfShots ) : ].byte[][
attributesPath string
numberOfShots int
return ].byte[][

PrintCameraAttributesToConsole() public method

public PrintCameraAttributesToConsole ( ) : void
return void

SaveImage() public method

public SaveImage ( ) : void
return void

SaveImage() public method

public SaveImage ( String dataStoreFilePath ) : void
dataStoreFilePath String
return void

SaveImageWithDialog() public method

public SaveImageWithDialog ( ) : void
return void

SetCameraAttributes() public method

public SetCameraAttributes ( string newPath ) : string
newPath string
return string

SingleSnapshot() public method

public SingleSnapshot ( string attributesPath ) : ].byte[
attributesPath string
return ].byte[

SingleSnapshot() public method

public SingleSnapshot ( string attributesPath, bool addToImageList ) : ].byte[
attributesPath string
addToImageList bool
return ].byte[

StopStream() public method

public StopStream ( ) : void
return void

StoreImageData() public method

public StoreImageData ( string savePath, byte imageData ) : void
savePath string
imageData byte
return void

StoreImageList() public method

public StoreImageList ( string savePath ) : void
savePath string
return void

StoreImageListWithDialog() public method

public StoreImageListWithDialog ( ) : void
return void

Stream() public method

public Stream ( string cameraAttributesFilePath ) : bool
cameraAttributesFilePath string
return bool

Property Details

analyse public property

public bool analyse
return bool

image public property

public VisionImage image
return VisionImage

imageList public property

public List imageList
return List