@@ -361,7 +361,41 @@ namespace librealsense
361
361
p.depth_gain .gain = 16 .f ;
362
362
}
363
363
364
- void default_430 (preset& p)
364
+ void default_430_color_only (preset& p)
365
+ {
366
+ p.color_control .disableRAUColor = 0 ;
367
+ p.color_control .disableSADColor = 0 ;
368
+ p.color_control .disableSADNormalize = 0 ;
369
+ p.color_control .disableSLOLeftColor = 0 ;
370
+ p.color_control .disableSLORightColor = 0 ;
371
+ p.cc .colorCorrection1 = 0 .298828f ;
372
+ p.cc .colorCorrection2 = 0 .293945f ;
373
+ p.cc .colorCorrection3 = 0 .293945f ;
374
+ p.cc .colorCorrection4 = 0 .114258f ;
375
+ p.cc .colorCorrection5 = 0 .f ;
376
+ p.cc .colorCorrection6 = 0 .f ;
377
+ p.cc .colorCorrection7 = 0 .f ;
378
+ p.cc .colorCorrection8 = 0 .f ;
379
+ p.cc .colorCorrection9 = 0 .f ;
380
+ p.cc .colorCorrection10 = 0 .f ;
381
+ p.cc .colorCorrection11 = 0 .f ;
382
+ p.cc .colorCorrection12 = 0 .f ;
383
+ p.color_auto_exposure .auto_exposure = 1 ;
384
+ p.color_exposure .exposure = 156 ;
385
+ p.color_backlight_compensation .backlight_compensation = 0 ;
386
+ p.color_brightness .brightness = 0 ;
387
+ p.color_contrast .contrast = 50 ;
388
+ p.color_gain .gain = 64 ;
389
+ p.color_gamma .gamma = 300 ;
390
+ p.color_hue .hue = 0 ;
391
+ p.color_power_line_frequency .power_line_frequency = 3 ;
392
+ p.color_saturation .saturation = 64 ;
393
+ p.color_sharpness .sharpness = 50 ;
394
+ p.color_auto_white_balance .auto_white_balance = 1 ;
395
+ p.color_white_balance .white_balance = 4600 ;
396
+ }
397
+
398
+ void default_430_except_color (preset& p)
365
399
{
366
400
p.depth_controls .deepSeaMedianThreshold = 500 ;
367
401
p.depth_controls .deepSeaNeighborThreshold = 7 ;
@@ -385,11 +419,6 @@ namespace librealsense
385
419
p.rsvc .minWEsum = 3 ;
386
420
p.rsvc .uShrink = 3 ;
387
421
p.rsvc .vShrink = 1 ;
388
- p.color_control .disableRAUColor = 0 ;
389
- p.color_control .disableSADColor = 0 ;
390
- p.color_control .disableSADNormalize = 0 ;
391
- p.color_control .disableSLOLeftColor = 0 ;
392
- p.color_control .disableSLORightColor = 0 ;
393
422
p.rctc .rauDiffThresholdBlue = 51 ;
394
423
p.rctc .rauDiffThresholdGreen = 51 ;
395
424
p.rctc .rauDiffThresholdRed = 51 ;
@@ -404,18 +433,6 @@ namespace librealsense
404
433
p.spc .sloK2PenaltyMod2 = 130 ;
405
434
p.hdad .lambdaAD = 800 .f ;
406
435
p.hdad .lambdaCensus = 26 .f ;
407
- p.cc .colorCorrection1 = 0 .298828f ;
408
- p.cc .colorCorrection2 = 0 .293945f ;
409
- p.cc .colorCorrection3 = 0 .293945f ;
410
- p.cc .colorCorrection4 = 0 .114258f ;
411
- p.cc .colorCorrection5 = 0 .f ;
412
- p.cc .colorCorrection6 = 0 .f ;
413
- p.cc .colorCorrection7 = 0 .f ;
414
- p.cc .colorCorrection8 = 0 .f ;
415
- p.cc .colorCorrection9 = 0 .f ;
416
- p.cc .colorCorrection10 = 0 .f ;
417
- p.cc .colorCorrection11 = 0 .f ;
418
- p.cc .colorCorrection12 = 0 .f ;
419
436
p.depth_table .depthClampMax = 65536 ;
420
437
p.depth_table .depthClampMin = 0 ;
421
438
p.depth_table .depthUnits = 1000 ;
@@ -427,31 +444,23 @@ namespace librealsense
427
444
p.laser_power .laser_power = 150 .f ;
428
445
p.depth_exposure .exposure = 8500 .f ;
429
446
p.depth_auto_exposure .auto_exposure = 1 ;
430
- p.color_auto_exposure .auto_exposure = 1 ;
431
- p.color_exposure .exposure = 156 ;
432
- p.color_backlight_compensation .backlight_compensation = 0 ;
433
- p.color_brightness .brightness = 0 ;
434
- p.color_contrast .contrast = 50 ;
435
- p.color_gain .gain = 64 ;
436
- p.color_gamma .gamma = 300 ;
437
- p.color_hue .hue = 0 ;
438
- p.color_power_line_frequency .power_line_frequency = 3 ;
439
- p.color_saturation .saturation = 64 ;
440
- p.color_sharpness .sharpness = 50 ;
441
- p.color_auto_white_balance .auto_white_balance = 1 ;
442
- p.color_white_balance .white_balance = 4600 ;
443
447
p.depth_gain .gain = 16 .f ;
444
448
p.hdad .ignoreSAD = 0 ;
445
449
p.amplitude_factor .amplitude = 0 .f ;
446
450
}
451
+
452
+ void default_430 (preset& p)
453
+ {
454
+ default_430_except_color (p);
455
+ default_430_color_only (p);
456
+ }
447
457
// the only different between high res to mid & low is the amplitude_factor value
448
458
void default_450_high_res (preset& p)
449
459
{
450
460
p.amplitude_factor .amplitude = 0 .f ;
451
461
}
452
462
453
- // used as base preset for the D450
454
- void default_450_mid_low_res (preset& p)
463
+ void default_450_mid_low_res_except_color (preset& p)
455
464
{
456
465
p.depth_controls .deepSeaMedianThreshold = 500 ;
457
466
p.depth_controls .deepSeaNeighborThreshold = 7 ;
@@ -475,11 +484,6 @@ namespace librealsense
475
484
p.rsvc .minWEsum = 3 ;
476
485
p.rsvc .uShrink = 3 ;
477
486
p.rsvc .vShrink = 1 ;
478
- p.color_control .disableRAUColor = 0 ;
479
- p.color_control .disableSADColor = 0 ;
480
- p.color_control .disableSADNormalize = 0 ;
481
- p.color_control .disableSLOLeftColor = 0 ;
482
- p.color_control .disableSLORightColor = 0 ;
483
487
p.rctc .rauDiffThresholdBlue = 51 ;
484
488
p.rctc .rauDiffThresholdGreen = 51 ;
485
489
p.rctc .rauDiffThresholdRed = 51 ;
@@ -494,6 +498,29 @@ namespace librealsense
494
498
p.spc .sloK2PenaltyMod2 = 130 ;
495
499
p.hdad .lambdaAD = 800 .f ;
496
500
p.hdad .lambdaCensus = 26 .f ;
501
+ p.depth_table .depthClampMax = 65536 ;
502
+ p.depth_table .depthClampMin = 0 ;
503
+ p.depth_table .depthUnits = 1000 ;
504
+ p.depth_table .disparityShift = 0 ;
505
+ p.ae .meanIntensitySetPoint = 1000 ;
506
+ p.census .uDiameter = 9 ;
507
+ p.census .vDiameter = 9 ;
508
+ p.laser_state .laser_state = 1 ;
509
+ p.laser_power .laser_power = 150 .f ;
510
+ p.depth_exposure .exposure = 8500 .f ;
511
+ p.depth_auto_exposure .auto_exposure = 1 ;
512
+ p.depth_gain .gain = 16 .f ;
513
+ p.hdad .ignoreSAD = 0 ;
514
+ p.amplitude_factor .amplitude = 0 .08f ;
515
+ }
516
+
517
+ void default_450_mid_low_res_color_only (preset& p)
518
+ {
519
+ p.color_control .disableRAUColor = 0 ;
520
+ p.color_control .disableSADColor = 0 ;
521
+ p.color_control .disableSADNormalize = 0 ;
522
+ p.color_control .disableSLOLeftColor = 0 ;
523
+ p.color_control .disableSLORightColor = 0 ;
497
524
p.cc .colorCorrection1 = -0 .493164f ;
498
525
p.cc .colorCorrection2 = 0 .831055f ;
499
526
p.cc .colorCorrection3 = 0 .831055f ;
@@ -506,17 +533,6 @@ namespace librealsense
506
533
p.cc .colorCorrection10 = -0 .272461f ;
507
534
p.cc .colorCorrection11 = -0 .272461f ;
508
535
p.cc .colorCorrection12 = -0 .355469f ;
509
- p.depth_table .depthClampMax = 65536 ;
510
- p.depth_table .depthClampMin = 0 ;
511
- p.depth_table .depthUnits = 1000 ;
512
- p.depth_table .disparityShift = 0 ;
513
- p.ae .meanIntensitySetPoint = 1000 ;
514
- p.census .uDiameter = 9 ;
515
- p.census .vDiameter = 9 ;
516
- p.laser_state .laser_state = 1 ;
517
- p.laser_power .laser_power = 150 .f ;
518
- p.depth_exposure .exposure = 8500 .f ;
519
- p.depth_auto_exposure .auto_exposure = 1 ;
520
536
p.color_auto_exposure .auto_exposure = 1 ;
521
537
p.color_exposure .exposure = 156 ;
522
538
p.color_backlight_compensation .backlight_compensation = 0 ;
@@ -530,10 +546,20 @@ namespace librealsense
530
546
p.color_sharpness .sharpness = 50 ;
531
547
p.color_auto_white_balance .auto_white_balance = 1 ;
532
548
p.color_white_balance .white_balance = 4600 ;
533
- p.depth_gain .gain = 16 .f ;
534
- p.hdad .ignoreSAD = 0 ;
535
- p.amplitude_factor .amplitude = 0 .08f ;
549
+ }
536
550
551
+ // used as base preset for the D450
552
+ void default_450_mid_low_res (preset& p)
553
+ {
554
+ default_450_mid_low_res_except_color (p);
555
+ default_450_mid_low_res_color_only (p);
556
+ }
557
+
558
+ // D436i has same depth as D435 and same color as D455
559
+ void default_436 (preset& p)
560
+ {
561
+ default_430_except_color (p);
562
+ default_450_mid_low_res_color_only (p);
537
563
}
538
564
539
565
void high_accuracy (preset& p)
0 commit comments