Skip to content

Commit ae3a52d

Browse files
Merge pull request #85 from zivid/2024-04-20-update-csharp-samples
Samples: Update CaptureHDRCompleteSettings
2 parents 4827f3e + cf1f46d commit ae3a52d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

source/Camera/Basic/CaptureHDRCompleteSettings/CaptureHDRCompleteSettings.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static int Main()
3232
var settings = new Zivid.NET.Settings()
3333
{
3434
Engine = Zivid.NET.Settings.EngineOption.Phase,
35-
Sampling = { Color = Zivid.NET.Settings.SamplingGroup.ColorOption.Rgb, Pixel = Zivid.NET.Settings.SamplingGroup.PixelOption.All },
35+
Sampling = { Color = Zivid.NET.Settings.SamplingGroup.ColorOption.Rgb, Pixel = Zivid.NET.Settings.SamplingGroup.PixelOption.BlueSubsample2x2 },
3636
RegionOfInterest = { Box = {
3737
Enabled = true,
3838
PointO = new Zivid.NET.PointXYZ{ x = 1000, y = 1000, z = 1000 },
@@ -58,6 +58,7 @@ static int Main()
5858
Strength = 0.4 },
5959
Removal = { Enabled = true,
6060
Threshold = 0.5 } } } },
61+
Resampling = { Mode = Zivid.NET.Settings.ProcessingGroup.ResamplingGroup.ModeOption.Upsample2x2},
6162
Color = { Balance = { Red = 1.0, Green = 1.0, Blue = 1.0 },
6263
Gamma = 1.0,
6364
Experimental = { Mode = ColorModeOption.Automatic } } }

source/Camera/Basic/CaptureTutorial.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,14 +249,14 @@ foreach (var aperture in new double[] { 9.57, 4.76, 2.59 })
249249
Fully configured settings are demonstrated below.
250250

251251
([go to
252-
source](https://github.com/zivid/zivid-csharp-samples/tree/master//source/Camera/Basic/CaptureHDRCompleteSettings/CaptureHDRCompleteSettings.cs#L31-L92))
252+
source](https://github.com/zivid/zivid-csharp-samples/tree/master//source/Camera/Basic/CaptureHDRCompleteSettings/CaptureHDRCompleteSettings.cs#L31-L93))
253253

254254
``` sourceCode cs
255255
Console.WriteLine("Configuring settings for capture:");
256256
var settings = new Zivid.NET.Settings()
257257
{
258258
Engine = Zivid.NET.Settings.EngineOption.Phase,
259-
Sampling = { Color = Zivid.NET.Settings.SamplingGroup.ColorOption.Rgb, Pixel = Zivid.NET.Settings.SamplingGroup.PixelOption.All },
259+
Sampling = { Color = Zivid.NET.Settings.SamplingGroup.ColorOption.Rgb, Pixel = Zivid.NET.Settings.SamplingGroup.PixelOption.BlueSubsample2x2 },
260260
RegionOfInterest = { Box = {
261261
Enabled = true,
262262
PointO = new Zivid.NET.PointXYZ{ x = 1000, y = 1000, z = 1000 },
@@ -282,6 +282,7 @@ var settings = new Zivid.NET.Settings()
282282
Strength = 0.4 },
283283
Removal = { Enabled = true,
284284
Threshold = 0.5 } } } },
285+
Resampling = { Mode = Zivid.NET.Settings.ProcessingGroup.ResamplingGroup.ModeOption.Upsample2x2},
285286
Color = { Balance = { Red = 1.0, Green = 1.0, Blue = 1.0 },
286287
Gamma = 1.0,
287288
Experimental = { Mode = ColorModeOption.Automatic } } }
@@ -343,7 +344,7 @@ Check out
343344
for recommended .yml files tuned for your application.
344345

345346
([go to
346-
source](https://github.com/zivid/zivid-csharp-samples/tree/master//source/Camera/Basic/CaptureHDRCompleteSettings/CaptureHDRCompleteSettings.cs#L104-L109))
347+
source](https://github.com/zivid/zivid-csharp-samples/tree/master//source/Camera/Basic/CaptureHDRCompleteSettings/CaptureHDRCompleteSettings.cs#L105-L110))
347348

348349
``` sourceCode cs
349350
var settingsFile = "Settings.yml";
@@ -356,7 +357,7 @@ var settingsFromFile = new Zivid.NET.Settings(settingsFile);
356357
You can also save settings to .yml file.
357358

358359
([go to
359-
source](https://github.com/zivid/zivid-csharp-samples/tree/master//source/Camera/Basic/CaptureHDRCompleteSettings/CaptureHDRCompleteSettings.cs#L104-L106))
360+
source](https://github.com/zivid/zivid-csharp-samples/tree/master//source/Camera/Basic/CaptureHDRCompleteSettings/CaptureHDRCompleteSettings.cs#L105-L107))
360361

361362
``` sourceCode cs
362363
var settingsFile = "Settings.yml";

0 commit comments

Comments
 (0)