Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jhacsonmeza committed Nov 24, 2020
1 parent 1c7e177 commit 646b05d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PointSegment.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


base = os.path.relpath(config['root_path'])
I = target.natsort(glob.glob(os.path.join(base,config['us_path'],'*')))
I = target.natsort(glob.glob(os.path.join(base,config['us_folder'],'*')))

pts =[]
for imn in I:
Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
root_path: "dataset" # Root path of data
right_folder: "R" # Folder with images of right camera
left_folder: "L" # Folder with images of left camera
us_path: "UScrop" # Folder with ultrasound images
us_folder: "UScrop" # Folder with ultrasound images

# Calibration parameters
# You can use a .npz file or a .mat if calibration is made with Matlab
Expand Down
2 changes: 1 addition & 1 deletion target.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def detect(im, global_th=True, th_im=False):
if len(dist) > 3: # In this case we have the circles and other contours
# Area and perimeter of the contours of our three circles should have
# appriximately the same values. We select the three smaller values
# of subtracting the median from both area and perimter
# of subtracting the median from both area and perimeter
score = abs(np.median(areas[ind]) - areas[ind])/np.median(areas[ind]) \
+ abs(np.median(perimeters[ind]) - perimeters[ind])/np.median(
perimeters[ind])
Expand Down

0 comments on commit 646b05d

Please sign in to comment.