Click or drag to resize
CameraImport Class
CameraImport is a class for importing Images from FLIR Cameras.
Inheritance Hierarchy
SystemObject
  Flir.Atlas.Image.ImportCameraImport

Namespace: Flir.Atlas.Image.Import
Assembly: Flir.Atlas.Image (in Flir.Atlas.Image.dll) Version: 3.1
Syntax
C#
public class CameraImport

The CameraImport type exposes the following members.

Constructors
  NameDescription
Public methodCameraImport
Initializes a new instance of the CameraImport class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFindCameraLibraries
Find Exteranl libraries (disk or connected camera) to import.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetImages
Gets all Flir files from Path.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStartImport
Import files from camera.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Examples
C#
 using Flir.Atlas.Image;
 public void ImportImages()
 {
     _cancellationPending = delegate() { return false; };
     list = new List<FileInfo>();
     try
     {
         var im = new CameraImport();
         // Find camera libraries to import from
         List<String> lib = im.FindCameraLibraries();
         // get the imges in the lib
         im.GetImages(lib[0], ImportFiles, _cancellationPending);
         //start import chosen images 
         bool ret = im.StartImport(list, "e:\\tmp\\Import", false, _cancellationPending);
         if (ret)
         {
              // import OK
         }
     }
     catch (Exception e)
     {
          //error handling here
     }

 }
 private List<FileInfo> list;
 private Func<bool> _cancellationPending;

 private void ImportFiles(FileInfo[] fileInfos)
 {
     foreach (var fileInfo in fileInfos)
     {
         try
         {
              // This action will be called when an imges is found on the camera
             list.Add(fileInfo);
         }
         catch (Exception exception)
         {
             //Exception occured while reading image file from camera 
        }
    }
}
See Also