Skip to content

Non-identical results if simplices is provided or not #9

@kanglcn

Description

@kanglcn

I have a point cloud interferogram intf (with the coordinates gix) to be unwrapped

intf.shape # (292623,) 
gix.shape # (292623, 2)

The edges and simplices is calculated as:

from scipy.spatial import Delaunay
tri = Delaunay(gix)
a_edges = np.sort(tri.simplices[:,[0,1]])
b_edges = np.sort(tri.simplices[:,[0,2]])
c_edges = np.sort(tri.simplices[:,[1,2]])
edges = np.unique(np.concatenate([a_edges,b_edges,c_edges],axis=0),axis=0)
simplices = tri.simplices

And I unwrap the intf by

unw_edgelist = kamui.unwrap_arbitrary(np.angle(intf),edges)

and

unw_mcf = kamui.unwrap_arbitrary(np.angle(intf),edges,tri.simplices)

But the unwrapped results are very different. It seems unw_mcf is not correct.

unw_edgelist:
unw_edgelist

unw_mcf:
image

I want to know if I did anything wrong?

BTW, I also find unw_mcf is 10 times faster than unw_edgelist which is difference as @yoyololicon said in #2 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions