Skip to content

Commit 557472d

Browse files
author
Joseph Schornak
committed
Merge pull request #29 in CURV/stereo-needle-localization from dev to master
* commit '0fddde19ccd1aa55b0d7df2dcc4dccf7e1ff5142': (53 commits) Randomize offset magnitude Parameterized offset magnitude in config Shift target in random direction when k is pressed Among other things, reduced noise in tip orientation measurement and plot associated axes at tip Use live phantom pose for refraction compensation Updated camera calibration. Draw reprojected points for target. Draw reprojected tip position. Offset ROI to left of tip. Reduced ROI size Parameterized deque length Parameterized upper threshold for motion Lowered upper bound for motion magnitude Use average motion by comparing current frame to several prior frames Temp disabled phantom markers Draw mask from corners Calcuate phantom corner vertex positions in camera images Added class to track phantom board in live video Ignore retraction segmentation, revise leftwards angle Fix incorrect multiplication by degrees instead of radians Rescale DOF HSV back to visible range Recalibrated camera transforms ...
2 parents 05c1bb9 + 0fddde1 commit 557472d

17 files changed

+939
-332
lines changed

config.xml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22
<data>
33
<ip>192.168.0.100</ip>
44
<port>18944</port>
5-
<output_dir>./data/</output_dir>
6-
<prefix>alignment_test</prefix>
7-
<!--<prefix>optitrack</prefix>-->
5+
6+
<output_dir>./data/Trial12 TargetShift/</output_dir>
7+
<prefix>insertion</prefix>
88
<calibration_file>calibration.npz</calibration_file>
99

1010
<index_camera_top>1</index_camera_top>
1111
<index_camera_side>2</index_camera_side>
1212
<index_camera_aux>3</index_camera_aux>
1313

14-
<hue_motion>110</hue_motion>
14+
<frame_deque_size>3</frame_deque_size>
15+
16+
<hue_motion>135</hue_motion>
1517
<hue_motion_range>20</hue_motion_range>
1618

1719
<hue_target_min>40</hue_target_min>
@@ -25,14 +27,18 @@
2527
<camera_top_contrast>200</camera_top_contrast>
2628
<camera_top_brightness>180</camera_top_brightness>
2729

28-
<camera_side_focus_absolute>50</camera_side_focus_absolute>
30+
<camera_side_focus_absolute>60</camera_side_focus_absolute>
2931
<camera_side_contrast>200</camera_side_contrast>
3032
<camera_side_brightness>180</camera_side_brightness>
3133

34+
<roi_width>150</roi_width>
35+
<roi_height>50</roi_height>
36+
3237
<kernel_top>5</kernel_top>
3338
<kernel_side>5</kernel_side>
3439

35-
<threshold_mag>3</threshold_mag>
40+
<threshold_mag_lower>2</threshold_mag_lower>
41+
<threshold_mag_upper>15</threshold_mag_upper>
3642

3743
<dof_top>
3844
<pyr_scale>0.5</pyr_scale>
@@ -53,4 +59,6 @@
5359

5460
<index_refraction_phantom>1.5</index_refraction_phantom>
5561
<index_refraction_ambient>1.0</index_refraction_ambient>
62+
63+
<target_shift_magnitude>0.005</target_shift_magnitude>
5664
</data>

ir_registration_offset.py

Lines changed: 0 additions & 55 deletions
This file was deleted.

ir_registration_tip.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

left.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ camera_name: narrow_stereo/left
44
camera_matrix:
55
rows: 3
66
cols: 3
7-
data: [640.262084, 0.000000, 275.429624, 0.000000, 638.173949, 250.600262, 0.000000, 0.000000, 1.000000]
7+
data: [626.236678, 0.000000, 256.530035, 0.000000, 628.651577, 268.943674, 0.000000, 0.000000, 1.000000]
88
distortion_model: plumb_bob
99
distortion_coefficients:
1010
rows: 1
1111
cols: 5
12-
data: [0.029181, -0.069826, -0.000709, -0.014565, 0.000000]
12+
data: [0.028940, -0.055310, 0.001511, -0.027066, 0.000000]
1313
rectification_matrix:
1414
rows: 3
1515
cols: 3
16-
data: [0.999421, -0.006984, -0.033299, -0.018122, 0.719058, -0.694714, 0.028796, 0.694915, 0.718515]
16+
data: [0.996103, 0.017985, -0.086347, -0.071866, 0.733062, -0.676354, 0.051134, 0.679924, 0.731498]
1717
projection_matrix:
1818
rows: 3
1919
cols: 4
20-
data: [646.336004, 0.000000, 308.874763, 0.000000, 0.000000, 646.336004, 226.599552, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000]
20+
data: [662.255268, 0.000000, 316.381474, 0.000000, 0.000000, 662.255268, 253.529610, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000]

make_phantom_reg_board.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)