Skip to content

Truth Value of an array with more than one element is ambiguous. use a.any() or a.all()  #1

@Waynewaynehello

Description

@Waynewaynehello

Hi, I just found this repository which would be perfect for my use of combining depth maps and corresponding images into 3D files. However, I get this above error on line 72 (if d == 0.0: ids[u,v] = 0) when I run the standard command. I tried changing to d.any() == 0 and d.all() == zero, and the program ran and produced a model without error in both instances, but the model file itself was just the shape of a line with no depth. Could you possibly help? I am trying it on these two small test images. Thank you!

dimedepth
dimeimage

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions