Skip to content

Commit

Permalink
Fix argyle masks
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisVincent committed Jun 7, 2022
1 parent 378b1e2 commit a8192ea
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
14 changes: 7 additions & 7 deletions stimuli/papers/murray2020.py
Expand Up @@ -92,8 +92,8 @@ def argyle():
"""
a = mat_content["argyle"]
img = np.array(((a[0])[0])[0])
target1 = np.array((((a[0])[0])[1])[0]) - [1, 0, 1, 0]
target2 = np.array((((a[0])[0])[2])[0]) - [1, 0, 1, 0]
target1 = np.array((((a[0])[0])[1])[0])
target2 = np.array((((a[0])[0])[2])[0])
mask = get_mask(target1, target2, img.shape)
return {"img": img, "mask": mask}

Expand All @@ -112,8 +112,8 @@ def argyle_control():
"""
a = mat_content["argyle_control"]
img = np.array(((a[0])[0])[0])
target1 = np.array((((a[0])[0])[1])[0]) - [1, 0, 1, 0]
target2 = np.array((((a[0])[0])[2])[0]) - [1, 0, 1, 0]
target1 = np.array((((a[0])[0])[1])[0])
target2 = np.array((((a[0])[0])[2])[0])
mask = get_mask(target1, target2, img.shape)
return {"img": img, "mask": mask}

Expand All @@ -132,8 +132,8 @@ def argyle_long():
"""
a = mat_content["argyle_long"]
img = np.array(((a[0])[0])[0])
target1 = np.array((((a[0])[0])[1])[0]) - [1, 0, 1, 0]
target2 = np.array((((a[0])[0])[2])[0]) - [1, 0, 1, 0]
target1 = np.array((((a[0])[0])[1])[0])
target2 = np.array((((a[0])[0])[2])[0])
mask = get_mask(target1, target2, img.shape)
return {"img": img, "mask": mask}

Expand Down Expand Up @@ -338,7 +338,7 @@ def white():
n_stim = math.ceil(math.sqrt(len(stims)))
plt.figure(figsize=(n_stim * 3, n_stim * 3))
for i, (stim_name, stim) in enumerate(stims.items()):
print("Generating", stim_name + "")
print("Generating " + stim_name)
img, mask = stim["img"], stim["mask"]
img = np.dstack([img, img, img])

Expand Down

0 comments on commit a8192ea

Please sign in to comment.