Skip to content

Commit 1e742bd

Browse files
fix bug in gray SL code
1 parent a0f215e commit 1e742bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/reconstruction/structured_light.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def decode_gray_binary_xor(pattern,
187187
pattern = structuredlight.Gray()
188188

189189
index_x, index_y = None, None
190-
if white_image and black_image:
190+
if white_image is not None and black_image is not None:
191191
white_image = load_ldr(white_image, make_gray=True) \
192192
if isinstance(white_image, str) else convert_to_gray(white_image)
193193
black_image = load_ldr(black_image, make_gray=True) \

0 commit comments

Comments
 (0)