@@ -207,6 +207,7 @@ def color_stream():
207
207
stream = dds .color_stream_server ( "Color" , "RGB Camera" )
208
208
stream .init_profiles ( color_stream_profiles (), 10 )
209
209
stream .init_options ( rgb_camera_options () )
210
+ stream .set_intrinsics ( color_stream_intrinsics () )
210
211
return stream
211
212
212
213
@@ -398,4 +399,85 @@ def get_extrinsics():
398
399
extrinsics [("Infrared_2" ,"Infrared_1" )] = extr
399
400
400
401
return extrinsics
401
-
402
+
403
+ def color_stream_intrinsics ():
404
+ intrinsics = []
405
+
406
+ intr = dds .video_intrinsics ();
407
+ intr .width = 1280
408
+ intr .height = 800
409
+ intr .principal_point .x = 648.580993652344
410
+ intr .principal_point .y = 398.820983886719
411
+ intr .focal_length .x = 636.450012207031
412
+ intr .focal_length .y = 635.621948242188
413
+ intr .distortion .model = dds .distortion_model .inverse_brown
414
+ intr .distortion .coeffs = [- 0.0569772012531757 ,0.0660239011049271 ,0.000211432998185046 ,0.00068545201793313 ,- 0.0208512991666794 ]
415
+ intrinsics .append ( intr )
416
+
417
+ intr = dds .video_intrinsics ();
418
+ intr .width = 1280
419
+ intr .height = 720
420
+ intr .principal_point .x = 648.580993652344
421
+ intr .principal_point .y = 358.821014404297
422
+ intr .focal_length .x = 636.450012207031
423
+ intr .focal_length .y = 635.622009277344
424
+ intr .distortion .model = dds .distortion_model .inverse_brown
425
+ intr .distortion .coeffs = [- 0.0569772012531757 ,0.0660239011049271 ,0.000211432998185046 ,0.00068545201793313 ,- 0.0208512991666794 ]
426
+ intrinsics .append ( intr )
427
+
428
+ intr = dds .video_intrinsics ();
429
+ intr .width = 848
430
+ intr .height = 480
431
+ intr .principal_point .x = 429.684906005859
432
+ intr .principal_point .y = 239.21891784668
433
+ intr .focal_length .x = 421.648132324219
434
+ intr .focal_length .y = 421.099578857422
435
+ intr .distortion .model = dds .distortion_model .inverse_brown
436
+ intr .distortion .coeffs = [- 0.0569772012531757 ,0.0660239011049271 ,0.000211432998185046 ,0.00068545201793313 ,- 0.0208512991666794 ]
437
+ intrinsics .append ( intr )
438
+
439
+ intr = dds .video_intrinsics ();
440
+ intr .width = 640
441
+ intr .height = 480
442
+ intr .principal_point .x = 325.148590087891
443
+ intr .principal_point .y = 239.292602539062
444
+ intr .focal_length .x = 381.869995117188
445
+ intr .focal_length .y = 381.373199462891
446
+ intr .distortion .model = dds .distortion_model .inverse_brown
447
+ intr .distortion .coeffs = [- 0.0569772012531757 ,0.0660239011049271 ,0.000211432998185046 ,0.00068545201793313 ,- 0.0208512991666794 ]
448
+ intrinsics .append ( intr )
449
+
450
+ intr = dds .video_intrinsics ();
451
+ intr .width = 640
452
+ intr .height = 360
453
+ intr .principal_point .x = 324.290496826172
454
+ intr .principal_point .y = 179.410507202148
455
+ intr .focal_length .x = 318.225006103516
456
+ intr .focal_length .y = 317.811004638672
457
+ intr .distortion .model = dds .distortion_model .inverse_brown
458
+ intr .distortion .coeffs = [- 0.0569772012531757 ,0.0660239011049271 ,0.000211432998185046 ,0.00068545201793313 ,- 0.0208512991666794 ]
459
+ intrinsics .append ( intr )
460
+
461
+ intr = dds .video_intrinsics ();
462
+ intr .width = 480
463
+ intr .height = 270
464
+ intr .principal_point .x = 243.217880249023
465
+ intr .principal_point .y = 134.557876586914
466
+ intr .focal_length .x = 238.668746948242
467
+ intr .focal_length .y = 238.358245849609
468
+ intr .distortion .model = dds .distortion_model .inverse_brown
469
+ intr .distortion .coeffs = [- 0.0569772012531757 ,0.0660239011049271 ,0.000211432998185046 ,0.00068545201793313 ,- 0.0208512991666794 ]
470
+ intrinsics .append ( intr )
471
+
472
+ intr = dds .video_intrinsics ();
473
+ intr .width = 424
474
+ intr .height = 240
475
+ intr .principal_point .x = 214.84245300293
476
+ intr .principal_point .y = 119.60945892334
477
+ intr .focal_length .x = 210.824066162109
478
+ intr .focal_length .y = 210.549789428711
479
+ intr .distortion .model = dds .distortion_model .inverse_brown
480
+ intr .distortion .coeffs = [- 0.0569772012531757 ,0.0660239011049271 ,0.000211432998185046 ,0.00068545201793313 ,- 0.0208512991666794 ]
481
+ intrinsics .append ( intr )
482
+
483
+ return set ( intrinsics )
0 commit comments