This document describes the sample code that is included in the SDK and can be found in C:\Aptina Imaging\samples.
They use VS2015, and Qt 5.9.4 where applicable. Also, for some samples VS2008/VS2010/VS2012/VS2013 solutions files are available.
NOTE: for Qt applications, you'll need to install Qt's VS2015 plugin and then in VS2015 set the following "Qt Versions" via the "Qt VS Tools" menu;
- Name "msvc2015_64" and path to 64-bit Qt (e.g C:\Qt\Qt5.9.4\5.9.4\msvc2015_64)
- Name "msvc2015" and path to 32-bit Qt (e.g. C:\Qt\Qt5.9.4\5.9.4\msvc2015)
Most pre-built executables are in C:\Aptina Imaging.
Each application is noted as being Command Line-based, GUI-based, or a plug-in.
...
Also, the Python script "create_new_dlg.py" can be used to make a copy of the BlankQtDlg source into the DevWare directory, while making all necessary file name changes and string substitutions to create a new plug-in project.
NOTE: for Qt applications, ensure that you have a System Variable of "QTDIR" set to the location of your Qt installation files; for example, C:\Qt\Qt5.4.0\5.4\msvc2012_opengl
Csharp_ApBase_COM_Sample
Csharp_ApBaseCOM.exe is a Command Line based C# sample of using ApBase's COM interface built using Visual Studio C#. The sample performs the following actions:
1. Starts ApBase_COM and then displays the sensor name found.
2. Loads the default initialization preset.
3. Sets up the capture/save parameters.
4. Grab the frame and saves it, and verifies there were no errors.
5. Exits ApBase_COM.
...
- ColorPipe.py shows calling the ApBase API to do image processing as in DevWareX, on a RAW file.
- convert_12bit_to_8 or 10bit.py converts 12 bit raw file of Aptina sensors to 8 bit and 10 bit raw files.
- NoiseMeasurement.py uses ApBase API from DevSuite to do noise measurement for raw files and write the results to text files.
- RGBIRVideoCapture.py uses ApBase API from DevSuite to creates a video file from an RGB-IR sensor.
- SimpleCapture.py shows calling ApBase API from DevSuite to do an image capture.
- SimpleCapture_Ubuntu.py same as SimpleCapture.py except coded for Ubuntu._
- SimpleCaptureAvi.py shows calling ApBase API from DevSuite to capture 100 frames and create an AVI video file.
...
RawToRGB is a Command Line based Visual Studio C++ application that converts a raw image to RGB using ApBase.
RecordRGBIR
This Visual Studio C++ application creates a video file from an RGB-IR sensor.
The video will have RGB images and IR images alternating.
This is an example of how to use the ApBase and RgbIR4x4Pipe libraries. The RgbIR4x4Pipe integrates with ApBase to do IR processing on images sent through the software color pipe.
A Python version can be found under "Python_Samples".
SampleAFMDLL
This is another sample Devware Plugin Dialog (using Visual Studio C++) which is used to control Auto Focus Mechanics. It allows the user to control an AF module by providing the I2C address, Min/Max positions and step sizes. Please refer to the The Dialog Plug-in API for DevWare and Auto Focus Mechanics Plugins Development Guide document for more information. Note that the DLL must reside in the C:\Aptina Imaging\Plugins directory.
...
Simple is a GUI-based QT Visual Studio C++ ApBase application that can display image output for all Aptina sensors. It has a very simple demosaic algorithm in order to display output for Bayer only parts. It also includes examples of how to read and write registers.
Note that the application expects the width and height to match the SDAT's values of "Width" and "Height".
NOTE: for Qt applications, ensure that you have a System Variable of "QTDIR" set to the location of your Qt installation files; for example, C:\Qt\Qt5.4.0\5.4\msvc2012_opengl
TransportDLL
TransportDLL is a sample Visual Studio C++ transport DLL. A transport DLL allows a user to use non-Aptina Hardware to run with Devware or any other MIDLIB application. For more information on creating a transportDLL please refer to the "Transport DLL Development Guide"