Chronos > Software Dev

LabVIEW

<< < (2/2)

lwaters:

--- Quote from: ExlerElektronik on January 12, 2021, 01:11:35 AM ---NOTE LabVIEW is a scientific programming language used in R&D with a focus on data ackquisition and processing. It is used to program your own algorithms (with a lot of standard functions including image processing provided depending on the extensions you're using) it is not a tool for image processing like the adobe photoshop and similar!

First things I want to share below. You will need LabVIEW 2019 or above to run this VI's (if anyone needs a version saved for an older release of LabVIEW post a note here).


* exampleExler is the LabVIEW example provided by Krontech reworked to have some better programming style, e.g. using an event driven user interface instead of parallel loops, ...
* getScreenshotJPEG reads the live preview as JPEG file. By default it saves a file "chronos.jpg" to the system's temporary folder
* getScreenshotPicture using the above to display a small preview image withing LabVIEW. The size of the image could be scaled as required.
For all examples the default IP address is the one the camera will get connected over USB using the RNDIS driver.

--- End quote ---


Do you have anything for LABVIEW 2009?

Thank you!

ExlerElektronik:
Hello Icombs,
I've exported my simple examples from above to LabVIEW 9. There have been some warnings, so I can't guarantee they are working. Some serious things might have changed in LabVIEW's libraries and capabilitits since version 9.

NOTE: In between I have improved my getScreenshotPicture.vi to use Windows API calls to avoid saving the received data to an intermediate file. In newer LabVIEW versions my VI detects the operating system and uses Windows API if possible, intermediate file save else. I have attached two seperate versions of the getScreenshotPicture in this ZIP.

Hope it works!

ExlerElektronik:
I've done s simple set of functions to load and view images recorded at the camera in LabVIEW (2019 or above)
Load and run TestImageView.vi (top level) to interactively display frames captured by color Chronos cameras.

Implementation remarks
The functions have been written to allow image preview within a LabVIEW application.
At the moment Bayer pattern processing is done in a very simple way.
I expect a lot of speed improvement is possible optimizing for file format.
Color mangagement will require further improvements. All types of RAW files show some color mismatch. View ColorCompare.png to compare.

General notes
Functions are provided "as is". Feel free to use, modify and include in your own project.
Testing has been done with a Chronos 2.1 color camera.
If you find errors with other model(s), let me know.
You can send notes or ideas to improve to [email protected].
As the camera is part of a larger project and finally goes to the end user I might not be able to give support afterwards.

File format specific instructions

* TIFF 8 Bit
no post processing required

* DNG, TIFF RAW
use ColorMatrix, Clip, Gamma, adjust gain to max about 1.0

* RAW12 and RAW16
set imageWidth, imageHeight and BitsPerSample
select individual frame: set StripOffsets to frame number
use ColorMatrix, Clip, Gamma, adjust gain to max about 1.0

Navigation

[0] Message Index

[*] Previous page

Go to full version