Skip to content

Certain images give div/0 error for value of det_a #2

@MazrimCage

Description

@MazrimCage

Exporting a batch of .tif images from a video file and they mostly work well. There are some image pairs that when used with the code will give a zero value for "det_a" which generates a div/0 error and produces a black image result. This issue also arises when exporting the same batch of images after modulating brightness/gain/sensitivity to increase image contrast prior to running through code.

Are there known reasons as to why det_a would be zero?

"RuntimeWarning: divide by zero encountered in divide:
v = (carriers[0].k_loc[1] * phis[1] - carriers[1].k_loc[1] * phis[0]) / det_a"

Thanks

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