diff --git a/README.md b/README.md
index 62f8281..e6742c5 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# HDevelop samples
-This repository contains halcon code samples for Zivid SDK v2.8.1. For
+This repository contains halcon code samples for Zivid SDK v2.9.0. For
tested compatibility with earlier SDK versions, please check out
[accompanying
releases](https://github.com/zivid/zivid-halcon-samples/tree/master/../../releases).
@@ -48,6 +48,8 @@ from the camera can be used.
- **InfoUtilOther**
- [QuerySettingsAndParameters](https://github.com/zivid/zivid-halcon-samples/tree/master//source/Camera/InfoUtilOther/QuerySettingsAndParameters.hdev) - Query information about the image acquisition interface
and selected specific parameters of Zivid camera.
+ - [Warmup](https://github.com/zivid/zivid-halcon-samples/tree/master//source/Camera/InfoUtilOther/Warmup.hdev) - A basic warm-up method for a Zivid camera with specified
+ time and capture cycle.
- **Applications**
- **Basic**
- **FileFormats**
diff --git a/source/Camera/Basic/CaptureHDRCompleteSettings.hdev b/source/Camera/Basic/CaptureHDRCompleteSettings.hdev
index 11ef993..e51bd5f 100644
--- a/source/Camera/Basic/CaptureHDRCompleteSettings.hdev
+++ b/source/Camera/Basic/CaptureHDRCompleteSettings.hdev
@@ -66,6 +66,21 @@
* Setting global settings
set_framegrabber_param (AcqHandle, 'ExperimentalEngine', 'phase')
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxEnabled', 1)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxPointOX', 1000)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxPointOY', 1000)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxPointOZ', 1000)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxPointAX', 1000)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxPointAY', -1000)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxPointAZ', 1000)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxPointBX', -1000)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxPointBY', 1000)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxPointBZ', 1000)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxExtentsMin', -1000)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxExtentsMax', 1000)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestDepthEnabled', 1)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestDepthRangeMin', 200)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestDepthRangeMax', 2000)
set_framegrabber_param (AcqHandle, 'ProcessingFiltersSmoothingGaussianEnabled', 1)
set_framegrabber_param (AcqHandle, 'ProcessingFiltersSmoothingGaussianSigma', 1.5)
set_framegrabber_param (AcqHandle, 'ProcessingFiltersNoiseRemovalEnabled', 1)
@@ -73,10 +88,16 @@
set_framegrabber_param (AcqHandle, 'ProcessingFiltersOutlierRemovalEnabled', 1)
set_framegrabber_param (AcqHandle, 'ProcessingFiltersOutlierRemovalThreshold', 5.0)
set_framegrabber_param (AcqHandle, 'ProcessingFiltersReflectionRemovalEnabled', 1)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersClusterRemovalEnabled', 1)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersClusterRemovalMaxNeighborDistance', 10)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersClusterRemovalMinArea', 100)
set_framegrabber_param (AcqHandle, 'ProcessingFiltersExperimentalContrastDistortionCorrectionEnabled', 1)
set_framegrabber_param (AcqHandle, 'ProcessingFiltersExperimentalContrastDistortionCorrectionStrength', 0.4)
set_framegrabber_param (AcqHandle, 'ProcessingFiltersExperimentalContrastDistortionRemovalEnabled', 1)
set_framegrabber_param (AcqHandle, 'ProcessingFiltersExperimentalContrastDistortionRemovalThreshold', 0.5)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersExperimentalHoleFillingEnabled', 1)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersExperimentalHoleFillingHoleSize', 0.2)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersExperimentalHoleFillingStrictness', 1)
set_framegrabber_param (AcqHandle, 'ProcessingColorBalanceBlue', 1)
set_framegrabber_param (AcqHandle, 'ProcessingColorBalanceGreen', 1)
set_framegrabber_param (AcqHandle, 'ProcessingColorBalanceRed', 1)
diff --git a/source/Procedures/get_first_available_zivid_device.hdvp b/source/Procedures/get_first_available_zivid_device.hdvp
index e3d4695..dc6cd74 100644
--- a/source/Procedures/get_first_available_zivid_device.hdvp
+++ b/source/Procedures/get_first_available_zivid_device.hdvp
@@ -1,5 +1,5 @@
-
+
diff --git a/source/Procedures/get_zivid_model_folder_name.hdvp b/source/Procedures/get_zivid_model_folder_name.hdvp
index 4044b5b..0a4cac4 100644
--- a/source/Procedures/get_zivid_model_folder_name.hdvp
+++ b/source/Procedures/get_zivid_model_folder_name.hdvp
@@ -1,5 +1,5 @@
-
+
diff --git a/source/Procedures/get_zivid_sample_data_dir.hdvp b/source/Procedures/get_zivid_sample_data_dir.hdvp
index 6470762..d35de95 100644
--- a/source/Procedures/get_zivid_sample_data_dir.hdvp
+++ b/source/Procedures/get_zivid_sample_data_dir.hdvp
@@ -1,5 +1,5 @@
-
+
diff --git a/source/Procedures/read_zivid_json_params.hdvp b/source/Procedures/read_zivid_json_params.hdvp
index db1fb22..676d659 100644
--- a/source/Procedures/read_zivid_json_params.hdvp
+++ b/source/Procedures/read_zivid_json_params.hdvp
@@ -1,5 +1,5 @@
-
+
@@ -9,7 +9,7 @@
get_dict_tuple (path, 'Settings', Settings)
- get_dict_tuple (Settings,'Acquisitions', Acquisitions)
+ get_dict_tuple (Settings, 'Acquisitions', Acquisitions)
get_dict_param (Acquisitions, 'keys', [], AllKeys)
* Single Capture or HDR
@@ -24,79 +24,142 @@
get_dict_tuple (Acquisitions, Index, AcquisitionIndex)
get_dict_tuple (AcquisitionIndex, 'Acquisition', Acquisition)
get_dict_tuple (Acquisition, 'ExposureTime', ExposureTime)
- set_framegrabber_param(AcqHandle,'ExposureTime', ExposureTime)
+ set_framegrabber_param (AcqHandle, 'ExposureTime', ExposureTime)
get_dict_tuple (Acquisition, 'Aperture', Aperture)
set_framegrabber_param (AcqHandle, 'Aperture', Aperture)
- get_dict_tuple(Acquisition, 'Brightness', Brightness)
+ get_dict_tuple (Acquisition, 'Brightness', Brightness)
set_framegrabber_param (AcqHandle, 'Brightness', Brightness)
- get_dict_tuple(Acquisition, 'Gain', Gain)
- set_framegrabber_param(AcqHandle, 'Gain', Gain)
- set_framegrabber_param(AcqHandle, 'AddAcquisition',1)
+ get_dict_tuple (Acquisition, 'Gain', Gain)
+ set_framegrabber_param (AcqHandle, 'Gain', Gain)
+ set_framegrabber_param (AcqHandle, 'AddAcquisition', 1)
endfor
+ * RegionOfInterest
+ get_dict_tuple (Settings, 'RegionOfInterest', RegionOfInterest)
+
+ * Box
+ get_dict_tuple (RegionOfInterest, 'Box', Box)
+ get_dict_tuple (Box, 'Enabled', Enabled)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxEnabled', Enabled)
+ get_dict_tuple (Box, 'Extents', Extents)
+ get_dict_tuple (Extents, 0, ExtentsMin)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxExtentsMin', ExtentsMin)
+ get_dict_tuple (Extents, 1, ExtentsMax)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxExtentsMax', ExtentsMax)
+ get_dict_tuple (Box, 'PointO', PointO)
+ get_dict_tuple (PointO, 0, PointOX)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxPointOX', PointOX)
+ get_dict_tuple (PointO, 1, PointOY)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxPointOY', PointOY)
+ get_dict_tuple (PointO, 2, PointOZ)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxPointOZ', PointOZ)
+ get_dict_tuple (Box, 'PointA', PointA)
+ get_dict_tuple (PointA, 0, PointAX)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxPointAX', PointAX)
+ get_dict_tuple (PointA, 1, PointAY)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxPointAY', PointAY)
+ get_dict_tuple (PointA, 2, PointAZ)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxPointAZ', PointAZ)
+ get_dict_tuple (Box, 'PointB', PointB)
+ get_dict_tuple (PointB, 0, PointBX)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxPointBX', PointBX)
+ get_dict_tuple (PointB, 1, PointBY)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxPointBY', PointBY)
+ get_dict_tuple (PointB, 2, PointBZ)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestBoxPointBZ', PointBZ)
+
+ * Depth
+ get_dict_tuple (RegionOfInterest, 'Depth', Depth)
+ get_dict_tuple (Depth, 'Enabled', Enabled)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestDepthEnabled', 1)
+ get_dict_tuple (Depth, 'Range', Range)
+ get_dict_tuple (Range, 0, RangeMin)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestDepthRangeMin', RangeMin)
+ get_dict_tuple (Range, 1, RangeMax)
+ set_framegrabber_param (AcqHandle, 'RegionOfInterestDepthRangeMax', RangeMax)
+
* Processing Settings
- get_dict_tuple(Settings, 'Processing', Processing)
- get_dict_tuple(Processing, 'Filters', Filters)
+ get_dict_tuple (Settings, 'Processing', Processing)
+ get_dict_tuple (Processing, 'Filters', Filters)
+
+ * Cluster Filter
+ get_dict_tuple (Filters, 'Cluster', Cluster)
+ get_dict_tuple (Cluster, 'Removal', Removal)
+ get_dict_tuple (Removal, 'Enabled', Enabled)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersClusterRemovalEnabled', Enabled)
+ get_dict_tuple (Removal, 'MaxNeighborDistance', MaxNeighborDistance)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersClusterRemovalMaxNeighborDistance', MaxNeighborDistance)
+ get_dict_tuple (Removal, 'MinArea', MinArea)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersClusterRemovalMinArea', MinArea)
* Noise Filter
- get_dict_tuple(Filters, 'Noise', Noise)
- get_dict_tuple(Noise, 'Removal', Removal)
- get_dict_tuple(Removal,'Enabled',Enabled)
- set_framegrabber_param(AcqHandle,'ProcessingFiltersNoiseRemovalEnabled', Enabled)
- get_dict_tuple(Removal,'Threshold',Threshold)
- set_framegrabber_param(AcqHandle,'ProcessingFiltersNoiseRemovalThreshold',Threshold)
+ get_dict_tuple (Filters, 'Noise', Noise)
+ get_dict_tuple (Noise, 'Removal', Removal)
+ get_dict_tuple (Removal, 'Enabled', Enabled)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersNoiseRemovalEnabled', Enabled)
+ get_dict_tuple (Removal, 'Threshold', Threshold)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersNoiseRemovalThreshold', Threshold)
* Outlier Filter
- get_dict_tuple(Filters, 'Outlier', Outlier)
- get_dict_tuple(Outlier, 'Removal', Removal)
- get_dict_tuple(Removal,'Enabled', Enabled)
- set_framegrabber_param(AcqHandle,'ProcessingFiltersOutlierRemovalEnabled', Enabled)
- get_dict_tuple(Removal,'Threshold', Threshold)
+ get_dict_tuple (Filters, 'Outlier', Outlier)
+ get_dict_tuple (Outlier, 'Removal', Removal)
+ get_dict_tuple (Removal, 'Enabled', Enabled)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersOutlierRemovalEnabled', Enabled)
+ get_dict_tuple (Removal, 'Threshold', Threshold)
set_framegrabber_param (AcqHandle, 'ProcessingFiltersOutlierRemovalThreshold', Threshold)
* Reflection Filter
- get_dict_tuple(Filters, 'Reflection', Reflection)
- get_dict_tuple(Reflection, 'Removal', Removal)
- get_dict_tuple(Removal, 'Enabled', Enabled)
- set_framegrabber_param (AcqHandle, 'ProcessingFiltersReflectionRemovalEnabled',Enabled)
- get_dict_tuple(Removal,'Experimental', Experimental)
- get_dict_tuple(Experimental,'Mode', Mode)
- set_framegrabber_param(AcqHandle, 'ProcessingFiltersReflectionRemovalExperimentalMode',Mode)
+ get_dict_tuple (Filters, 'Reflection', Reflection)
+ get_dict_tuple (Reflection, 'Removal', Removal)
+ get_dict_tuple (Removal, 'Enabled', Enabled)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersReflectionRemovalEnabled', Enabled)
+ get_dict_tuple (Removal, 'Experimental', Experimental)
+ get_dict_tuple (Experimental, 'Mode', Mode)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersReflectionRemovalExperimentalMode', Mode)
* Smoothing Filter
- get_dict_tuple(Filters, 'Smoothing', Smoothing)
- get_dict_tuple(Smoothing, 'Gaussian', Gaussian)
- get_dict_tuple(Gaussian, 'Enabled', Enabled)
- set_framegrabber_param(AcqHandle, 'ProcessingFiltersSmoothingGaussianEnabled',Enabled)
- get_dict_tuple(Gaussian, 'Sigma', Sigma)
- set_framegrabber_param(AcqHandle, 'ProcessingFiltersSmoothingGaussianSigma', Sigma)
+ get_dict_tuple (Filters, 'Smoothing', Smoothing)
+ get_dict_tuple (Smoothing, 'Gaussian', Gaussian)
+ get_dict_tuple (Gaussian, 'Enabled', Enabled)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersSmoothingGaussianEnabled', Enabled)
+ get_dict_tuple (Gaussian, 'Sigma', Sigma)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersSmoothingGaussianSigma', Sigma)
* ContrastDistortion Filter
- get_dict_tuple(Filters, 'Experimental', Experimental)
- get_dict_tuple(Experimental, 'ContrastDistortion', ContrastDistortion)
- get_dict_tuple(ContrastDistortion, 'Correction', Correction)
- get_dict_tuple(Correction, 'Enabled', Enabled)
- get_dict_tuple(Correction, 'Strength', Strength)
- set_framegrabber_param(AcqHandle, 'ProcessingFiltersExperimentalContrastDistortionCorrectionEnabled',Enabled)
- set_framegrabber_param(AcqHandle, 'ProcessingFiltersExperimentalContrastDistortionCorrectionStrength',Strength)
- get_dict_tuple(ContrastDistortion, 'Removal', Removal)
- get_dict_tuple(Removal, 'Enabled', Enabled)
- get_dict_tuple(Removal, 'Threshold', Threshold)
- set_framegrabber_param(AcqHandle, 'ProcessingFiltersExperimentalContrastDistortionRemovalEnabled',Enabled)
- set_framegrabber_param(AcqHandle, 'ProcessingFiltersExperimentalContrastDistortionRemovalThreshold',Threshold)
+ get_dict_tuple (Filters, 'Experimental', Experimental)
+ get_dict_tuple (Experimental, 'ContrastDistortion', ContrastDistortion)
+ get_dict_tuple (ContrastDistortion, 'Correction', Correction)
+ get_dict_tuple (Correction, 'Enabled', Enabled)
+ get_dict_tuple (Correction, 'Strength', Strength)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersExperimentalContrastDistortionCorrectionEnabled', Enabled)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersExperimentalContrastDistortionCorrectionStrength', Strength)
+ get_dict_tuple (ContrastDistortion, 'Removal', Removal)
+ get_dict_tuple (Removal, 'Enabled', Enabled)
+ get_dict_tuple (Removal, 'Threshold', Threshold)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersExperimentalContrastDistortionRemovalEnabled', Enabled)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersExperimentalContrastDistortionRemovalThreshold', Threshold)
+
+ * Hole Filling Filter
+ get_dict_tuple (Experimental, 'HoleFilling', HoleFilling)
+ get_dict_tuple (HoleFilling, 'Enabled', Enabled)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersExperimentalHoleFillingEnabled', Enabled)
+ get_dict_tuple (HoleFilling, 'HoleSize', HoleSize)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersExperimentalHoleFillingHoleSize', HoleSize)
+ get_dict_tuple (HoleFilling, 'Strictness', Strictness)
+ set_framegrabber_param (AcqHandle, 'ProcessingFiltersExperimentalHoleFillingStrictness', Strictness)
* Color Settings
- get_dict_tuple(Processing, 'Color', Color)
- get_dict_tuple(Color, 'Balance', Balance)
- get_dict_tuple(Balance, 'Blue', Blue)
- get_dict_tuple(Balance, 'Green', Green)
- get_dict_tuple(Balance, 'Red', Red)
- set_framegrabber_param (AcqHandle,'ProcessingColorBalanceBlue', Blue)
- set_framegrabber_param (AcqHandle,'ProcessingColorBalanceGreen', Green)
- set_framegrabber_param (AcqHandle,'ProcessingColorBalanceRed', Red)
- get_dict_tuple(Color, 'Experimental', Experimental)
- get_dict_tuple(Experimental, 'Mode', Mode)
- set_framegrabber_param(AcqHandle, 'ProcessingColorExperimentalMode', Mode)
+ get_dict_tuple (Processing, 'Color', Color)
+ get_dict_tuple (Color, 'Balance', Balance)
+ get_dict_tuple (Balance, 'Blue', Blue)
+ get_dict_tuple (Balance, 'Green', Green)
+ get_dict_tuple (Balance, 'Red', Red)
+ set_framegrabber_param (AcqHandle, 'ProcessingColorBalanceBlue', Blue)
+ set_framegrabber_param (AcqHandle, 'ProcessingColorBalanceGreen', Green)
+ set_framegrabber_param (AcqHandle, 'ProcessingColorBalanceRed', Red)
+ get_dict_tuple (Color, 'Experimental', Experimental)
+ get_dict_tuple (Experimental, 'Mode', Mode)
+ set_framegrabber_param (AcqHandle, 'ProcessingColorExperimentalMode', Mode)
return ()